#froggy

1 messages · Page 1 of 1 (latest)

signal fjordBOT
subtle tundra
#

Hi! Let me help you with this.

marble burrow
#

Hello! Sounds good

subtle tundra
marble burrow
#

hmm, what should the transfer_group be?

#

is there any code snippet i can use?

#

from what i understand there are 4 main chunks

#

not too sure how i can combine them together since in the case of the await stripe.checkout.sessions.create({}) method, it will itself generate the price etc?

subtle tundra
#

For you case, instead of creating a PaymentIntent (1st step), you create a Checkout Session, with the transfer_group parameter. It can be any unique string. It's important that you use the same string for transfers.

marble burrow
#

so, I will create a checkout session, and then I will call the step 2 (stripe.transfer.create()) and step 3 (stripe.transfer.create()), with the same transfer group as the checkout session?

subtle tundra
#

Yes.

signal fjordBOT
marble burrow
#

Hmmm, I see, so each time I need to generate a brand new transfer group?

tawdry horizon
#

Not necessarily as far as I know. Though also you can create those transfers without setting a transfer group and Stripe will create one for you