Skip to content

Commit 46b544e

Browse files
authored
Merge pull request #28 from marinsagovac/feature/1.7.8
Feature/1.7.8
2 parents 45bd9c1 + 104f836 commit 46b544e

File tree

3 files changed

+11
-6
lines changed

3 files changed

+11
-6
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ Features
2929
* Locale support based on WP locale settings (EN/HR)
3030
* Multilanguage support using po/mo translation
3131
* Replace banner image of PayWay on checkout with smaller 250px width
32+
* Not needle IntAmount and IntCurrency from 1.1.2024.
3233

3334
Removed
3435
* Removed woo-multi-currency support and integration
@@ -41,7 +42,7 @@ Removed
4142

4243
Latest version:
4344

44-
* Version [1.7.3](https://github.com/marinsagovac/woocommerce-tcom-payway/archive/refs/tags/1.7.3.zip) January/2023
45+
* Version [1.8](https://github.com/marinsagovac/woocommerce-tcom-payway/archive/refs/tags/1.8.zip) January/2024
4546

4647
API 2.x.x:
4748

classes/class-wc-tpayway.php

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -391,9 +391,6 @@ public function generate_ipg_form($order_id)
391391
'acq_id' => $this->acq_id, // secret key
392392
'PurchaseAmt' => $order_format_value,
393393

394-
'IntCurrency' => 'HRK',
395-
'IntAmount' => $total_amount_request * $this->ratehrkfixed,
396-
397394
// ISO 4217
398395
'CurrencyCode' => 978
399396
);
@@ -484,8 +481,15 @@ function check_tcompayway_response()
484481
global $woocommerce;
485482

486483
// Return if is error during installation
484+
// Back to homepage
487485
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;
489493
}
490494

491495
if (!$_POST['Amount']) {

tcom-payway-woocommerce.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* Plugin Name: WooCommerce PayWay Hrvatski Telekom payment gateway
44
* Plugin URI: https://github.com/marinsagovac/woocommerce-tcom-payway
55
* Description: WooCommerce PayWay Hrvatski Telekom payment gateway
6-
* Version: 1.7.1
6+
* Version: 1.8
77
* Licence: MIT
88
* License URI: https://opensource.org/licenses/MIT
99
* Author: Marin Šagovac

0 commit comments

Comments
 (0)