react-stripe-elements icon indicating copy to clipboard operation
react-stripe-elements copied to clipboard

handleCardSetup ignores billing_details

Open shujaattariq opened this issue 7 years ago • 1 comments

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" } } }, 
          )......

shujaattariq avatar Sep 09 '19 12:09 shujaattariq

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.

shujaattariq avatar Sep 09 '19 13:09 shujaattariq