#Sagar_go_developer

1 messages · Page 1 of 1 (latest)

viscid marshBOT
wraith crystal
#

You'd get customer info from the subsequent checkout.session.completed event following a successful payment

cedar turtle
#

yeah I checked for checkout.session.completed event

#

there we have some info like payment intent id, balance id, customer, etc

#

but how we will get to know that particular unique key is for which user?

#

suppose I have one customer id

#

now from that how i will get to know this one represents which user?

wraith crystal
#

Well you'd persist that Stripe Customer ID (cus_xxx) with your internal systems

#

How you do that is dependent on your site/app

cedar turtle
#

customer:cus_MSixjRsa9qazMh

#

like this we are getting

#

can you suggest me one thing

#

when a customer created intent is happening

#

that time how we can map this Customer ID to current login user

#

I'm very new here and doing this thing the first time so could you please suggest me something

wraith crystal
#

Again, that would depend on your application/integration code!

cedar turtle
#

okay

wraith crystal
#

Normally you'd persist that in your database where you store users/sessions