#fletchstud
1 messages · Page 1 of 1 (latest)
Hi, it should be in the webhook event checkout.session.completed
I guess Im still a little confused on how I can guarantee that the logged in user who finished the checkout is going to be the same stripe client within that checkout.session.completed?
Lets say my logged in user has my custom iD of 1.... If my logged in user successfully completes a checkout and gets assigned stipreID:5 I dont see how I can know how stripeId:5 is suppose to be assigned with my custom Id of 1
Unsure how to properly set my users stripe iD without checkout.session.completed webhook returning with my custom userID
I guess the easiest approach is creating a Stripe Customer Id first, tight to your internal Id, then specify that Customer Id to a Checkout Session creation call here: https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-customer
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
(without using webhook)