#mathersdis

1 messages ยท Page 1 of 1 (latest)

umbral basaltBOT
blissful bay
#

๐Ÿ‘‹ happy to help

#

I'm not sure I follow

honest breach
#

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

blissful bay
#

ok

honest breach
blissful bay
#

would you mind sharing the request ID that failed?

honest breach
umbral basaltBOT
manic pike
#

that is the PaymentIntent and it succeeded, where is the Transfer that failed?

honest breach
#

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?

manic pike
#

can i make transfers directly from the platforms account
only if your platform already has sufficient available balance accumulated on it.

#

please read the link I shared

honest breach
manic pike
#

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

honest breach
#

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?

manic pike
#

yes you usually would use the latest_charge from a PaymentIntent as the source_transaction for a Transfer