Skip to main content
Question

Why does Stripe integration require our own server

  • 13 January 2024
  • 2 replies
  • 53 views

Forum|alt.badge.img+3
  • New Member
  • 1 reply

We have setup Stripe integration and as indicated, we are hosting our own server to handle web payments and send over Stripe tokens to the POST receipt endpoint after checkout. Everything works but we wonder if the solution could be simpler.
Since we have the webhook integration between Stripe and RevenueCat, why do we need to maintain our own server and manually call the POST receipt endpoint? Can't RevenueCat just get the Stripe tokens from the webhook call?

2 replies

kaitlin
RevenueCat Staff
Forum|alt.badge.img+6
  • RevenueCat Staff
  • 329 replies
  • January 17, 2024

Hi @Foti,

At this time, the Stripe webhooks only work if the receipt is already in our system - if the receipt doesn’t exist and cannot be matched to an existing app user id, the event will fail. This is definitely on our radar and a solution for it is in the works, though I don’t have an exact ETA for you right now.


@kaitlin So if we already setup `app user id` in revenue cat, then we don’t really have to make any post request with stripe token ?

which means we just needs to setup `app user id` and revenueCat will handle all stripe purchases which contains `client_reference_id` in stripe response ( which is already sent to revenuecat by webhook )


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