#vikranth_error
1 messages ¡ Page 1 of 1 (latest)
đ 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.
Hi there!
Can you share the ID (req_xxx) of the failing API request?
https://support.stripe.com/questions/finding-the-id-for-an-api-request
Thanks, checking..
You need to use a payment method of the Account and not it's Customer
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?
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'],
});
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...
to confirm, what I am requesting is "inbound" capability.
"Outbound" is working fine.
any more info required?
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?
Here's one with the same pm_id
req_tZ4z0ppwL36QIm
the destination_payment_method is in the request object
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
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.
See this setupintent request which created the payment method: https://dashboard.stripe.com/test/logs/req_KzlAp95Z8Wixpm
You passed customer id
Read above doc for how to do this for inbound instead
sure. Thanks a lot for the help.