#abdulwahid

1 messages ยท Page 1 of 1 (latest)

sly stumpBOT
somber orchid
#

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

scenic hill
#

SetupIntent :
seti_1NLB13DjgxSqnFzQYjfm8MKE_secret_O7Pq5nNBrlyEQuCOk4FoWQPK7WzDihn

somber orchid
#

@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

lyric nacelle
#

@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?

scenic hill
#

Sending detailed doc with each step

sly stumpBOT
scenic hill
lyric nacelle
#

Taking a look

#

How are you triggering the SetupIntent confirmation here?

#

Looking back at your code I don't see you calling confirmSetup() anywhere?

scenic hill
lyric nacelle
#

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

scenic hill
#

how to use financial connection authentication flow then ?

lyric nacelle
#

Well let's clarify on the first point first.

#

Do you want to use Payment Element?

#

It seems so, yes?

scenic hill
#

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

lyric nacelle
#

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.

#

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.

scenic hill
#

if I can go with both I will chose payment element

lyric nacelle
#

Sounds good.

scenic hill
#

can I get one complete code in single html file,
so just replace setup intent and public key

wicked vine
#

๐Ÿ‘‹ 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

scenic hill
#

ok

scenic hill
#

can I use local host as return url

wicked vine
#

In testing, sure