#abdulwahid
1 messages ยท Page 1 of 1 (latest)
Hello ๐
That's quite unusual
Can you share a screenshot as well as share the code you've used for this?
SetupIntent ID would help too
SetupIntent :
seti_1NLB13DjgxSqnFzQYjfm8MKE_secret_O7Pq5nNBrlyEQuCOk4FoWQPK7WzDihn
@scenic hill we're taking a look
can you delete the latest message from the channel please?
It is just taking a while to reproduce this
thank you
@scenic hill can you clarify the last part
In UI it seems account is attached successfully whether when I got setupIntent object payment_method = null
You are saying if you select an account there then nothing happens?
Sending detailed doc with each step
Taking a look
How are you triggering the SetupIntent confirmation here?
Looking back at your code I don't see you calling confirmSetup() anywhere?
Correct. That is if you use a custom flow outside of Payment Element. You still have to confirm the SetupIntent though
The docs you are looking at right now are not for Payment Element, and even with those you see that it requires calling both // Calling this method will open the instant verification dialog. stripe.collectBankAccountForSetup({ clientSecret: clientSecret, params: { payment_method_type: 'us_bank_account', payment_method_data: { billing_details: { name: accountHolderNameField.value, email: emailField.value, }, }, }, expand: ['payment_method'], })
and stripe.confirmUsBankAccountSetup(clientSecret)
Overall though that is a flow that doesn't use Payment Element at all
how to use financial connection authentication flow then ?
Well let's clarify on the first point first.
Do you want to use Payment Element?
It seems so, yes?
actually i am not clear about payment element I just want to use financial connection , that manages all to its end
Can you please provide me a step by step guide I could actually integrate it
Okay well Financial Connections is available via Payment Element or via your own custom form where you collect the name/email and have a button to display the Financial Connections modal yourself.
Either way works just fine.
You just can't combine the two.
https://stripe.com/docs/payments/save-and-reuse is the guide for Payment Element
Basically all you need to change with your current flow is to add confirmSetup() after the Financial Connections modal closes and the user clicks your "pay" button.
if I can go with both I will chose payment element
Sounds good.
So just add this step to your current code: https://stripe.com/docs/payments/save-and-reuse?platform=web&ui=elements#submit-payment-details
can I get one complete code in single html file,
so just replace setup intent and public key
๐ stepping in for my teammate. No, we can't write this code for you. I recommend referencing the docs above and adjusting the code you already have
ok
can I use local host as return url
In testing, sure