-
-
Notifications
You must be signed in to change notification settings - Fork 643
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
iOS: requestPurchase does not initiate new subscription\purchase #2828
Comments
@servin-osm I think you will find this is how it works with IOS. In the transaction you will see a purchase type of SUBSCRIBED and a subtype of RESUBSCRIBED. On Android it will create a new purchase.. |
@Gnative Could you please give me an example of how to use it? I dont see it in library documentation. I'm following this doc |
@servin-osm its. I send my receipts to my backend for storage and referencing with app-store and play-store notifications, which is a topic outside of this package.. My receipt validation happens on the backend server which with app-store returns an array of receipts to work through to work out my current subscription status. Then I send back a 200 response which finalises the transaction on device with This purchase flow is outlined in this document. Maybe others just handle this on device somehow but that is how I've done it and i think its the correct process. The Docs say receipt validation on device is not recommend in production Just watch out for strange sandbox user issues in IOS, it always causes me problems and best to delete the sandbox user and start from scratch when testing. Good luck |
thank you. will try it |
@Gnative Hi. could you please tell me why on android I receive "Error: The service is unreachable. This may be your internet connection, or the Play Store may be down." |
@servin-osm I don't really know, I haven't see this error before. Check:
Sorry @servin-osm but there is only so much help I can give as I have to work myself. I had to work through this library myself to figure things out. I don't know your code or setup. |
this is local build. and I added my account to license testing, so I can test payments locally.
thank you @Gnative , appreciate your help |
Description
If user has expired subscription and tries to buy new one function
requestPurchase
returns old (expired) subscription without initiating new purchase.Expected Behavior
if subscription is expired I expect to make new purchase
Environment:
To Reproduce
Steps to reproduce the behavior:
The text was updated successfully, but these errors were encountered: