$accessToken = $this->_netellerAccess();
$data_string = '{
"paymentMethod": {
"type": "neteller",
"value": "ashutosh12@avainfotech.com"
},
"transaction": {
"merchantRefId": "26434256",
"amount": 10,
"currency": "USD"
},
"verificationCode": "234124"
}';
$token=$accessToken['accessToken'];
$ch = curl_init('https://api.neteller.com/v1/transferOut');
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "POST");
curl_setopt($ch, CURLOPT_POSTFIELDS, $data_string);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, array(
'Content-Type: application/json',
"Authorization: Bearer $token"
)
);
echo $result = curl_exec($ch);{“错误”:{“代码”:"20005",“消息”:“重复事务引用”}}我总是得到类似于20005的错误。
发布于 2015-03-16 14:48:59
这个错误意味着您已经创建了一个带有这个“商船刷新”的事务。
“merchantRefId”字段应该包含每个事务的唯一值。
发布于 2015-08-26 21:02:41
"merchantRefId": "26434256"只需将其改为另一个随机值即可。
https://stackoverflow.com/questions/28652926
复制相似问题