Skip to content

Commit

Permalink
Merge pull request #274 from checkout/version-upgrade-4.4.1
Browse files Browse the repository at this point in the history
update: version to 4.4.1 and changelog
  • Loading branch information
Souptik2001 authored Jun 7, 2022
2 parents 4bfb133 + e5dc71e commit c1fa9b5
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

class WC_Gateway_Checkout_Com_Cards extends WC_Payment_Gateway_CC
{
const PLUGIN_VERSION = '4.4.0';
const PLUGIN_VERSION = '4.4.1';

/**
* WC_Gateway_Checkout_Com_Cards constructor.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
# This file is distributed under the same license as the Checkout.com Payment Gateway plugin.
msgid ""
msgstr ""
"Project-Id-Version: Checkout.com Payment Gateway 4.4.0\n"
"Project-Id-Version: Checkout.com Payment Gateway 4.4.1\n"
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/checkout-com-unified-payments-api\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"POT-Creation-Date: 2022-05-24T10:25:38+00:00\n"
"POT-Creation-Date: 2022-06-01T07:11:19+00:00\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"X-Generator: WP-CLI 2.6.0\n"
"X-Domain: wc_checkout_com\n"
Expand Down Expand Up @@ -1006,18 +1006,18 @@ msgstr ""
msgid "Please enter a valid cvv."
msgstr ""

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

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

#: woocommerce-gateway-checkout-com.php:370
#: woocommerce-gateway-checkout-com.php:375
msgid "An error has occurred."
msgstr ""

#: woocommerce-gateway-checkout-com.php:382
#: woocommerce-gateway-checkout-com.php:387
msgid "Fawry reference number: "
msgstr ""
4 changes: 4 additions & 0 deletions woocommerce-gateway-checkout-com/readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,10 @@ http://example.com/?wc-api=wc_checkoutcom_webhook
After the plugin has been configured, customers will be able to choose Checkout.com as a valid payment method.

== Changelog ==
v4.4.1 1st June 2022
- **[tweak]** Add condition to not run code if order payment method is not cko.
- **[update]** Update function usage from PHP 8 to 7

v4.4.0 24th May 2022
- **[feat]** Add refund support for APMs and Apple Pay.
- **[update]** Upgraded Checkout API SDK to latest version 2.4.0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
* Description: Extends WooCommerce by Adding the Checkout.com Gateway.
* Author: Checkout.com
* Author URI: https://www.checkout.com/
* Version: 4.4.0
* Version: 4.4.1
* Requires at least: 4.0
* Stable tag: 4.4.0
* Stable tag: 4.4.1
* Tested up to: 6.0
* WC tested up to: 6.5.1
* Requires PHP: 7.2
Expand Down Expand Up @@ -211,7 +211,7 @@ function callback_for_setting_up_scripts() {
$apm_settings = get_option('woocommerce_wc_checkout_com_alternative_payments_settings');
$apm_enable = $apm_settings['enabled'] == true ? true : false;

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

0 comments on commit c1fa9b5

Please sign in to comment.