#ranivr-PaymentElement
1 messages · Page 1 of 1 (latest)
Hi there, the name is not a required field for card payment in Payment Element. Are you open to use Stripe Checkout?
If you still prefer to use Payment Element, you can collect the name in your own field, and include the name data in the payemnt_method_data.billing_details when when calling stripe.confirmPayment https://stripe.com/docs/js/payment_intents/confirm_payment
@bitter ether since I am using SetupIntent you must be talking about this right: https://stripe.com/docs/js/setup_intents/confirm_setup?type=card#confirm_setup_intent-options-confirmParams-payment_method_data-billing_details
Thanks, by my own field you mean I display the textbox out of PaymentElements UI right?
yes you are right, and you found the right doc as well 🙂
thanks much appreciated!
Nice! happy to help.
well the other issue is the new text box will appear just under the terms isn't it. have you got any example?
I don't have any example, perhaps you want to move the name field at the top? or maybe discuss this with your designer