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) + ) { + } } }