react-stripe-elements
react-stripe-elements copied to clipboard
handleCardSetup ignores billing_details
Using the handleCardSetup seems to be ignoring the billing_details data (the card does get added but without the billing_details like card holder name), the same code works when not using react, so i believe its something related to react-stripe-elements.
stripe.handleCardSetup(
setupIntentClientKey,
{},
{ payment_method_data: { billing_details: { name: "The card owner" } } },
)......
Realized a change in API means the 2nd parameter is no longer required and the data should be passed as the 2nd parameter not the third. Closing this.