【发布时间】:2017-05-12 08:29:29
【问题描述】:
我尝试使用omnipay库实现paymentwall支付网关与Laravel的集成。设置setApiType、setPublicKey和setPrivateKey并尝试调用API ,它从支付墙网关得到响应“Public key is missing or invalid”。
实际上,这个错误是由于将参数公钥传递为public_Key 而不是来自omnipay 库的public_key。
以下是回复
[request:protected] => Omnipay\PaymentWall\Message\PurchaseRequest Object
(
[endPoint:protected] => https://api.paymentwall.com/api
[parameters:protected] => Symfony\Component\HttpFoundation\ParameterBag Object
(
[parameters:protected] => Array
(
[apiType] => 0
[publicKey] => hjghjghsdfsc5464564564e56456
[privateKey] => gfh4567686786787hfjfhgfgfgh
[amount] => 10.00
[currency] => USD
[accountId] =>
[description] => test Pay
[email] => test@gmail.com
[clientIp] => 112.133.236.158
[browserDomain] => test.com
[card] => Omnipay\Common\CreditCard Object
[response:protected] => Omnipay\PaymentWall\Message\Response Object
*RECURSION*
[zeroAmountAllowed:protected] => 1
[negativeAmountAllowed:protected] =>
)
[data:protected] => Array
(
[type] => Error
[object] => Error
[error] => Public key is missed or invalid
[code] => 2111
[log] =>
)
)
公钥丢失或无效
【问题讨论】:
标签: omnipay