@@ -29,7 +29,6 @@ public function __construct()
29
29
$ this ->shop_id = isset ($ settings ['mer_id ' ]) ? $ settings ['mer_id ' ] : '' ;
30
30
$ this ->acq_id = isset ($ settings ['acq_id ' ]) ? $ settings ['acq_id ' ] : '' ;
31
31
$ this ->pg_domain = $ this ->get_option ( 'pg_domain ' );
32
- $ this ->response_url_success = $ this ->get_return_url ($ _POST ['ShoppingCartID ' ]);
33
32
$ this ->checkout_msg = isset ($ settings ['checkout_msg ' ]) ? $ settings ['checkout_msg ' ] : '' ;
34
33
$ this ->woo_active = isset ($ settings ['woo_active ' ]) ? $ settings ['woo_active ' ] : '' ;
35
34
$ this ->description = isset ($ settings ['description ' ]) ? $ settings ['description ' ] : '' ;
@@ -312,7 +311,7 @@ public function generate_ipg_form($order_id)
312
311
'ShoppingCartID ' => $ pgw_order_id ,
313
312
'Version ' => $ this ->version ,
314
313
'TotalAmount ' => $ total_amount_request ,
315
- 'ReturnURL ' => $ this ->response_url_success ,
314
+ 'ReturnURL ' => $ this ->get_return_url ( $ order ) ,
316
315
'ReturnErrorURL ' => $ order ->get_cancel_order_url (),
317
316
'CancelURL ' => $ order ->get_cancel_order_url (),
318
317
'Signature ' => $ pgw_signature ,
@@ -485,7 +484,7 @@ function check_tcompayway_response()
485
484
486
485
$ order ->payment_complete ();
487
486
488
- wp_redirect ($ this ->response_url_success , 302 );
487
+ wp_redirect ($ this ->get_return_url ( $ order ) , 302 );
489
488
exit ;
490
489
}
491
490
}
0 commit comments