问题描述
我正在努力使我的 Omnipay/Stripe 支付系统符合 SCA。
$response = $gateway->authorize([
'amount' => $total,'currency' => 'EUR','token' => $token,'returnUrl' => $successUrl,'confirm' => true,])->setItems($items);
// add stripe data
$data = $response->getData();
$data['expand'] = array("balance_transaction");
$response = $response->sendData($data);
我严格按照 Github 自述文件中的说明进行操作,但付款一直失败。 如果我尝试手动确认
// set confirm manually
$paymentIntentReference = $response->getPaymentIntentReference();
$paymentIntentReference = 'unique_id'.rand(0,99);
$response = $response->confirm([
'paymentIntentReference' => $paymentIntentReference,'returnUrl' => $site['root'].PAY_SUCCESS_SLUG,]);
我收到以下错误消息:
Call to undefined method Omnipay\Stripe\Message\AuthorizeRequest::getPaymentIntentReference()
跳过该行,方法 ->confirm() 似乎也丢失了
版本:我刚刚升级了一切:Omnipay (3.0) 和 Omnipay/Stripe (3.1.0)
有什么建议吗? 谢谢!
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)