配置Omnypay Stripe SCA 3D

问题描述

我正在努力使我的 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 (将#修改为@)

相关问答

Selenium Web驱动程序和Java。元素在(x,y)点处不可单击。其...
Python-如何使用点“。” 访问字典成员?
Java 字符串是不可变的。到底是什么意思?
Java中的“ final”关键字如何工作?(我仍然可以修改对象。...
“loop:”在Java代码中。这是什么,为什么要编译?
java.lang.ClassNotFoundException:sun.jdbc.odbc.JdbcOdbc...