$stripe = new StripeStripeClient([
“api_key” => “sk_test_51HNVCQDcAoHOh6Ncr66Yc1FLnR65G8LH4e8zn7u9t8ctKfu8UA0kejJPoQipCKCUCavXcA4OwDZq8Gc7EHyUMJ0700u0bN6jZh”
]);
$session = StripeCheckoutSession::create([
‘payment_method_types’ => [‘card’],
‘payment_method_types’ => [‘paynow’],
// or you can take multiple payment methods with
// ‘payment_method_types’ => [‘card’, ‘paynow’, …] ‘line_items’ => [[
‘price_data’ => [
‘currency’ => ‘sgd’,
‘product_data’ => [
‘name’ => ‘T-shirt’,
],
‘unit_amount’ => 2000,
],
‘quantity’ => 1,
]],
‘mode’ => ‘payment’,
‘success_url’ => ‘https://example.com/success’,
‘cancel_url’ => ‘https://example.com/cancel’,
]);

I agree to terms 我同意条款