开发者

Auto renewal verification in app purchase iphone

I am working on one app in which i have implemented the in app purchase and also successfully verified the receipt.

I have done the auto renewal subscription in which I want to know how I can check the user subscription is active or not?

In order to verify the receipt i need the receipt from the SKPaymentTransac开发者_开发百科tion. So my question is that how could I can check when user returns to my app that he still has subscription or it expired.

or simply which method can give me the user transaction property of SKPaymentTransaction on load of my view so i can verify the receipt.

Thanks in advance, Satish


Finally I did it in the following way...

I save the transaction receipt in userdefaults when user first time subscribes to the subscription and when later I need to check for the subscription activation I use that receipt which tells me the latest expiry day..

Hope this will help...

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜