|
@@ -305,10 +305,9 @@ class Index extends BaseController
|
|
|
|
|
|
|
|
function execute()
|
|
function execute()
|
|
|
{
|
|
{
|
|
|
- //{"payeeName":"100000703","paymentID":"PP27F16000000000051006","commodityDesc":"PGW payment","note2Payer":"Good Choice","mctBusinessType":"Acquiring","createTime":"20190715172333","custPaymentType":"Consumption","amount":"9.00","originalAmount":"10.00","discountedAmount":"1.00","paymentStatus":"Unpaid","merchantInvoiceNumber":"abc","merchantName":"test3","intent":"sale"}
|
|
|
|
|
- //
|
|
|
|
|
|
|
+ $paymentID = I('paymentID');
|
|
|
|
|
|
|
|
- $paymentID = 'PP27F16000000000051006';
|
|
|
|
|
|
|
+ //$paymentID = 'PP27F16000000000051006';
|
|
|
$url = "https://www.apifabric.com.cn/apiaccess/payment/paymentGateway/checkout/v1/{$paymentID}/execute";
|
|
$url = "https://www.apifabric.com.cn/apiaccess/payment/paymentGateway/checkout/v1/{$paymentID}/execute";
|
|
|
$params = [];
|
|
$params = [];
|
|
|
$params['couponID'] = '1';
|
|
$params['couponID'] = '1';
|
|
@@ -318,6 +317,8 @@ class Index extends BaseController
|
|
|
$headers[] = 'Authorization:Bearer Access-Token';
|
|
$headers[] = 'Authorization:Bearer Access-Token';
|
|
|
$headers[] = 'Content-Type: application/json; charset=UTF-8';
|
|
$headers[] = 'Content-Type: application/json; charset=UTF-8';
|
|
|
$ret = curl_post_json_pay($url, $params, $headers);
|
|
$ret = curl_post_json_pay($url, $params, $headers);
|
|
|
|
|
+ $ret['isSuccess'] = true;
|
|
|
|
|
+ return jsonp($ret);
|
|
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|