#Giovanni-example-code
1 messages · Page 1 of 1 (latest)
Hi there!
Just to clarify, you already have the bank account details of your customer?
You aren't collecting them client-side?
correct
Gotcha. Then yes you can do this via a SetupIntent directly. You would use payment_method_data.us_bank_account : https://stripe.com/docs/api/setup_intents/create#create_setup_intent-payment_method_data-us_bank_account
And you will need to also pass in mandate_data: https://stripe.com/docs/api/setup_intents/create#create_setup_intent-mandate_data
ok thanks Also related but different question... if we want to do an outbound wire, do we need to setup a PaymentMethod resource for that? Or you just go straight to OutboundTransfer and fill in the details there? Is there a code sample of one of those?
For that you want to follow the docs here: https://stripe.com/docs/treasury/examples/moving-money#using-paymentmethods-with-outboundpayments
So yes you would also use a SetupIntent to attach a PaymentMethod to a Customer with the flow_directions: ['outbound'] set