I'm a bit confused with this. So following this approach I got json which contains bunch of decrypted fields. Among them original_purchase_date.
What I need is to track if application was purchased before this new version becomes free and I think I need to use this field for that. But for some reason on sandbox environment it shows date
"original_purchase_date" = "2013-08-01 07:00:00 Etc/GMT";
which is couple of years before application was made.
So right now I'm not sure
Why it shows that date.
Is original_purchase_date really the field I need to track.
Use the production URL https://buy.itunes.apple.com/verifyReceipt when your app is live in the App Store. For more information on these endpoints, see verifyReceipt. Verify your receipt first with the production URL; then verify with the sandbox URL if you receive a 21007 status code.
Your app's user purchases a subscription through Amazon via your company's website. Your app receives a receipt for the purchased subscription. To enable access, your app then sends information from the receipt to your server. Finally, your server validates this transaction by querying RVS.
Receipts provide a tool to confirm those purchases. They accomplish this by providing a record of sale. The App Store generates a receipt in the app bundle any time a user purchases your app, makes an in-app purchase or updates the app.
Original purchase date is always "2013-08-01 07:00:00 Etc/GMT" for sandbox environment.
You can use Original Purchase Date for your need but I suggest using original application version field. So, it's much easier then using date.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With