mirror of
https://github.com/cedar2025/Xboard.git
synced 2025-01-22 10:38:14 -05:00
Payment: add type configuration to Epay payment
This commit is contained in:
parent
4d4adc4fac
commit
f25696f22b
@ -27,7 +27,12 @@ class EPay
|
||||
'label' => 'KEY',
|
||||
'description' => '',
|
||||
'type' => 'input',
|
||||
]
|
||||
],
|
||||
'type' => [
|
||||
'label' => 'TYPE',
|
||||
'description' => 'alipay / qqpay / wxpay',
|
||||
'type' => 'input',
|
||||
],
|
||||
];
|
||||
}
|
||||
|
||||
@ -41,6 +46,9 @@ class EPay
|
||||
'out_trade_no' => $order['trade_no'],
|
||||
'pid' => $this->config['pid']
|
||||
];
|
||||
if(optional($this->config)['type']){
|
||||
$params['type'] = $this->config['type'];
|
||||
}
|
||||
ksort($params);
|
||||
reset($params);
|
||||
$str = stripslashes(urldecode(http_build_query($params))) . $this->config['key'];
|
||||
|
Loading…
Reference in New Issue
Block a user