我尝试使用Laravel实现付费墙支付网关与setApiType、setPublicKey和setPrivateKey的集成,并尝试调用API,从支付墙网关获得响应“公钥丢失或无效”。实际上,发生此错误的原因是将参数公钥作为public_Key传递,而不是从万能库中传递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] =>
)
)公钥丢失或无效
发布于 2017-01-04 09:20:03
正如我在您在github上提出的问题中所评论的那样:
https://stackoverflow.com/questions/41355561
复制相似问题