From 1ade744948d95871bae941eebd7448d108097202 Mon Sep 17 00:00:00 2001 From: Daiki Matoba Date: Tue, 16 Aug 2022 08:16:38 +0900 Subject: [PATCH] Update verification error messages --- .../app_store/verification_failure.rb | 22 +++++++++++-------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/lib/candy_check/app_store/verification_failure.rb b/lib/candy_check/app_store/verification_failure.rb index abc58cb..8bbb96a 100644 --- a/lib/candy_check/app_store/verification_failure.rb +++ b/lib/candy_check/app_store/verification_failure.rb @@ -47,23 +47,27 @@ def freeze! end end - add 21_000, 'The App Store could not read the JSON object you provided.' + add 21_000, 'The request to the App Store was not made using' \ + ' the HTTP POST request method.' + add 21_001, 'This status code is no longer sent by the App Store.' add 21_002, 'The data in the receipt-data property was malformed' \ - ' or missing.' + ' or the service experienced a temporary issue. Try again.' add 21_003, 'The receipt could not be authenticated.' add 21_004, 'The shared secret you provided does not match the shared' \ ' secret on file for your account.' - add 21_005, 'The receipt server is not currently available.' + add 21_005, 'The receipt server was temporarily unable to provide' \ + ' the receipt. Try again.' add 21_006, 'This receipt is valid but the subscription has expired.' \ ' When this status code is returned to your server, the' \ - ' receipt data is also decoded and returned as part of'\ - ' the response.' + ' receipt data is also decoded and returned as part of' \ + ' the response. Only returned for iOS 6-style transaction' \ + ' receipts for auto-renewable subscriptions.' add 21_007, 'This receipt is from the test environment, but it was' \ - ' sent to the production environment for verification.' \ - ' Send it to the test environment instead.' + ' sent to the production environment for verification.' add 21_008, 'This receipt is from the production environment, but it' \ - ' was sent to the test environment for verification.' \ - ' Send it to the production environment instead.' + ' was sent to the test environment for verification.' + add 21_009, 'Internal data access error. Try again later.' + add 21_010, 'The user account cannot be found or has been deleted.' freeze! end end