#eric-emilio
1 messages · Page 1 of 1 (latest)
Hi, can you add more details here? What would that code do?
We process orders from customers in different areas, and within each of these areas we work with a partner to fulfill those orders. Payments for those orders should go to that local partner's Stripe account.
I see, you'd handle that on your end first, and then you'll use the 'Secret_Key' for that applicable account.
Yes - but my question is can I specify the Secret Key some other way beside in the require statement.
No, there is not.
Because usually I put the require statement at the top of the code, and then in the logic of the code I'll determine the user area and then I will be ready to specify the Secret Key
It won't work here
OK. There's not another way I can do this within one Stripe account is there? I am aware of Connect and we will migrate to that in the longer term.
In other words, a way to segregate some payments to go to a different Bank account.
As you've mentioned, Connect solves for that. You'd pass the Stripe Account Header: https://stripe.com/docs/connect/authentication and create a payment on the Connected Account.
OK and that's the only way to do it within Stripe then? I don't see an ability to define different Payout accounts.