File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -391,9 +391,6 @@ public function generate_ipg_form($order_id)
391
391
'acq_id ' => $ this ->acq_id , // secret key
392
392
'PurchaseAmt ' => $ order_format_value ,
393
393
394
- 'IntCurrency ' => 'HRK ' ,
395
- 'IntAmount ' => $ total_amount_request * $ this ->ratehrkfixed ,
396
-
397
394
// ISO 4217
398
395
'CurrencyCode ' => 978
399
396
);
@@ -484,8 +481,15 @@ function check_tcompayway_response()
484
481
global $ woocommerce ;
485
482
486
483
// Return if is error during installation
484
+ // Back to homepage
487
485
if (!isset ($ _POST ['ShoppingCartID ' ])) {
488
- return ;
486
+ $ text = '<html><meta charset="utf-8"><body><center> ' ;
487
+ $ text .= __ ('Redirecting... ' , 'tcom-payway-wc ' );
488
+ $ text .= '</center><script>setTimeout(function(){ window.location.replace(" ' . home_url () . '"); },1500);</script></body></html> ' ;
489
+
490
+ echo $ text ;
491
+
492
+ exit ;
489
493
}
490
494
491
495
if (!$ _POST ['Amount ' ]) {
You can’t perform that action at this time.
0 commit comments