#davila7-connect

1 messages · Page 1 of 1 (latest)

weary hinge
#

Which fund flow are you using? Destination Charge?

glad ether
#

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);
weary hinge
#

So it's inside payment_intent_data.transfer_data

glad ether
#

Could be this one ?

weary hinge
#

Yeah that works too. application_fee_amount and transfer_data is 2 ways (inside payment_intent_data)