#callmarl
1 messages · Page 1 of 1 (latest)
For what use case exactly ?
To payout a connect customer
The API for creating a card/bank external account doesn't support using PaymentMethods tokens:
https://stripe.com/docs/api/external_account_cards/create
https://stripe.com/docs/api/external_account_bank_accounts/create
Ok so I don't realy undestand how to proceed? Because source object are deprecated?
Can you please describe your flow from the beginning ?
Before I use to work with source token like this to save bank account account or card (the token is from front-end) :
s_card = stripe.Customer.create_source(
profile.token,
source=token
)
First, could you please describe what you want to achieve exactly ? and why you want to use External Account. Here you are referring to Customer code, while at the begingin you were saying that you want to payout a Connect Account.
Stripe Customer and Account are two different objects.
I need to achieve payout for customer of an connect account
I don't understand how can I had external account without using deprecated feature...
I need to achieve payout for customer of an connect account
No you can't payout to a customer. You can payout only to a Connect Account.
I'am only speaking from an Connect Account. Connect Account can have customers, theses customers can save paiement information into this Connect Account and Connect Account owner can credit those account using external account.
No you can't send money to end customers.
stripe.Payout.create(
amount=amount,
currency="eur",
destination=s_bank_account_id,
stripe_account=settings.STRIPE_ACCOUNT_TOKEN
)
destination must be a bank account or a card for the Connect Account and not the end customer
You can't send money to end customers.
Why?
That's not supported in Stripe.
You need to create a Connect Account that represents that End customer. that's the only way to send money to someone (person or company)
what is the business need ? is it refunds or compensation ?
Need to buy from the seller by sending money and sell to the end customer.
And why you need to send money to the end customer ? you need to accept payment from the end customer then ?
Yes I have to accept paiement to the end customer.
And I need send money to the end user because the end user could be a seller
in that case you need to create two Stripe object for the seller: Customer Object and Connect Account
you accept payment from the seller if he's an end user, and you use the Stripe Customer object. If you want to payout the seller you need to use the Connect Account object for that
Yes it’s why I’am asking about external account how to save bank account into Stripe Connect
Because now source are depracated
you'd use Tokens still, for external accounts
i.e. you use https://stripe.com/docs/js/tokens/create_token?type=cardElement on the frontend form
and then use https://stripe.com/docs/api/external_account_cards/create on the backend to attach the token to the connected account