#_api

1 messages ¡ Page 1 of 1 (latest)

trim stagBOT
#

👋 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/1265333680511914094

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

haughty willow
#

That depends on the PaymentMethod I beleive. Some allow you to make new mandates OBO other accounts, some specifically require that the user specifically approves the new mandate for each account that they make payments to

#

What Payment Method(s) are you using here?

midnight parrot
#

payment methods created by setup intents, could be credit cards, google pay, apple pay

haughty willow
#

Cards and Apple/Google Pay don't typically require mandates as far as I am aware. Do you have the ID of a specific payment where you got a mandate error from a card?

midnight parrot
#

it will take me a few minutes but I think I can provide it

haughty willow
#

Sounds good. Also, in general, when a PaymentMethod specifically needs a mandate for each OBO account, you can create a new mandate by creating a SetupIntent with the existing saved PaymentMethod and then confirm it. Trying to find more info about what PMs require you to recollect a new mandate each time and which let you use the existing mandate to create new ones.

midnight parrot
#

im having some trouble generating a PM right now, sorry for the delay

#

what is OBO account?

#

also, creating a mandate doesn't necessarily requires the user's input?

haughty willow
#

By "OBO account" I meant a connected account that you are specifying in the on_behalf_of field for these payments

#

also, creating a mandate doesn't necessarily requires the user's input?
Initially creating a mandate always requires user input. For some specific payment methods, you can use a mandate on your connected account to create on_behalf_of mandates for your connected accounts without further user input.

midnight parrot
#

what if its a new account?

haughty willow
#

That would still be a connected account and would have the same requirements as other connected accounts

midnight parrot
#

I just want it to be clear, but even if its a new merchant account that wasn't the same one I created the setup intent with?

haughty willow
#

That is specifically the situation where you would need to create a new mandate (for some payment methods)

#

Also to be clear, when I am talking about mandates, I am talking about the Mandate objects that Stripe creates. Many payment methods have some kind of mandate, but only some have strict enough requirements that require an object to track them and where you need to create a new one for each merchant of record.
https://docs.stripe.com/api/mandates/object

#

Okay so it looks like those mandates are required for ACH, BECS, Bacs, PADs, and SEPA

#

Trying to find which ones out of those you need an on_behalf_of mandate for, and out of those which you need to actually reach out to the user each time

midnight parrot
#

im still trying to provide you with an id

#

trying again

haughty willow
#

Sounds good. And are you planning to use any of the Payment Methods out of the ones that I listed there?

midnight parrot
#

Trying to do a simple credit card payment

#

But I think something is broken and I cant get to the point of actually initiating a payment

#

Unrelated to payment

haughty willow
#

And happy to help, what issue are you running in to before actually initiating the payment?

midnight parrot
#

No, my customers are from North America

haughty willow
#

Gotcha, then there shouldn't be a special mandate angle to any of your card payments. You should be able to save cards to your platform and charge them on behalf of whatever connected account you specify

midnight parrot
#

The use case is this: I charge tenants and then make payouts to vendors that provide me their merchant account

haughty willow
#

Yep, this should work for that use case.

midnight parrot
#

Currently what's happening is a vendor connects a new merchant account and in time due a customer gets charged, a payment intent is created and in the obo field I insert the new account id, it fails immediately when I do that, not even a webhook is sent. What should I do differently?

haughty willow
#

What failure are you getting? That could error out for a few different reasons

#

If you can't find a payment now, I can try looking through your request logs if you send me your account ID (acct_1234)

midnight parrot
#

Can I contact you tomorrow with the information? Right now I dont think im able to provide you with data

haughty willow
#

For followups, we reccommend asking in the main channel again. That way someone else can help immediately if I am not around

midnight parrot
#

How can I correlate the new question with this one?

haughty willow
#

We have a bot that links to the old thread in case anyone needs to go back for context

#

But definitely still include the basics of what you are trying to look in to so my colleagues can help without having to ask too much. Like if you say you are trying to do destination + OBO payments but are running in to X error, that should be plenty to start looking in to that.