#mkoenke-paymentelement-link
1 messages · Page 1 of 1 (latest)
the docs give this as the example: const element = elements.create('payment', { business: { name: 'Powdur', }, defaultValues: { billingDetails: { email: 'jamie@example.com', }, }, }); but we create the payment element differently
What does that mean
Okay but the parametners you can pass are the same
got it... is there anyway to get the billing details in the response when we create a payment method with link?
Client side or server?
client
How are you creating the Payment Method? Using Setup Intents?
no we use createPaymentMethod upon completion of the form
we create the payment intent on the server and pass the payment method to create and charge in one step
And when you log the result returned you don't see the billingDetails?