Skip to content

Commit c1fa9b5

Browse files
authored
Merge pull request #274 from checkout/version-upgrade-4.4.1
update: version to 4.4.1 and changelog
2 parents 4bfb133 + e5dc71e commit c1fa9b5

4 files changed

Lines changed: 14 additions & 10 deletions

File tree

woocommerce-gateway-checkout-com/includes/class-wc-gateway-checkout-com-cards.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
class WC_Gateway_Checkout_Com_Cards extends WC_Payment_Gateway_CC
2121
{
22-
const PLUGIN_VERSION = '4.4.0';
22+
const PLUGIN_VERSION = '4.4.1';
2323

2424
/**
2525
* WC_Gateway_Checkout_Com_Cards constructor.

woocommerce-gateway-checkout-com/languages/checkout-com-unified-payments-api.pot

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22
# This file is distributed under the same license as the Checkout.com Payment Gateway plugin.
33
msgid ""
44
msgstr ""
5-
"Project-Id-Version: Checkout.com Payment Gateway 4.4.0\n"
5+
"Project-Id-Version: Checkout.com Payment Gateway 4.4.1\n"
66
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/checkout-com-unified-payments-api\n"
77
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
88
"Language-Team: LANGUAGE <LL@li.org>\n"
99
"MIME-Version: 1.0\n"
1010
"Content-Type: text/plain; charset=UTF-8\n"
1111
"Content-Transfer-Encoding: 8bit\n"
12-
"POT-Creation-Date: 2022-05-24T10:25:38+00:00\n"
12+
"POT-Creation-Date: 2022-06-01T07:11:19+00:00\n"
1313
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
1414
"X-Generator: WP-CLI 2.6.0\n"
1515
"X-Domain: wc_checkout_com\n"
@@ -1006,18 +1006,18 @@ msgstr ""
10061006
msgid "Please enter a valid cvv."
10071007
msgstr ""
10081008

1009-
#: woocommerce-gateway-checkout-com.php:333
1009+
#: woocommerce-gateway-checkout-com.php:338
10101010
msgid "Checkout.com Payment Captured from Admin - Action ID : %s"
10111011
msgstr ""
10121012

1013-
#: woocommerce-gateway-checkout-com.php:358
1013+
#: woocommerce-gateway-checkout-com.php:363
10141014
msgid "Checkout.com Payment Voided from Admin - Action ID : %s"
10151015
msgstr ""
10161016

1017-
#: woocommerce-gateway-checkout-com.php:370
1017+
#: woocommerce-gateway-checkout-com.php:375
10181018
msgid "An error has occurred."
10191019
msgstr ""
10201020

1021-
#: woocommerce-gateway-checkout-com.php:382
1021+
#: woocommerce-gateway-checkout-com.php:387
10221022
msgid "Fawry reference number: "
10231023
msgstr ""

woocommerce-gateway-checkout-com/readme.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,10 @@ http://example.com/?wc-api=wc_checkoutcom_webhook
166166
After the plugin has been configured, customers will be able to choose Checkout.com as a valid payment method.
167167

168168
== Changelog ==
169+
v4.4.1 1st June 2022
170+
- **[tweak]** Add condition to not run code if order payment method is not cko.
171+
- **[update]** Update function usage from PHP 8 to 7
172+
169173
v4.4.0 24th May 2022
170174
- **[feat]** Add refund support for APMs and Apple Pay.
171175
- **[update]** Upgraded Checkout API SDK to latest version 2.4.0

woocommerce-gateway-checkout-com/woocommerce-gateway-checkout-com.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
* Description: Extends WooCommerce by Adding the Checkout.com Gateway.
66
* Author: Checkout.com
77
* Author URI: https://www.checkout.com/
8-
* Version: 4.4.0
8+
* Version: 4.4.1
99
* Requires at least: 4.0
10-
* Stable tag: 4.4.0
10+
* Stable tag: 4.4.1
1111
* Tested up to: 6.0
1212
* WC tested up to: 6.5.1
1313
* Requires PHP: 7.2
@@ -211,7 +211,7 @@ function callback_for_setting_up_scripts() {
211211
$apm_settings = get_option('woocommerce_wc_checkout_com_alternative_payments_settings');
212212
$apm_enable = $apm_settings['enabled'] == true ? true : false;
213213

214-
if ($apm_enable) {
214+
if ($apm_enable && !empty($apm_settings['ckocom_apms_selector'])) {
215215
foreach ($apm_settings['ckocom_apms_selector'] as $value) {
216216
if($value == 'klarna') {
217217
wp_enqueue_script( 'cko-klarna-script', 'https://x.klarnacdn.net/kp/lib/v1/api.js', array( 'jquery' ) );

0 commit comments

Comments
 (0)