Commit 89acc07 1 parent be3397c commit 89acc07 Copy full SHA for 89acc07
File tree 2 files changed +3
-3
lines changed
app/appserver/modules/Payment
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 17
17
*/
18
18
class Start
19
19
{
20
- public function startPayment ()
20
+ public function startPayment ($ increment_id )
21
21
{
22
22
$ methodName_ = 'SetExpressCheckout ' ;
23
23
$ return_url = Yii::$ app ->request ->post ('return_url ' );
@@ -29,7 +29,7 @@ public function startPayment()
29
29
//var_dump($checkoutReturn);
30
30
if (strtolower ($ checkoutReturn ['ACK ' ]) == 'success ' ) {
31
31
$ token = $ checkoutReturn ['TOKEN ' ];
32
- $ increment_id = Yii::$ service ->order ->getSessionIncrementId ();
32
+ // $increment_id = Yii::$service->order->getSessionIncrementId();
33
33
//echo $increment_id ;exit;
34
34
# 将token写入到订单中
35
35
Yii::$ service ->order ->updateTokenByIncrementId ($ increment_id ,$ token );
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ public function actionStart()
32
32
Yii::$ service ->payment ->setPaymentMethod ($ payment_method );
33
33
$ increment_id = Yii::$ app ->request ->post ('increment_id ' );
34
34
Yii::$ service ->order ->setCurrentOrderIncrementId ($ increment_id );
35
- return $ this ->getBlock ()->startPayment ();
35
+ return $ this ->getBlock ()->startPayment ($ increment_id );
36
36
}
37
37
/**
38
38
* 2.Review 从paypal确认后返回的部分
You can’t perform that action at this time.
0 commit comments