#max-addington_api

1 messages ยท Page 1 of 1 (latest)

royal cradleBOT
#

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

๐Ÿ“ 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.

steep pier
#

Additional context: We will be using the financial connections product, not the Charges API

tacit spruce
#

hi there!

#

I'm not completely sure, but that's something you could test in test mode and see if it works or not?

steep pier
#

Sure, I will do that if there's nothing in the documentation about it. But it feels like this is an important thing to have in the developer docs

tacit spruce
#

that's a good point, I'll notify the team working on this.

steep pier
#

Thanks. And if you could find an answer for me in the meantime, that would be extremely helpful ๐Ÿ™

#

My team is working on the backend functionality, and another team is creating the payment element and all the UI stuff. So it's hard for me to test this before we have a UI to work with. But I'm going to work on creating a local test frontend using the payment element to test the flow, it will just take me some time

tacit spruce
#

just so I understand your flow:

  1. first you try to save a us_bank_account payment method with the Payment Element
  2. then, before the microdeposit has arrived, you want to try to chage the PaymentMethod?
    now that I'm writing this out, I'm pretty sure this won't work. but I can give it a try.
royal cradleBOT
stone kestrel
#

๐Ÿ‘‹ stepping in

#

Are you using a SetupIntent up front here to set up the US Bank Account PaymentMethod?

#

If so, then you can't attempt to charge it until microdeposit verficiation has been completed.

#

Similarly, if you are just attempting to charge it immediately, it will require microdeposit verification before the charge is actually created

#

So, mostly, the answer to what you are asking is "no, that's not possible".

steep pier
#

Yep, we're using a SetupIntent

stone kestrel
#

Gotcha, yeah you can't access the PaymentMethod until microdeposits are completed.

steep pier
#

if you are just attempting to charge it immediately, it will require microdeposit verification before the charge is actually created

What do you mean by this?

stone kestrel
#

If you just use a PaymentIntent instead of a SetupIntent

#

So you both are collecting, verifying, charging all in one step

#

It would first require microdeposit verification and then once that was completed a charge would automatically be created.

#

But the charge won't occur until microdeposit verification is completed.

#

As noted, the best thing to do here really is to test this all out

#

So you can get a feel for the flow.

steep pier
#

I see, that makes sense. That would be using the Payment Element, right?

stone kestrel
#

Yep

steep pier
#

And if we use the Payment Element, then the payment methods themselves won't be reusable, correct? Since no SetupIntent is involved

stone kestrel
#

They are, you just need to use setup_future_usage with your PaymentIntent.

steep pier
#

Got it, thank you

#

Will we receive webhooks at the setupIntent level for these setup_future_usage bank accounts?

stone kestrel
#

Not exactly sure what you mean by that?

steep pier
#

If we go with the route you just described (i.e. use the payment element with setup_future_usage), and the bank account entered requires micro deposit verification, will we receive webhook events when the verification process is completed?

stone kestrel
#

The PaymentIntent in this case would move from a status of requires_action to processing

#

And then succeeded once the charge succeeds.

steep pier
#

Awesome. And how would we access the payment method for future usage in this scenario?

#

Sorry for all the questions, this is my last one I promise ๐Ÿ˜„

stone kestrel
#

No worries -- we are here to help.

steep pier
#

Heck yeah. Thank you so much!

#

Is there any benefit to using the SetupIntent object over just collecting the payment method in the payment element?

stone kestrel
#

You use a SetupIntent with Payment Element as well?

#

So not sure what you are referring to there.

#

But you should only be using a SetupIntent if you want to save a PaymentMethod and not charge it immediately.

#

If you are going to be charging it immediately you should always be using a PaymentIntent.

steep pier
stone kestrel
#

You can indicate you only want to verify via microdeposits, yes. But both options are collected via Payment Element.

steep pier
#

Ah. So is that UI component in the demo I linked actually just the payment element?

stone kestrel
#

Yes

steep pier
#

๐Ÿคฆโ€โ™‚๏ธ

stone kestrel
#

That modal is triggered via Payment Element

steep pier
#

Got it. Alright, I think I have all the information I need for now. Going to start working on testing this in Stripe's test env. Thanks again!

stone kestrel
#

Sure thing

steep pier
#

You can mark this as case-closed ๐Ÿ˜„ have a great day