Closed kostasoft closed 7 years ago
Sorry. Problem in a php-script. Where - yet hasn't found, but it has no relation to SwiftyStoreKit any more
PS: Php-script not correctly created data from:
json_encode (array ('receipt-data' => $base64EncodedReceipt))
I have created it on application-side and began to transfer to a script in coded form (base64) in POST inquiry. Everything has earned.
Closing this as it's not related to SwiftyStoreKit.
Did you manage to solve this? I am trying to use this library to verify the receipt but I had no success https://github.com/aporat/store-receipt-validator It always shows me
Receipt is not valid.
Receipt result code = 21002
@contreras2004 See the error codes here: https://developer.apple.com/library/content/releasenotes/General/ValidateAppStoreReceipt/Chapters/ValidateRemotely.html
21002 | The data in the receipt-data property was malformed or missing.
Check the server is receiving valid data
Yea thanks. I managed to solve this. I was trying to verify a renewable subscription receipt and I forgot to add the secret
SwiftyStoreKit.ReceiptStatus.malformedOrMissingData
Platform
In app purchase type
Environment
Version
ℹ 0.8.2
Related issues
ℹ Please replace this with references to similar issues (either open or already closed).
Report
Issue summary
ℹ Hello!
Whether I transfer the correct data to the server for sending for the server of Apple?
My code (client side):
PHP script (server side)
What did you expect to happen
ℹ I expect that the server of Apple will confirm perfect purchase, having returned the status 0
What happened instead
ℹ Apple server returned: