Skip to content

Commit

Permalink
Update available response status codes from apple
Browse files Browse the repository at this point in the history
Referencing the following documentation:

https://developer.apple.com/documentation/appstorereceipts/status

We can see that 21009 and 21010 are available codes we should handle.
  • Loading branch information
justinpage authored and ronkorving committed Dec 18, 2019
1 parent ed711f9 commit cbd7973
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/apple/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@ const responses = {
21005: 'The receipt server is not currently available.',
21006: '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.',
21007: 'This receipt is from the test environment, but it was sent to the production service for verification. Send it to the test environment service instead.',
21008: 'This receipt is from the production receipt, but it was sent to the test environment service for verification. Send it to the production environment service instead.'
21008: 'This receipt is from the production receipt, but it was sent to the test environment service for verification. Send it to the production environment service instead.',
21009: 'Internal data access error. Try again later.',
21010: 'The user account cannot be found or has been deleted.'
};

function getReceiptFieldValue(receipt, field) {
Expand Down

0 comments on commit cbd7973

Please sign in to comment.