pH7Software / pH7-Social-Dating-CMS

😻 pH7Builder (formerly pH7CMS) is a Professional & Open Source Social Dating CMS written in PHP 8 🚀 This Social Dating Script aims to be low resource-intensive, powerful and secure. pH7Builder includes over 40 modules. It is the first Professional, Free & Open Source Social Dating Site Builder Software and the first choice for enterprise level Da
https://pH7Builder.com
MIT License
956 stars 573 forks source link

[Payment Mod]Upgrade Stripe to support SCA (PSD2 regulation) #648

Open pH-7 opened 4 years ago

pH-7 commented 4 years ago

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

  1. https://stripe.com/docs/payments/payment-intents/migration
  2. https://stripe.com/docs/payments/checkout/migration
pH-7 commented 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,
    ]);
pH-7 commented 4 years ago

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.