Skip to content

Commit

Permalink
Merge pull request #77 from d-mato/update-app-store-verification-erro…
Browse files Browse the repository at this point in the history
…r-messages

Update verification error messages
  • Loading branch information
jnbt committed Feb 23, 2023
2 parents 0553333 + 1ade744 commit 6de39e2
Showing 1 changed file with 13 additions and 9 deletions.
22 changes: 13 additions & 9 deletions lib/candy_check/app_store/verification_failure.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6de39e2

Please sign in to comment.