#dooms

1 messages · Page 1 of 1 (latest)

steady pondBOT
fallow lodge
surreal saffron
#

oh thx , i try to migrate from express to custom but some things are still unclear for me

fallow lodge
#

Any time, happy to help!

surreal saffron
#

hello can i ask you some other things there or i ask in the help channel ?

fallow lodge
#

You can ask here

surreal saffron
#

ok thx , my client have to pay for a service from another user , for this payment intent do i have to create a customer for my client , or can i use his account (custom) ?

fallow lodge
#

Yes, you will want to use a Customer object for that. You won't be able to directly charge the Connected Account.

surreal saffron
#

ok it is a customer of my plateform or of my user provider ?

fallow lodge
#

Since you're working with Custom Connected Accounts, does that mean you're working with Destination Charges?

surreal saffron
#

$paymentIntent = $stripe->paymentIntents->create([
'amount' => intval(2000 * 100),
'application_fee_amount' => intval(2000 * 0,30) * 10,
'currency' => 'EUR',
'payment_method_types' => ['card'],
'confirm' => true,
'customer' => $customerAccount,
'on_behalf_of' => $providerStripeAccount,
'description' => "**************",
'transfer_data' => [
'destination' => $providerStripeAccount
],
'metadata' => [

        ],
        'off_session'            => true,
        'mandate_data' => [
            'customer_acceptance' => [
              'type' => 'offline'                ]
          ]



    ]);
#

something like that , but maybe there is a better method ?

fallow lodge
#

Alright, so that does look like a Destination Charge (as opposed to a Direct Charge). With Destination Charges, the payment happens on the Platform account and all associated objects need to reside there, so the Customer will need to exist on your Platform account.

surreal saffron
#

ok thx so much i understand now

fallow lodge
#

Any time, happy to help!