#Kacper_Banasik-Checkout transfer

1 messages ยท Page 1 of 1 (latest)

dusky prairie
#

๐Ÿ‘‹ happy to help

pulsar kite
#

hi ๐Ÿ™‚

dusky prairie
#

to automatically generate the transfer

#

instead of creating a separate transfer yourself

pulsar kite
#

okay but how can I add multiple accounts id in that case

#

for destination

dusky prairie
#

yeah in that case you can't that's true

pulsar kite
#

so because of that I have to use transfers

#

which won't send money as soon as checkout is completed

#

so the problem stays the same

dusky prairie
#

yes I agree, I'm trying to figure out what's the best course of action in this case

#

just give me a couple of minutes to think about it

pulsar kite
#

sure take your time

dusky prairie
#

please ping me if I don't get back to you within 10min

pulsar kite
#

sure ๐Ÿ™‚

#

@dusky prairie

dusky prairie
#

yes sorry about that

#

discord is a bit busy at the moment

pulsar kite
#

yea no worries

dusky prairie
#

sorry I didn't think about that earlier

pulsar kite
#

I tried to use it

#

my problem with this was what charge id should i use

dusky prairie
#

with the corresponding charge id?

pulsar kite
#

my payment intent/checkout charges list is empty

dusky prairie
#

from the checkout session object, you need to retrieve the payment_intent.charges.data[0].id

pulsar kite
#

so should i create new charge before using that?

#

yea and this list is empty in my case

#

the data list

dusky prairie
#

did you retrieve the payment_intent separately?

pulsar kite
#

maybe I should use it in webhook after checkout is completed?

dusky prairie
#

it's normal that you would only get the payment_intent id from the checkout.session.completed object

#

since the field is expandable

pulsar kite
#

okay let me try this and I will comeback with certain answer and some screenshots

#

so just to me sure do i create checkout and then transfer without creating payment intent?

dusky prairie
pulsar kite
#

and in transfer source_transaction=payment_intent.charges.data[0].id

#

ahh okay

#

now i get it

dusky prairie
#

yes

pulsar kite
#

okay let me try this

dusky prairie
#

let me know if you need any more help

pulsar kite
#

sure, thanks ๐Ÿ™‚

pulsar kite
#

@dusky prairie It worked as it should. Thank you sooo much for your help ๐Ÿ˜„

dusky prairie
#

glad to hear that