Our app subscriptions are currently done via appstore and playstore purchases and we’re trying to add stripe into the mix. But we’re not sure how to handle the case where an old user signs back after a new subscription as anonymous. In case of appstore and playstore purchases, the transfer purchase call does the job but not so in stripe purchases. How is this to be handled? Just post a second receipt against the signed in user’s app user id? It’ll result in the stripe subscription attached to both revenuecat customers. I’m not sure about any unintended side effects of this flow. Is this the way to go here? Or am I missing something
How to transfer a stripe purchase
Hi,
Happy to help here. To clarify, is this the flow for the user?
- Makes an account on web (get assigned custom app_user_id)
- Purchases a Stripe subscription
- Logs out of account
- Clicks restorePurchases while logged out, which fails
- A signed user deletes app, has a app_user_id, “xyz”
- Re-installs at a later stage, gets a new app_user_id, “abc”
- Subscribes to stripe
- Re-logs in, gets back old app_user_id, “xyz”
Question was how can “abc” user’s subscription be transfered to “xyz”. Solution was to simply call the receipt API for user “xyz”. Revenuecat takes care removing the subscription from “abc” as well, essentially doing the transfer.
Only if it was documented! Ideally here.
![Why Not Both? Badge](https://uploads-us-west-2.insided.com/revenuecat-en/attachment/ccbc4ad2-bff5-4fe9-b65f-83bbced7a8ac_thumb.png)
Hi,
I have tried transfer stripe payment data from one app user id to other with logIn function. And its doesnt work.
Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.