Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Apple receipt - original_purchase_date has date before app creation

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

  1. Why it shows that date.

  2. Is original_purchase_date really the field I need to track.

like image 425
Alexander Avatar asked May 22 '17 15:05

Alexander


People also ask

How do I verify my Apple receipt?

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.

What is receipt validation in-app purchase?

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.

What is in-app purchase receipt?

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.


1 Answers

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.

like image 151
Cagatay Kaptanoglu Avatar answered Oct 05 '22 23:10

Cagatay Kaptanoglu