#maxim-k_api

1 messages ยท Page 1 of 1 (latest)

ivory oxideBOT
#

๐Ÿ‘‹ Welcome to your new thread!

โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.

๐Ÿ”— This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1328458527022514197

๐Ÿ“ Have more to share? Add more details, code, screenshots, videos, etc. below.

Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.

strange grail
#

Hello Pompey

raven salmon
#

Hello ๐Ÿ‘‹ , can you tell me more about what you are looking for clarification on?

strange grail
#

So i make a call from browser directly after confirmUSBAnkAccount()

#

.verifyMicrodepositsForSetup(
Setting.Settings.setup_intent.client_secret,
{
amounts: [32, 45],
}

#

And payment method sucessfully settled

#

What about production? Should i collect 32, 45 amounts from customer?

#

Or stripe will send it on the background via email?

#

can i keep this call for production?

#

with these exact values, 32, 45

raven salmon
#

Yes, you will be collecting the actual amounts from the customer. In production there will actually be small charges on the user's bank account, so the process is for them to log in to their bank's site, look at the amounts in their transaction history for that account, and report back to you with the amounts.

#

Though I know there is another format for this, looking for clarification in the docs.

strange grail
#

RIght, but i need to build a form to collect them?

#

amounts

#

Is there a way to have popup stripe form just for microdeposits?

#

I have a custom form with billing details fields (routing, account, names etc) which previously worked with Source/Charge API

#

My goal is to switch to payment intent with a minimal coding

#

As i understand the difference between microdeposit and instant is a number of days?

#

so i can use ""us_bank_account": {
"mandate_options": {},
"verification_method":
"instant",
},"

#

in setup intent creation?

raven salmon
#

I think the payment element should handle collecting the microdeposit amounts for you. Have you tested this in test mode?

strange grail
#

i have a custom form

#

no payment element

#

customform -> confirmUSBAnkAccount()

raven salmon
#

Gotcha, in that case we do mention in our docs that for that the options are using a Stripe hosted verifications page or building your own UI. So if you are fine with a full page redirect, that may be a viable option

strange grail
#

What about stripe.collectBankAccountForSetup()?

raven salmon
#

Though honestly, moving to the payment element could be the easiest solution here. If you create a setup intent with just us bank account as an option the element will only show that as an option and it may handle more foryou

strange grail
#

yeah

raven salmon
#

Same for setup

strange grail
#

stripe.collectBankAccountForSetup()?

#

it will open a popup?

raven salmon
#

It will open a popup, the user can choose between instant verification and microdeposits. The pop up can handle instant verification but it will only handle the bank account info collection for microdeposits and will close out once those details have been collected

strange grail
#

So it is basically not a payment element solution

#

it is just popup that collect info and pass it back to parent browser widnow

#

setupintent fullfield with all required info

raven salmon
#

You are right, my apologies. I was thinking of a different flow where the payment element would handle a different next step, but here it will also close the modal after collecting the details. As you noted the microdeposit can take 1-2 days to complete. We return control to your page so you can continue your process without relying on the customer staying on your page for multiple days

#

So getting back to the initial question, it does look like that hosted page from the next_action property on the setup intent, or building your own verification UI would be the way to go here.

strange grail
#

Thank you

#

Should i call stripe.confirmCardSetup() after stripe.collectBankAccountForSetup()?

#

Or collect do the whole job?

raven salmon
#

confirmUsBankAccountSetup, the collect call will only collect the info. It is for if you want to collect the info but still do some things before confirming

strange grail
#

got it!

#

collect works like a charm by the way!

#

Thank you