receipt-data property was malformed #472
Replies: 3 comments 3 replies
-
|
@WinnieS0728 I am just having this problem, can I ask what your solution is if you have one ? |
Beta Was this translation helpful? Give feedback.
-
|
@Gnative sorry I changed my job without solved this issue, and I don't have the codebase now. so I don't know if my ex-team fix this. |
Beta Was this translation helpful? Give feedback.
-
|
From expo-iap, you can get the receipt info using getReceiptDataIOS() and pass it to your server validation method. Note: The documentation says to call the undefined method verify( ), but it should be verifyRenewable( ). |
Beta Was this translation helpful? Give feedback.

Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I'm using this repo as backend, and expo-iap as frontend.
I'm now facing an error
receipt-data property was malformed.what should I pass as
receipttodescription
my purchase payload from
expo-iapis like{ "originalTransactionIdentifierIOS": "xxx", "storefrontCountryCodeIOS": "TWN", "environmentIOS": "Sandbox", "ids": [ "productId" ], "transactionId": "xxx", "productId": "productId", "reasonIOS": "PURCHASE", "quantityIOS": 1, "originalTransactionDateIOS": 123123, "webOrderLineItemIdIOS": null, "currencyIOS": "TWD", "transactionReceipt": "{\"transactionId\":\"xxx\",\"originalTransactionId\":\"xxx\",\"bundleId\":\"xxx\",\"productId\":\"xxx\",\"purchaseDate\":xxx,\"originalPurchaseDate\":xxx,\"quantity\":1,\"type\":\"Non-Renewing Subscription\",\"deviceVerification\":\"xxx\",\"deviceVerificationNonce\":\"xxx\",\"inAppOwnershipType\":\"PURCHASED\",\"signedDate\":xxx,\"environment\":\"Sandbox\",\"transactionReason\":\"PURCHASE\",\"storefront\":\"TWN\",\"storefrontId\":\"xxx\",\"price\":3990000,\"currency\":\"TWD\",\"appTransactionId\":\"xxx\"}", "ownershipTypeIOS": "PURCHASED", "id": "xxx", "revocationReasonIOS": null, "countryCodeIOS": "TWN", "platform": "ios", "transactionReasonIOS": "PURCHASE", "isUpgradedIOS": false, "purchaseToken": "JWT_token", "subscriptionGroupIdIOS": null, "priceIOS": 3990000, "appBundleIdIOS": "xxx", "revocationDateIOS": null, "appAccountToken": null, "jwsRepresentationIOS": "JWT_token", "expirationDateIOS": null, "transactionDate": 123123, "currencyCodeIOS": "TWD", "productTypeIOS": "Non-Renewing Subscription", "currencySymbolIOS": "NT$" }I try to pass
transactionReceipt(the stringify JSON) orjwsRepresentationIOS(the JWT_token).both throw this
receipt-data property was malformederror.another information, I'm using
react-native-iapbefore.and when using
react-native-iap, it have a column like "MIIS......"when I pass this string as receipt, it works
storekit
the "MIIS..." one is
storekit 1and apple now usingstorekit 2,storekit 2 is using JWS
I don't know how to solve this.
is there any way can accept storekit2's JWS.
or should I downgrade to storekit1?
Beta Was this translation helpful? Give feedback.
All reactions