onPurchaseSuccess fires on subscription renewal in sandbox mode #237
Unanswered
mattwoodage
asked this question in
Q&A
Replies: 1 comment 1 reply
-
|
Yes — what you’re seeing in iOS sandbox is expected. Each auto-renewal creates a new transaction with its own How to handle it safely
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Can someone please confirm this is expected and desired behaviour because i can't find it in the documentation.
I'm on version 3.1.8
I am testing subscriptions in sandbox mode on IOS
I make a purchase and onPurchaseSuccess is called correctly and I call finishTransaction and everything is good
If i leave the app closed for a few hours, in this time the sandbox subscription expires and renews multiple times. I have mine set to a 3 month subscription and set to 3 minute renewals in the developer account so it expires after 9 minutes)
When i then open the app, onPurchaseSuccess is called for each of these new subscriptions. They are each new transactions with unique transaction ids. This is recorded in my database.
I can see in the documentation that onPurchaseSuccess will re-fire if the transaction was not completed. But should it be behaving as i've described here? Can i rely on this in production (obviously at a monthly interval)?
Beta Was this translation helpful? Give feedback.
All reactions