#nsad__

1 messages · Page 1 of 1 (latest)

unborn spokeBOT
dim siren
#

👋 happy to help, would you mind elaborating please?

peak hornet
#

hello, good morning, so i want create split in product, separe a value in 2 accounts

dim siren
#

I'm not sure I understand

#

would you mind giving a clear example please?

peak hornet
#

product:
90.00

when sell this product, 80,00 go to account 1, and the rest go to account 2
account 1
account 2

dim siren
#

have you had a look at Stripe Connect?

peak hornet
#

yes

dim siren
#

that's what you're looking for

peak hornet
#

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',
)

dim siren
#

yes exactly

peak hornet
#

okay, but in this case

#

how i can configure just to account_2 receive 1 payment

#

not recurring

dim siren
#

that's not recurring

peak hornet
#

yes, but when i change mode to subscription

dim siren
#

you want to transfer only once to account_2?

peak hornet
#

My doubt is that there will be users who will receive a single payment, and others who will receive the split value forever.

dim siren
#

well it depends on your model I would say

peak hornet
#

understand, for example when my checkout is success, already create subscription automatic, right?

dim siren
#

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

peak hornet
#

ah okay, i need create this inside webhook?

dim siren
#

yes probably

peak hornet
#

okay

#

thanks so much !