首页 > 解决方案 > 在装配付款 make_payment API 上出现错误

问题描述

我正在实现一个用于使用 PHP 进行支付的程序集支付 API。一切都在沙盒环境中运行良好。但在生产中,它给出了一条错误消息。

信用卡支付失败:无法处理购买交易。(2)

我为付款而实施的代码是:

$rest = curl_init();
curl_setopt($rest,CURLOPT_URL,$url);
curl_setopt($rest,CURLOPT_HTTPGET,1);
curl_setopt($rest,CURLOPT_CUSTOMREQUEST,"PATCH");
curl_setopt($rest,CURLOPT_POSTFIELDS,$accountdata);
curl_setopt($rest,CURLOPT_HTTPHEADER,$headers);
curl_setopt($rest,CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($rest,CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($rest);
$data = Zend_Json::decode($response);
return $data;

其中 $url = https://secure.api.promisepay.com/items/wc5xxq6k-gkx0-jx5x-l1gm-xxxxxxx/make_payment

标签: phpcurlpayment-gatewaypayment

解决方案


推荐阅读