#vikranth_error

1 messages ¡ Page 1 of 1 (latest)

wintry yarrowBOT
#

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

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

wide bridge
static peak
#

req_aTB1vL8Gq5bd8T?t=1733149207

#

req_aTB1vL8Gq5bd8T

wide bridge
#

Thanks, checking..

#

You need to use a payment method of the Account and not it's Customer

static peak
#

I set up the payment method with bank account details. How does it differ?
The doc mentions "account attached" payment method.

How to creat "account attached" payment if that's what needed?

#

How to create payment method for account?

static peak
#

but this setupIntent contains "customerId" in the documentation

const setupIntent = await stripe.setupIntents.create({
customer: '{{CUSTOMER_ID}}',
flow_directions: ['outbound'],
payment_method_types: ['us_bank_account'],
});

wide bridge
#

Ah yes my appologies here is the creation request of the PaymentMethod used req_KzlAp95Z8Wixpm

#

It does have the outbound property set.

#

Let me check further...

static peak
#

to confirm, what I am requesting is "inbound" capability.
"Outbound" is working fine.

wintry yarrowBOT
static peak
#

any more info required?

loud maple
#

Looking

#

We don't know a ton about treasury in here though

#

An outbound transfer to that same pm_ works?

#

Can you share a request id where that succeeded to compare?

static peak
#

yes

#

sure

#

req_VJXDORqE24yiJc

loud maple
#

Hm I do see that's a different pm_ id

#

But looking

static peak
#

Here's one with the same pm_id
req_tZ4z0ppwL36QIm

#

the destination_payment_method is in the request object

wintry yarrowBOT
loud maple
#

Attach the PaymentMethod to a Customer object if you intend to use the payment method for an outbound payment to a third party.
Attach the PaymentMethod to a connected account or platform account if you intend to use the payment method for an inbound transfer or outbound transfer between an external account that belongs to the same business as the Stripe account.```
#

Since it's attached to customer it will work for outbound payments but not inbound

#

So in the setupintent you'd need to pass attach_to_self not customer

#

Recommend reading above doc fully

static peak
#

I tried that. But didn't find any the pm_id when searching the dashboard. Could only find setup intent.

Thank you for the information. This could help me out.

loud maple
#

You passed customer id

#

Read above doc for how to do this for inbound instead

static peak
#

sure. Thanks a lot for the help.