getReceiptIOS return empty string #3005
-
Hello @hyochan I’m currently using expo-iap for subscriptions in my app. However, when I call getReceiptIos(), it returns an empty string instead of the expected Base64-encoded receipt. I’ve noticed that fields when i make purchase like transactionReceipt and purchaseToken are returned, but they appear to be JWT-encoded, which doesn’t align with my backend implementation — it’s designed to work with a Base64-encoded iOS receipt. Could you please provide a quick guide on how to properly retrieve the iOS receipt ? Thank you in advance for your support! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
/** Unified purchase token(jwsRepresentation for iOS, purchaseToken for Android) */
purchaseToken?: string; And here are official tutorials https://www.openiap.dev/tutorials |
Beta Was this translation helpful? Give feedback.
getReceiptIOS
should no more exists you should validate your recepit withpurchaseToken
whichjwsRepresentation
on iOS.And here are official tutorials https://www.openiap.dev/tutorials