#nsad__
1 messages · Page 1 of 1 (latest)
👋 happy to help, would you mind elaborating please?
hello, good morning, so i want create split in product, separe a value in 2 accounts
product:
90.00
when sell this product, 80,00 go to account 1, and the rest go to account 2
account 1
account 2
have you had a look at Stripe Connect?
yes
that's what you're looking for
i do this:
checkout_session = stripe.checkout.Session.create(
payment_method_types=['card'],
line_items=[
{
'price': 'preço_do_produto',
'quantity': 1,
},
],
payment_intent_data={
'application_fee_amount': 100, # Comissão retida pelo marketplace em centavos (R$ 1,00)
'transfer_data': {
'destination': account_2,
},
},
success_url='https://seusite.com/success',
cancel_url='https://seusite.com/cancel',
)
yes exactly
okay, but in this case
how i can configure just to account_2 receive 1 payment
not recurring
that's not recurring
yes, but when i change mode to subscription
you want to transfer only once to account_2?
My doubt is that there will be users who will receive a single payment, and others who will receive the split value forever.
well it depends on your model I would say
understand, for example when my checkout is success, already create subscription automatic, right?
no if you want to transfer only one time
you can do so separately
so you wouldn't pass in the application_fee_amount or the transfer_data
you would consider it as a separate charge and transfer
ah okay, i need create this inside webhook?
yes probably