#harshittyagi_api
1 messages ยท Page 1 of 1 (latest)
๐ Welcome to your new thread!
โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
๐ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1425769402313216042
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
๐
How the transfers are created in your integration ? because there could be multiple options here...
I use this API to create the payment intent - https://docs.stripe.com/api/payment_intents/create
and at the same time I use it's "transfer_data" property to tell the destination and transfer amount
So you are doing a destination charge.
Yes
Firstly, I want to mention that in the transfer object you have a source_transaction field:
https://docs.stripe.com/api/transfers/object#transfer_object-source_transaction
However there is no direct way to filter the transfers by the source_transaction
So what you need to do, is to list the transfers by the created date, ( with a date around the creation date of the PaymentIntent) and in your integration you should filter untill you get your PaymentIntent id
https://docs.stripe.com/api/transfers/list#list_transfers-created
PaymentIntent id will be there in "source_transaction" field?
Can you please confirm that
There will be the PaymentIntent'latest charge actually
And from the charge you get the PaymentIntent Id
Can't I just use this API - https://docs.stripe.com/api/charges/list to list all charges for a paymentIntent and then look for that charge which has "trasnfer" property - https://docs.stripe.com/api/charges/object#charge_object-transfer
Yeah that could be another option too
which one would you suggest?
I think this second option would be faster as here I'm querying the charges based on PaymentIntent id .. and not on date range like in the first option
Yes true, the second one would be easier I think
okay, thanks for your help. Have a nice day!