#Shanto19

1 messages · Page 1 of 1 (latest)

halcyon badgerBOT
fathom knot
bold pike
#

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

fathom knot
#

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)

bold pike
#

Ahh this is great.

However the second link does it also come with IU element ?

fathom knot
#

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

bold pike
#

OKay then what I am really asking for
is how to connect the client side with the server side ?

#

I mean only for the payment method