#hongda_44496
1 messages · Page 1 of 1 (latest)
Is this firstname a data that's relevant to your app? Or is it something that you want to assciate with the SetupIntent.
Yes, these inputs are required for the app. Once the intent setup finished, I want to use these input to create customer.
Oh, I missed this params. Can I pls now which payment require the redirect?
Ok, then upon redirection, you can retrieve the SetupIntent (https://stripe.com/docs/js/setup_intents/retrieve_setup_intent) and get the data from there.
I don't have the full list but at least I know card payment doesn't require redirect.
You should handle the redirect. https://stripe.com/docs/payments/accept-a-payment?platform=web&ui=elements#web-submit-payment
Make sure the return_url corresponds to a page on your website that provides the status of the payment. When Stripe redirects the customer to the return_url, we provide the following URL query parameters: payment_intent, payment_intent_secret
In setupIntent's case, you'll receive setup_intent and setup_intent_secret, and you can use setup_intent_secret to retrieve the SetupIntent object.
But other inputs that required by our app will be missing by this redirect....
You can also consider attaching them to the setupIntent as metadata.