#mathersdis
1 messages ยท Page 1 of 1 (latest)
ohh ok
so basically i have created a function where i make a payment via a payment element and it deducts the application fee from the charge so it goes to the platform's account right
so it works fine
ok
now after the transaction i wanted to use this https://stripe.com/docs/connect/separate-charges-and-transfers, separate charges to transfer from the platform's account to two different connected accounts, i created a payment intent first for the transfers and created the transfers but the transfer didnt work
would you mind sharing the request ID that failed?
Find help and support for Stripe. Our support center provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
that is the PaymentIntent and it succeeded, where is the Transfer that failed?
in any case, read this answer, it will help. https://stackoverflow.com/questions/55686949/why-i-am-getting-insufficient-funds-when-trying-stripe-transfers-even-though-i/55687932#55687932
i have a question i think that can clear it up for me
when making separate charges and transfers, can i make transfers directly from the platforms account or when i create the payment intent for the transfer i have to accept a payment via payment element before i can run the create transfer function?
can i make transfers directly from the platforms account
only if your platform already has sufficientavailablebalance accumulated on it.
please read the link I shared
ok sure, is a payment intent necessary for the transfer?
well you need to have money in your account to be able to transfer it anywhere
usually you make money by charging your end-customers, and you charge end-customers by using PaymentIntents ๐
maybe that answers the question
yes exactly
ohh ok i understand now
i will just use the latest charge attribute from my payment intent and use it for my transfers and also set the source transaction , meaning no need for two payment intents, just the one that made the charge and i can use it and make as much transfers as the use case needs correct?
yes you usually would use the latest_charge from a PaymentIntent as the source_transaction for a Transfer
you can use the same charge for multiple transfers (https://stripe.com/docs/connect/charges-transfers#transfer-availability again)