omnipay - 如何在 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 的付款进行时是可以的,但是当被重定向时我不知道该怎么做。
- 如何完成付款?
- 如何检索发送到第一页的所有 POST 数据?
谢谢!
解决方案
推荐阅读
- python - 将csv文件中的行加载到Python中的热图轴中
- linux - 如何在 cURL 的 URL 开头绑定变量,它会抛出错误
- excel - 根据切片器选择隐藏整个列
- java - 使用动态表达式作为 claimCheck 键
- json - 空手道 DSL 在作为 json 参数传递时拉出括号
- python - Python 和 Pandas 似乎正在更改分配给变量的数据框,即使我没有明确更改变量
- python - 无法找出使用 apply lambda 在数据帧上实现 if 语句的正确方法
- mysql - MYSQL 如何将所有权限授予用户只对他创建的数据库?
- ubuntu - 使用 setuid 链接到共享库
- r - 根据唯一 ID 对数据进行分组,然后将其粘贴到同一行