1
This commit is contained in:
parent
8b1c3792ec
commit
19b120ff90
@ -2,6 +2,8 @@
|
|||||||
|
|
||||||
class PayController {
|
class PayController {
|
||||||
|
|
||||||
|
const SCAN_PAY_API_URL = 'https://gwapi.yemadai.com/pay/scanpay';
|
||||||
|
|
||||||
public function getOrderId()
|
public function getOrderId()
|
||||||
{
|
{
|
||||||
$channel = phpcommon\extractChannel($_REQUEST['accountid']);
|
$channel = phpcommon\extractChannel($_REQUEST['accountid']);
|
||||||
@ -26,7 +28,29 @@ class PayController {
|
|||||||
|
|
||||||
public function scanPay()
|
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)
|
||||||
|
) {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user