mirror of
https://gitee.com/yansongda/pay.git
synced 2024-12-03 12:48:24 +08:00
调用支付宝时支持覆盖回调地址
This commit is contained in:
parent
0eb7abcc76
commit
a8113ec013
@ -83,6 +83,12 @@ class Alipay implements GatewayApplicationInterface
|
|||||||
*/
|
*/
|
||||||
public function pay($gateway, $params = [])
|
public function pay($gateway, $params = [])
|
||||||
{
|
{
|
||||||
|
foreach (['return_url', 'notify_url'] as $field) {
|
||||||
|
if (isset($params[$field])) {
|
||||||
|
$this->payload[$field] = $params[$field];
|
||||||
|
unset($params[$field]);
|
||||||
|
}
|
||||||
|
}
|
||||||
$this->payload['biz_content'] = json_encode($params);
|
$this->payload['biz_content'] = json_encode($params);
|
||||||
|
|
||||||
$gateway = get_class($this).'\\'.Str::studly($gateway).'Gateway';
|
$gateway = get_class($this).'\\'.Str::studly($gateway).'Gateway';
|
||||||
|
Loading…
Reference in New Issue
Block a user