|
@@ -484,7 +484,8 @@ class Lesson extends Api
|
|
|
|
|
|
//拉起支付
|
|
|
$notify_url = config('notify_cdnurl');
|
|
|
- $hitpay_return = $this->hitpay_payment($pay_order['out_trade_no'],$pay_order['order_amount'],$notify_url);
|
|
|
+ $redirect_cdnurl = config('hitpay.lesson_redirect_cdnurl').'?out_trade_no='.$pay_order['out_trade_no'].'&lang='.$this->lang;
|
|
|
+ $hitpay_return = $this->hitpay_payment($pay_order['out_trade_no'],$pay_order['order_amount'],$notify_url,$redirect_cdnurl);
|
|
|
if($hitpay_return['status'] !== true){
|
|
|
$this->error($hitpay_return['msg']);
|
|
|
}
|
|
@@ -651,7 +652,8 @@ class Lesson extends Api
|
|
|
|
|
|
//拉起支付
|
|
|
$notify_url = config('notify_cdnurl');
|
|
|
- $hitpay_return = $this->hitpay_payment($pay_order['out_trade_no'],$pay_order['order_amount'],$notify_url);
|
|
|
+ $redirect_cdnurl = config('hitpay.package_redirect_cdnurl').'?out_trade_no='.$pay_order['out_trade_no'].'&lang='.$this->lang;
|
|
|
+ $hitpay_return = $this->hitpay_payment($pay_order['out_trade_no'],$pay_order['order_amount'],$notify_url,$redirect_cdnurl);
|
|
|
if($hitpay_return['status'] !== true){
|
|
|
$this->error($hitpay_return['msg']);
|
|
|
}
|
|
@@ -695,7 +697,7 @@ class Lesson extends Api
|
|
|
}
|
|
|
|
|
|
//拉起支付
|
|
|
- private function hitpay_payment($out_trade_no,$money,$notifyurl)
|
|
|
+ private function hitpay_payment($out_trade_no,$money,$notifyurl,$redirect_cdnurl)
|
|
|
{
|
|
|
$return = [
|
|
|
'status' => false,
|
|
@@ -713,6 +715,7 @@ class Lesson extends Api
|
|
|
|
|
|
$request->setAmount($money)
|
|
|
->setCurrency('SGD')
|
|
|
+ ->setRedirectUrl($redirect_cdnurl)
|
|
|
->setPaymentMethods(['paynow_online','card'])
|
|
|
->setPurpose('Elin Dance Studio')
|
|
|
->setWebhook($notifyurl)
|