#Shanto19
1 messages · Page 1 of 1 (latest)
You would create the Customer server-side and then use it later on client-side with id. Here's a better quickstart guide for setting up the Payment Element, which can then be adjusted/configured to fit your use-case: https://stripe.com/docs/payments/quickstart?lang=dotnet
Hi
Thank you for quick response
I will check the link and I will get back to you
OKay I checked the link. Basically showing how to create a payment intent.
But I need specifically to create the customer and add the payment details in the same time
You can create the Customer on the server-side (https://stripe.com/docs/api/customers/create) and attach the Payment Method once it has been created via the Payment Element (https://stripe.com/docs/api/payment_methods/attach)
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Ahh this is great.
However the second link does it also come with IU element ?
The Payment Element is the client-side object and it handles al the UI stuff. The API endpoints I mentioned for creating and attaching Payment Methods to Customers is handled server-side and doesn't have an Element