Ad
How To Save Receipt Of Apple In-app Purchase In Database?
I'm currently trying to implement an in-app purchase (auto-renewal) into my app.
I would like to save the receipt of each user in my database, in order to have a historic. (as prescribed here: iOS & Firebase Auto-renewable Subscriptions)
My question now is, how do I have to save the receipt? Do I have to save it encoded or decoded?
I'm using Firebase to do that (Firestore)
Ad
Answer
Definitely save the entire encrypted receipt (String). This becomes your source-of-truth since you can continually refresh it with Apple's /verifyReceipt
endpoint.
You'll most likely also be saving some of the receipt fields (decrypted) that will be updated as you refresh the receipt.
Ad
source: stackoverflow.com
Related Questions
- → Function Undefined in Axios promise
- → What are the pluses/minuses of different ways to configure GPIOs on the Beaglebone Black?
- → Click to navigate on mobile devices
- → Playing Video - Server is not correctly configured - 12939
- → How to allow api access to android or ios app only(laravel)?
- → Axios array map callback
- → Access the Camera and CameraRoll on Android using React Native?
- → Update React [Native] View on Day Change
- → Shopify iOS SDK - issue converting BuyProductVariant to BuyProduct
- → BigCommerce and shopify API
- → Warning: Each child in an array or iterator should have a unique "key" prop. Check the render method of `ListView`
- → React Native - Differences between Android and IOS
- → What is the difference between React Native and React?
Ad