#matt-treasury-externalaccount
1 messages · Page 1 of 1 (latest)
Hello! We'll be with you shortly. 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.
- burgerboy34, 11 hours ago, 22 messages
This question is a continuation from my previous question
What do you see in the response from your initial outbound payment?
response {
id: 'obp_1OVFAIBOiphD0JMhNYoiokjB',
object: 'treasury.outbound_payment',
amount: 200,
cancelable: true,
created: 1704467910,
currency: 'usd',
customer: null,
description: null,
destination_payment_method: null,
destination_payment_method_details: {
billing_details: { address: [Object], email: null, name: null },
financial_account: { id: 'fa_1OUWBdPcMYfR4Q9vEtGbrOO1', network: 'stripe' },
type: 'financial_account'
},
end_user_details: { ip_address: null, present: false },
expected_arrival_date: 1704412800,
financial_account: 'fa_1OUEB5BOiphD0JMhpiRmZscS',
hosted_regulatory_receipt_url: 'https://payments.stripe.com/regulatory-receipt/CBQaFwoVYWNjdF8xT1VFQjFCT2lwaEQwSk1oKMe74KwGMgbT_N7vNbs6NZNZAdX9f8nPWmsn6w1OB6mGNfknm_JiiTD9YOQK6gaBE9FDV2GxqHpT2akERkUBV8hbRMGt',
livemode: false,
metadata: {},
returned_details: null,
statement_descriptor: 'Test outbound payment to FA',
status: 'processing',
status_transitions: {
canceled_at: null,
failed_at: null,
posted_at: null,
returned_at: null
},
transaction: 'trxn_1OVFAIBOiphD0JMhMiZSsVQ6'
}
everytime i send a transaction it creates a new external account
trying to figure out how to send payments and not have that happen
Gotcha yeah you would use the bank account ID associated with those external accounts
But don't recall best way to access this from the API
Looking
yeah that is what i was running into, because you can't get a list of bank accounts from another customer
does destination_payment_method take bank_Account_id as a parameter?
Yep
just for clarification bank_Account_id === financial_account_id
where can i access the bank account id from the dashboard?
ill hard code for now to test workflow and then i can figure out how retrieve it from app later
If you drop down one of those accounts in the picture above do you see that ID?
Yep try that
It should work
Hmm wait actually
Ah sorry
We missed a crucial step here
So I don't think this flow works at all with destination_payment_method_data -- that just attaches the bank account to the Connected Account. To make recurring outbound payments you need to have a PaymentMethod or Bank Account attached to a Customer
With destination_payment_method, you must first set up the PaymentMethod for outbound flows using a SetupIntent. You must also specify the customer ID that matches the Customer object the PaymentMethod is attached to. Alternatively, you can use an existing legacy BankAccount attached to the Customer in place of a PaymentMethod.
how do i setup a payment method to use the connected cusomters stripe financial account
For a reusable use-case you need to use a SetupIntent like is shown here: https://stripe.com/docs/treasury/examples/moving-money#adding-an-external-bank-account
Down at the bottom of that doc shows that the way you are currently doing it is only for one-off payments (https://stripe.com/docs/treasury/examples/moving-money#creating-an-outboundpayment-without-a-paymentmethod)
im trying to utilize stripes network to transfer form financial account to financial account but when i try and use external bank account setup in test mode it wont let me connect that way
maybe there is another way workflow to achieve this
connected account 1 has a financial account setup through treasury > connected account 2 has a financial account setup through treasury > connected account 1 wants to send funds directly to connected account 2 > How can i do that without having a new external account added each time i send the payment
Gotcha, I'm not intimately familiar with this flow myself. Give me a moment to confer with a colleague about the best way to accomplish this.
Okay so wait, in your example you just stated, you had already added the financial account to both of the Connected Accounts?
yeah
I was under the impression you were doing that inline, since you were passing the account info in destination_payment_method_data
Okay in that case you should just be able to create a normal outbound payment with the two Financial Account IDs?
Like I can see you have already done that
yup
and that works but everytime i send a new outbound payment it adds the bank account to external accounts in the dashboard
but it does use the same financial account
When you don't use destintion_payment_method_data?
so im not sure how to do it without using that method
Oh I see.
Okay yeah I was under the impression that should not create a new external account...
same
I thought you were passing the account number inline
nope, sorry for the confusion
Which I do believe should create the external account in that case
No worries
Okay let me look at that piece more closely. Give me a minute
Can you trigger a fresh request?
yeah
response {
id: 'obp_1OVFtHBOiphD0JMhmVdyn0Fc',
object: 'treasury.outbound_payment',
amount: 100,
cancelable: true,
created: 1704470699,
currency: 'usd',
customer: null,
description: null,
destination_payment_method: null,
destination_payment_method_details: {
billing_details: { address: [Object], email: null, name: null },
financial_account: { id: 'fa_1OUWBdPcMYfR4Q9vEtGbrOO1', network: 'stripe' },
type: 'financial_account'
},
end_user_details: { ip_address: null, present: false },
expected_arrival_date: 1704412800,
financial_account: 'fa_1OUEB5BOiphD0JMhpiRmZscS',
hosted_regulatory_receipt_url: 'https://payments.stripe.com/regulatory-receipt/CBQaFwoVYWNjdF8xT1VFQjFCT2lwaEQwSk1oKKzR4KwGMgaEG_GtWkk6NZPqIOPn5CYa2ufdZac0YGCJDT8mAAX-dmddeVpn39o3RVde47w1XQU-Wgl8b-42TWQ1gFvn',
livemode: false,
metadata: {},
returned_details: null,
statement_descriptor: 'Test outbound payment to FA',
status: 'processing',
status_transitions: {
canceled_at: null,
failed_at: null,
posted_at: null,
returned_at: null
},
transaction: 'trxn_1OVFtHBOiphD0JMhJOeIv3Su'
}
Thanks, okay going to need a few minutes to check internally whether this would be expected for some reason. Feels like a bug to me.
Alright so far I've gotten confirmation that this should not be the behavior here. We are continuing to investigate further.
matt-treasury-externalaccount