#jurriaan - Connect
1 messages ยท Page 1 of 1 (latest)
๐ Thanks for reaching out
Or do we need to create a customer first in order to do so?
If you don't create a customer first, with what value the name field can be filled ?
I'm not understanding your request I think
We currently use checkout without explicitly creating the customer with stripe beforehand. This works fine, and we can even prefill the customer email without explicitly creating a Customer object via the customer_email field. I was wondering if there's a way to do the same thing for the customer name, without first explicitly creating a customer on the Stripe side.
No actually you can prefill just the customer_email like that, you can find the list of all supported attribut here:
https://stripe.com/docs/api/checkout/sessions/create
Yes, but what about the customer name? We like to make things easy for our customers by prefilling as much details as possible.
I was just wondering why is there a customer_email field and not a customer_name field
because the name that Checkout collects is saved to the PaymentMethod the customer used(it's in billing_details of that) and is not specific to the Customer object
Ah interesting! So that means there's no way of prefilling that data?
I'm pretty used to doing iDeal payments, but not a lot of websites ask for your name separately in the payment step. I don't think a lot of people are used to fill in their name separately for these kind of payments. We want to make the payments flow as easy as possible there.
not when using Checkout no
Ah, good to know! For that to work we have to setup our own flows then I guess? Thanks for helping me out ๐
I would just use Checkout personally, this seems like not a feature or requirement that's worth the extra integration work to switch over to using a more custom payments page.
if it is a hard requirement, then I believe you can use the PaymentElement component : https://stripe.com/docs/payments/accept-a-payment?platform=web&ui=elements , disable our name collection, and pass it yourself when confirming the PaymentIntent, per https://stripe.com/docs/js/elements_object/create_payment_element#payment_element_create-options-fields-billingDetails-name
you could also raise the feedback on Checkout not providing a way to prefill the payment method name to our support team so we know people want that feature