#juhanaflagship_transfers-payments

1 messages ยท Page 1 of 1 (latest)

south oreBOT
#

๐Ÿ‘‹ 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/1228032158099312800

๐Ÿ“ Have more to share? Add more details, code, screenshots, videos, etc. below.

wise abyssBOT
spark hemlock
#

Hi ๐Ÿ‘‹

The transfer.created event is fired whenever a Transfer object is created. It does not necessarily mean the funds have transferred from the Platform account's Stripe balance to the Connected Account's Stripe balance.

dull flax
#

Thanks for the answer! Would you recommend then polling the status of the destination payment until it's in a terminal state?

spark hemlock
#

Yup! Just be aware that you will need to pass the Connected Account ID in the stripe_account header when retrieving the payment.

#

I just tested this, creating a Transfer from my test Platform Account

#

The Transfer object exists on the Platform, but the Payment (py_XXXX) exists on the Connected Account

#

So first I created the transfer

transfer = stripe.Transfer.create(...)

payment = stripe.Charge.retrieve(transfer.destination_payment, stripe_account='acct_XXXXX')
#

Then the second line I retrieve the destination payment using the Charges API

dull flax
#

That sounds good. What are the terminal states of the payment?

spark hemlock
dull flax
#

Amazing. Thank you!

#

I'm all set. I appreciate your help

spark hemlock
#

Great ๐ŸŽ‰ Happy to help ๐Ÿ™‚