Skip to main content
Solved

How to transfer a stripe purchase


Forum|alt.badge.img+1

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

Best answer by afzal-shahul-hameed-41409f

  1. A signed user deletes app, has a app_user_id, “xyz”
  2. Re-installs at a later stage, gets a new app_user_id, “abc”
  3. Subscribes to stripe
  4. 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.

View original
Did this post help you find an answer to your question?

4 replies

Ryan Glanz
RevenueCat Staff
Forum|alt.badge.img+8
  • RevenueCat Staff
  • 364 replies
  • October 23, 2023

Hi,

Happy to help here. To clarify, is this the flow for the user?

  1. Makes an account on web (get assigned custom app_user_id)
  2. Purchases a Stripe subscription
  3. Logs out of account
  4. Clicks restorePurchases while logged out, which fails

Forum|alt.badge.img+1
  1. A signed user deletes app, has a app_user_id, “xyz”
  2. Re-installs at a later stage, gets a new app_user_id, “abc”
  3. Subscribes to stripe
  4. 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.


Ryan Glanz
RevenueCat Staff
Forum|alt.badge.img+8
  • RevenueCat Staff
  • 364 replies
  • October 26, 2023

Ah, I see. I can add that to the docs!


Forum|alt.badge.img+1
  • New Member
  • 1 reply
  • August 21, 2024

Hi,
I have tried transfer stripe payment data from one app user id to other with logIn function. And its doesnt work. 


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings