Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Basic question: Why is "latest_receipt_info" an Array? What is "receipt" for? #13

Open
booboothefool opened this issue Apr 19, 2017 · 6 comments

Comments

@booboothefool
Copy link

booboothefool commented Apr 19, 2017

For latest_receipt_info should I just always take latest_receipt_info[0]?

What exactly, is receipt? It has original_purchase_date, etc. in 2013, which confuses me.

Additionally, what is receipt.request_date? It's the date of what request? The verification request? So it's like a last_verified_at?

If the user cancels, will there be cancellation_field?

screen shot 2017-04-18 at 11 44 28 am

@booboothefool
Copy link
Author

booboothefool commented Apr 19, 2017

Okay, so what is going on here exactly?

(I looped through latest_receipt_info and mapped the relevant stuff out.)

screen shot 2017-04-19 at 1 34 45 pm

@sibelius In your example https://github.com/chirag04/react-native-in-app-utils#monthly-subscriptions you mentioned latest_receipt_info[0].

It seems like you really want the last one though?

@sibelius
Copy link
Owner

hm, that makes sense

do you mind sending a PR fixing this?

tks for taking a look on this

@ryancoughlin
Copy link

I've been wondering the same here. Are each of these indexes different purchases? They seem like the same product.

When a purchase is made, the receipt from the purchase needs to be stored somewhere and that is what you send to this validator, correct?

Trying to wrap my head around this process.

@Eyesonly88
Copy link

@lwx5924
Copy link

lwx5924 commented Jun 28, 2018

just to check the subscription was activated( legal or worked ) in old past time when the user had stoppted a duration, and then renewed latter.

For example, if a user subscript in Jan, and lapsed in Feb, and renewed in March.
So,
Jan - Active
Feb - Lapsed
March - Active.

So return a array.

We can get the check it is current according to 'latest_receipt' & 'latest_receipt_info'

@sibelius
Copy link
Owner

can we close this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants