Is the following call possible in slim with stripe ?
I seem to be boinking on anything to do with stripe Namespaces?
This would be a super shame, Stripe is becoming the giant in on line payments very rapidly…
case 'checkout':
\Stripe\Stripe::setApiKey('sk_test_7PlIUekk4t8rngfmXhiWnnza');
$session = \Stripe\Checkout\Session::create([
'payment_method_types' => ['card'],
'line_items' => [[
'name' => $run->DriveFromName,
'amount' => $run->Charge * 100,
'currency' => 'usd',
'quantity' => 1,
]],
'payment_intent_data' => [
'application_fee_amount' => $run->Charge * 3.9,
],
'success_url' => "https://easymoneycheaprides.com/?session_id={$session->Id}",
'cancel_url' => "https://easymoneycheaprides.com/?session_id=failure",
], [
'stripe_account' => $run->DriveAcct,
]);
break;