#davila7-connect
1 messages · Page 1 of 1 (latest)
I'm using a checkout session
$YOUR_DOMAIN = secure_url("/");
$checkout_session = \Stripe\Checkout\Session::create([
'line_items' => [[
'name' => $box->nombre,
'amount' => $stripe_monto,
'quantity' => 1,
'currency' => $currency_id,
'description' => $orden->producto.' con un valor de '.$orden->monto.' '.$currency_id
]],
'client_reference_id' => $orden->id,
'mode' => 'payment',
'success_url' => $YOUR_DOMAIN . '/market/'.Hashids::encode($orden->id).'/thanks_stripe',
'cancel_url' => $YOUR_DOMAIN . '/market/'.Hashids::encode($orden->id).'/cancel_stripe',
], ["stripe_account" => $box->stripe_account_id]);
return redirect($checkout_session->url);
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
So it's inside payment_intent_data.transfer_data
Could be this one ?
Yeah that works too. application_fee_amount and transfer_data is 2 ways (inside payment_intent_data)
https://stripe.com/docs/connect/destination-charges#application-fee
vs
https://stripe.com/docs/connect/destination-charges#transfer-amount