voltrue2 / in-app-purchase

A Node.js module for in-App-Purchase for iOS, Android, Amazon and Windows.
http://iap.gracenode.org
Other
1.04k stars 287 forks source link

Will it validate Apple (iOS) paid app receipt? #315

Open AEiosApp opened 4 years ago

AEiosApp commented 4 years ago

Hi, I'd like to try this nice solution for validation Apple (iOS) receipts. Just nee to know, will it works with iOS paid apps? Will it validate iOS paid app receipt?

triplef commented 4 years ago

Generally yes, i.e. it will send the receipt to Apple and parse the result, but it will throw an error VALIDATION.POSSIBLE_HACK if the list of in-app purchases is empty.

See https://github.com/voltrue2/in-app-purchase/issues/269#issuecomment-629245537 for a workaround.