From 19b120ff9031e329ba72f88816d7cc4a8929b564 Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Sun, 18 Aug 2019 11:43:36 +0800 Subject: [PATCH] 1 --- webapp/controller/PayController.class.php | 24 +++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/webapp/controller/PayController.class.php b/webapp/controller/PayController.class.php index c74586e..29e1a3d 100644 --- a/webapp/controller/PayController.class.php +++ b/webapp/controller/PayController.class.php @@ -2,6 +2,8 @@ class PayController { + const SCAN_PAY_API_URL = 'https://gwapi.yemadai.com/pay/scanpay'; + public function getOrderId() { $channel = phpcommon\extractChannel($_REQUEST['accountid']); @@ -26,7 +28,29 @@ class PayController { public function scanPay() { + $response = ''; + $params = array( + 'MerNo' => '', + 'BillNo' => '', + 'payType' => '', + 'Amount' => '', + 'OrderTime' => '', + 'AdviceUrl' => '', + 'ScanpayMerchantCode' => '', + 'SignInfo' => '', + 'products' => '', + 'remark' => '', + 'MerName' => '', + ); + $requestDomain = ''; + if (phpcommon\HttpClient::post(self::SCAN_PAY_API_URL, + array( + 'requestDomain' => $requestDomain + ), + $response) + ) { + } } }