#breakfastbill - Payment Element
1 messages · Page 1 of 1 (latest)
Hello! Thanks for the kind words about the launch! Right now there is no way to force collection of name and email for all payment methods. We only request what's required for the specific payment method selected.
why does the name field sometimes appear for the "card" type but not always? we've found it helpful to store the name of cards when helping customers with billing questions / refunds / etc
is the workaround then to manually include a "name" field like we've been doing with the previous Elements?
The name field only appears sometimes for the Payment Element when Card is selected?
This is what I'm seeing!
[US-based, passing in "card" for payment types on the Payment Intent]
this time in Safari
Where's the name field? I'm not seeing one in either screenshot?
ah, that's what i'm looking for! I WANT the name field and email field always shown!
We don't collect name and email for card payments inside the Payment Element. You can collect them outside of the Payment Element and pass in those details though.
You would pass them in when calling stripe.confirmPayment inside billing_details: https://stripe.com/docs/js/payment_intents/confirm_payment#confirm_payment_intent-options-confirmParams-payment_method_data-billing_details
ah yeah. got it, was hoping that had changed and mistakenly thought it had!