Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to test auto-renewable subscription?

I have an app with an auto-renwable item in the inApp-Purchase.
Let's say, with an period of 7 days.

If a test-User buys the item...
How can I check the expiration-date?
I can observe it with restoreCompletedTransaction, but there will be an Dialog to the user. Which is not so nice. Is there any other way without a server?

How can I handle the test-phase? I don't see a way to shorten the 7 days... does it mean I have to wait 7 days, to see that I'm handling it right if the user doesn't subscribe again?

thank you xnz

like image 518
xnz Avatar asked Nov 26 '25 09:11

xnz


1 Answers

You can send the receipt to a server of yours and have it check and re check the receipt. When the subscription is prolonged your server receives an additional receipt indicating that.

I am not sure if this is possible within the app. You need a certificate and a shared-secret to verify auto renewables. It might be a bad idea to have the certificate and the shared-secret within your app.

You can find Apples documentation here:

http://developer.apple.com/library/ios/documentation/NetworkingInternet/Conceptual/StoreKitGuide/RenewableSubscriptions/RenewableSubscriptions.html

like image 175
Dirk Jäckel Avatar answered Nov 29 '25 10:11

Dirk Jäckel