Open pH-7 opened 4 years ago
$intent = \Stripe\PaymentIntent::create([
'payment_method_data' => [
'type' => 'card',
'card' => ['token' => $token_id],
],
'amount' => $amount,
'currency' => 'usd',
'confirmation_method' => 'manual',
'confirm' => true,
]);
Might be worth to consider Omnipay, https://github.com/thephpleague/omnipay-stripe And, it will make things easier, as the number of supported gateways in pH7Builder has increased in the past few years.
In order to support the new SCA payment regulations, it will be necessary to migrate the current Stripe version to the newer one.
TODO:
Stripe Documentation - Migration