php - 在装配付款 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
解决方案
推荐阅读
- r - 使用 Jupyter Notebook 运行 R 代码时内核不会启动
- google-sheets - 添加一个函数以根据 URL 显示图像,该 URL 会根据表格中的单元格而变化
- reactjs - 如何将 Mock Service Worker 与 AWS App Sync GraphQL 查询结合使用?
- python - 如何在 Python 中淡化图像
- amazon-web-services - 使用 Terraform 部署 lambda,其中可以从 2 个 ECR 中的 1 个检索图像
- r - 如何在行内分隔不同大小的多字符值?
- data-structures - DFS 的计算复杂度
- c++ - 我的登录功能仅在我在同一运行中注册时才有效
- javascript - HTML Post Form 将数据分组到字典中
- c++ - QT 用 SIGNAL 和 SLOT 改变 GUI