Skip to content

Commit

Permalink
Merge pull request #353 from betaxab/p1
Browse files Browse the repository at this point in the history
AlipayController: Do not leak the contents of the product
  • Loading branch information
assimon authored Jan 11, 2022
2 parents 7b8685e + 8ea01a6 commit 773bffa
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion app/Http/Controllers/Pay/AlipayController.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public function gateway(string $payway, string $orderSN)
$order = [
'out_trade_no' => $this->order->order_sn,
'total_amount' => (float)$this->order->actual_price,
'subject' => $this->order->title
'subject' => $this->order->order_sn
];
switch ($payway){
case 'zfbf2f':
Expand Down
2 changes: 1 addition & 1 deletion app/Http/Controllers/Pay/PaysapiController.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public function gateway(string $payway, string $orderSN)
$orderuid = $this->order->email; //此处传入您网站用户的用户名,方便在paysapi后台查看是谁付的款,强烈建议加上。可忽略。
//校验传入的表单,确保价格为正常价格(整数,1位小数,2位小数都可以),支付渠道只能是1或者2,orderuid长度不要超过33个中英文字。
//此处就在您服务器生成新订单,并把创建的订单号传入到下面的orderid中。
$goodsname = $this->order->title;
$goodsname = $this->order->order_sn;
$orderid = $this->order->order_sn; //每次有任何参数变化,订单号就变一个吧。
$uid = $this->payGateway->merchant_id; //"此处填写PaysApi的uid";
$token = $this->payGateway->merchant_pem; //"此处填写PaysApi的Token";
Expand Down
Empty file modified app/Http/Controllers/Pay/StripeController.php
100755 → 100644
Empty file.
2 changes: 1 addition & 1 deletion app/Http/Controllers/Pay/WepayController.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public function gateway(string $payway, string $orderSN)
$order = [
'out_trade_no' => $this->order->order_sn,
'total_fee' => bcmul($this->order->actual_price, 100, 0),
'body' => $this->order->title
'body' => $this->order->order_sn
];
switch ($payway){
case 'wescan':
Expand Down
2 changes: 1 addition & 1 deletion app/Http/Controllers/Pay/YipayController.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public function gateway(string $payway, string $orderSN)
'out_trade_no' => $this->order->order_sn,
'return_url' => url('detail-order-sn', ['orderSN' => $this->order->order_sn]),
'notify_url' => url($this->payGateway->pay_handleroute . '/notify_url'),
'name' => $this->order->title,
'name' => $this->order->order_sn,
'money' => (float)$this->order->actual_price,
'sign' => $this->payGateway->merchant_pem,
'sign_type' =>'MD5'
Expand Down

0 comments on commit 773bffa

Please sign in to comment.