首页 > 解决方案 > 如何在 omnypay-stripe 上完成付款

问题描述

我正在使我的 Omnipay/stripe SCA 兼容

                $response = $gateway->purchase([
                    'amount'        => $total,
                    'currency'      => $store_currency,
                    'description'   => 'Stripe payment',
                    'paymentMethod' => $paymentMethodId,
                    'returnUrl'     => $returnUrl",
                    'confirm'       => true,
                    'metadata'      => null,
                ])->setItems($items)->send();

                if ($response->isSuccessful()) {
                    // ok
                } elseif ($response->isRedirect()) {
                    $response->redirect(); // and then?
                } else {
                    // error
                }

当没有 3D/SCA 的付款进行时是可以的,但是当被重定向时我不知道该怎么做。

谢谢!

标签: omnipaystrong-customer-authentication

解决方案


推荐阅读