gpt4 book ai didi

adyen - 错误 : Skin null does not exist

转载 作者:行者123 更新时间:2023-12-04 17:50:38 26 4
gpt4 key购买 nike

我试图从我的 Controller 向 https://test.adyen.com/hpp/select.shtml 发出发布请求,但我继续收到此错误

Error: Skin null does not exist

这是我的代码的一部分

$paramsRequest = array (
'merchantReference' => 'reference',
'paymentAmount' => 10,
'currencyCode' => 'EUR',
'shipBeforeDate' => '2017-11-29T13:42:40+1:00',
'skinCode' => 'f8My4RJC',
'merchantAccount' => 'TestNL076',
'sessionValidity' => '2017-11-29T13:42:40+1:00',
'merchantReturnData' => 'string',
'shopperEmail' => 'shopper@gmail.com',
);


$hcma = '8382E2...';

$paramsRequest['merchantSig'] = Util::calculateSha256Signature($hcma, $paramsRequest);

return $this->handlePostRequest($paramsRequest, 'https://test.adyen.com/hpp/select.shtml');

并处理请求

protected function handlePostRequest($data, $url)
{
$ch = curl_init();

curl_setopt($ch, CURLOPT_URL, $url);

curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type: application/json'));

curl_setopt($ch, CURLOPT_HEADER, false);

curl_setopt($ch, CURLOPT_USERPWD, 'admin' . ":" . 'password');

curl_setopt($ch, CURLOPT_POST, count($data));

curl_setopt($ch, CURLOPT_POSTFIELDS,json_encode($data));

curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);

$result = curl_exec($ch);

$code = curl_getinfo($ch, CURLINFO_HTTP_CODE);

curl_close($ch);

return $result;
}

最佳答案

您是否正在尝试执行可用付款的查找?如果是,则使用终点。

https://test.adyen.com/hpp/directory.shtml 

否则,select.shtml 端点会在您希望购物者输入信息或将其发送至银行时重定向购物者的浏览器。这是 Adyen 的 local payment method docs. 的链接

关于adyen - 错误 : Skin null does not exist,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45346382/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com