master
elf 2 years ago
parent 89185bd20c
commit e9a23864e8

@ -26,9 +26,9 @@ class Api
public static function h5Pay($orderNumber, $amount, $notifyUrl, $backUrl, $payType, $body, $clientIp) {
$request = null;
if ($payType == self::TYPE_WECHAT_S || $payType == self::TYPE_WECHAT_P) {
$request = new H5payRequest(Config::get('merchantCode'), Config::get('totalBizType'), Config::get('secretKey'));
} else {
$request = new WxH5payRequest(Config::get('merchantCode'), Config::get('totalBizType'), Config::get('secretKey'));
} else {
$request = new H5payRequest(Config::get('merchantCode'), Config::get('totalBizType'), Config::get('secretKey'));
}
$request->setParams([
'requestType' => $payType,
@ -40,7 +40,7 @@ class Api
'noticeUrl' => $notifyUrl,
'passThrough' => '',
'terminalIp' => $clientIp,
// 'backUrl' => $backUrl,
'backUrl' => $backUrl,
'productId' => 'AMOUNT',
'productName' => $body,
'fund' => $amount,

Loading…
Cancel
Save