#k__adam
1 messages · Page 1 of 1 (latest)
What are you trying to do specifically?
For now just creating a simple application,
- user logins in to a page.
- Users sees 2 plans Annual, Yearly (getting this from stripe end point),
- users clicks on any of the plan.
- user is taken to the stripe checkout out page.
- user enters card details.
- on success user is redirected back to "payment succesful" page.
When the payment is successful in the stripe dashboard, under "customers" I see the customer created as a "guest".
So you would want to detect if you already have a Customer ID at Stripe for your customer. If not, pass customer_creation: 'always' to ensure a persistent Customer object is created: https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-customer_creation
From there, just store it in your database alongside relevant customer information and you can use it to interact with the Customer on Stripe's side after the payment
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
This is exactly what i wanted, thank you so much @merry sinew