#MuhammadNouman
1 messages · Page 1 of 1 (latest)
Okay then here goes another question, Can I fill an email field via passing value in the url? Also how can I show "Name on Card" field.
You can pre-fill email if you pass a Customer ID that has an attached paymentmethod with all of the necessary items. See: https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-customer where we describe what is necessary for this behavior
You could use a custom_field (https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-custom_fields) to collect "Name on Card"
Actually I have a setup where I ask for few information on the first step and then redirect them to the stripe checkout page. Currently there are few fields (may be they are standard ones from stripe) but I want to add more fields in there. Also I want to display order summary so the customer can know what they are paying for. I am having hard time in getting those two issues fixed. Surely, I am looking into the custom field docs you shared above.
Hmm so you are using both a SetupIntent to collect some info and then using Stripe Checkout as well?
For now I am only using SetupIntent to get the information, it is my first time building stripe custom order form.
Yeah this is a bit contrary to the ideal flow for Stripe Checkout.
Like mostly you want to just collect all or most of the info via Stripe Checkout
Or you use your own custom forms without Stripe Checkout and use Elements
Sounds like you are doing a combo which is going to force your customers to do a lot of duplicate entry of info
I used the flow mentioned here and thought it was a good start: https://stripe.com/docs/payments/quickstart
However if you can point me to the correct flow that would be a lot of help