Plugin Directory

Changeset 2743432


Ignore:
Timestamp:
06/16/2022 10:52:01 AM (4 years ago)
Author:
checkoutintegration
Message:

Update to version 4.4.2

Location:
checkout-com-unified-payments-api
Files:
1410 added
16 edited
1 copied

Legend:

Unmodified
Added
Removed
  • checkout-com-unified-payments-api/tags/4.4.2/assets/js/cko-frames-integration.js

    r2730563 r2743432  
    11jQuery(function () {
    2   jQuery("input[type=radio][name=wc-wc_checkout_com_cards-payment-token]").prop(
    3     "checked",
    4     false
    5   );
    62  // Set default ul to auto
    73  jQuery(".payment_box.payment_method_wc_checkout_com_cards > ul").css(
     
    2016  });
    2117
    22   let cardholderName =   document.getElementById('billing_first_name')?.value + ' ' + document.getElementById('billing_last_name')?.value
     18  // Triggers when new card details filled to update name for tokenization.
    2319  Frames.addEventHandler(
    2420    Frames.Events.CARD_VALIDATION_CHANGED,
     
    2622      var valid = Frames.isCardValid()
    2723        if (valid) {
     24            let cardholderName = document.getElementById('billing_first_name')?.value + ' ' + document.getElementById('billing_last_name')?.value
    2825            if(cardholderName.length > 0) {
    29                 // Add the card holder name
     26                // Add the cardholder name
    3027                Frames.cardholder = {
    3128                   name: cardholderName
  • checkout-com-unified-payments-api/tags/4.4.2/includes/api/class-wc-checkoutcom-api-request.php

    r2730563 r2743432  
    322322            $wp_version,
    323323            $woocommerce->version,
    324             WC_Gateway_Checkout_Com_Cards::PLUGIN_VERSION,
     324            WC_CHECKOUTCOM_PLUGIN_VERSION,
    325325            CheckoutUtils::PROJECT_VERSION,
    326326            $order->get_order_number(),
  • checkout-com-unified-payments-api/tags/4.4.2/includes/api/class-wc-checkoutcom-utility.php

    r2730563 r2743432  
    137137    {
    138138        // Path to MADA_BIN.csv
    139         $csvPath = WP_PLUGIN_DIR. "\checkout-com-unified-payments-api\includes\Files\Mada\MADA_BINS.csv";
     139        $csvPath = WC_CHECKOUTCOM_PLUGIN_PATH . "/includes/Files/Mada/MADA_BINS.csv";
    140140
    141141        $arrayFromCSV =  array_map('str_getcsv', file($csvPath));
  • checkout-com-unified-payments-api/tags/4.4.2/includes/apms/class-wc-checkoutcom-klarna.php

    r2730563 r2743432  
    4848
    4949            <!-- klarna js file -->
    50             <script src='<?php echo plugins_url('../../assets/js/klarna.js',__FILE__) ?>'></script>
     50            <script src='<?php echo WC_CHECKOUTCOM_PLUGIN_URL . '/assets/js/klarna.js'; ?>'></script>
    5151
    5252            <?php
  • checkout-com-unified-payments-api/tags/4.4.2/includes/class-wc-gateway-checkout-com-cards.php

    r2739002 r2743432  
    11<?php
    22
    3 include_once "lib/class-checkout-sdk.php";
    4 
    5 if ( is_readable( __DIR__ . '/lib/vendor/autoload.php' ) ) {
    6     require __DIR__ . '/lib/vendor/autoload.php';
     3include_once dirname(__DIR__). "/lib/class-checkout-sdk.php";
     4
     5if ( is_readable( dirname(__DIR__) . '/vendor/autoload.php' ) ) {
     6    require dirname(__DIR__) . '/vendor/autoload.php';
    77}
    88include_once('settings/class-wc-checkoutcom-cards-settings.php');
     
    2020class WC_Gateway_Checkout_Com_Cards extends WC_Payment_Gateway_CC
    2121{
    22     const PLUGIN_VERSION = '4.4.1';
    2322
    2423    /**
     
    186185<input type="hidden" id="multiFrame" value='<?php echo $iframe_style; ?>'></input>
    187186<input type="hidden" id="cko-icons"
    188     value='<?php echo  plugins_url ('checkout-com-unified-payments-api/assets/images/card-icons/'); ?>'></input>
     187    value='<?php echo  WC_CHECKOUTCOM_PLUGIN_URL . '/assets/images/card-icons/'; ?>'></input>
    189188<input type="hidden" id="is-mada" value='<?php echo $mada_enable; ?>'></input>
    190189<input type="hidden" id="mada-token" value='<?php echo $is_mada_token; ?>'></input>
     
    250249            <div class="icon-container">
    251250                <img id="icon-card-number"
    252                     src="<?php echo plugins_url ('checkout-com-unified-payments-api/assets/images/card-icons/card.svg'); ?>"
     251                    src="<?php echo WC_CHECKOUTCOM_PLUGIN_URL . '/assets/images/card-icons/card.svg'; ?>"
    253252                    alt="PAN" />
    254253            </div>
     
    259258            <div class="icon-container">
    260259                <img id="icon-card-number-error"
    261                     src="<?php echo plugins_url ('checkout-com-unified-payments-api/assets/images/card-icons/error.svg'); ?>" />
     260                    src="<?php echo WC_CHECKOUTCOM_PLUGIN_URL . '/assets/images/card-icons/error.svg'; ?>" />
    262261            </div>
    263262        </div>
     
    268267                    <div class="icon-container">
    269268                        <img id="icon-expiry-date"
    270                             src="<?php echo plugins_url ('checkout-com-unified-payments-api/assets/images/card-icons/exp-date.svg'); ?>"
     269                            src="<?php echo WC_CHECKOUTCOM_PLUGIN_URL . '/assets/images/card-icons/exp-date.svg'; ?>"
    271270                            alt="Expiry date" />
    272271                    </div>
     
    274273                    <div class="icon-container">
    275274                        <img id="icon-expiry-date-error"
    276                             src="<?php echo plugins_url ('checkout-com-unified-payments-api/assets/images/card-icons/error.svg'); ?>" />
     275                            src="<?php echo WC_CHECKOUTCOM_PLUGIN_URL . '/assets/images/card-icons/error.svg'; ?>" />
    277276                    </div>
    278277                </div>
     
    283282                    <div class="icon-container">
    284283                        <img id="icon-cvv"
    285                             src="<?php echo plugins_url ('checkout-com-unified-payments-api/assets/images/card-icons/cvv.svg'); ?>"
     284                            src="<?php echo WC_CHECKOUTCOM_PLUGIN_URL . '/assets/images/card-icons/cvv.svg'; ?>"
    286285                            alt="CVV" />
    287286                    </div>
     
    289288                    <div class="icon-container">
    290289                        <img id="icon-cvv-error"
    291                             src="<?php echo plugins_url ('checkout-com-unified-payments-api/assets/images/card-icons/error.svg'); ?>" />
     290                            src="<?php echo WC_CHECKOUTCOM_PLUGIN_URL . '/assets/images/card-icons/error.svg'; ?>" />
    292291                    </div>
    293292                </div>
     
    298297
    299298    <!-- frame integration js file -->
    300     <script src='<?php echo plugins_url('../assets/js/cko-frames-integration.js',__FILE__) ?>'></script>
     299    <script src='<?php echo WC_CHECKOUTCOM_PLUGIN_URL . '/assets/js/cko-frames-integration.js'; ?>'></script>
    301300
    302301</div>
  • checkout-com-unified-payments-api/tags/4.4.2/languages/checkout-com-unified-payments-api.pot

    r2739002 r2743432  
    33msgid ""
    44msgstr ""
    5 "Project-Id-Version: Checkout.com Payment Gateway 4.4.1\n"
     5"Project-Id-Version: Checkout.com Payment Gateway 4.4.2\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"
     
    1010"Content-Type: text/plain; charset=UTF-8\n"
    1111"Content-Transfer-Encoding: 8bit\n"
    12 "POT-Creation-Date: 2022-06-01T07:11:19+00:00\n"
     12"POT-Creation-Date: 2022-06-16T09:56:36+00:00\n"
    1313"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
    1414"X-Generator: WP-CLI 2.6.0\n"
     
    3737#: includes/class-wc-gateway-checkout-com-alternative-payments.php:24
    3838#: includes/class-wc-gateway-checkout-com-apple-pay.php:13
    39 #: includes/class-wc-gateway-checkout-com-cards.php:30
     39#: includes/class-wc-gateway-checkout-com-cards.php:29
    4040#: includes/class-wc-gateway-checkout-com-google-pay.php:11
    4141msgid "Checkout.com"
     
    150150#: includes/class-wc-gateway-checkout-com-alternative-payments.php:25
    151151#: includes/class-wc-gateway-checkout-com-apple-pay.php:14
    152 #: includes/class-wc-gateway-checkout-com-cards.php:31
     152#: includes/class-wc-gateway-checkout-com-cards.php:30
    153153#: includes/class-wc-gateway-checkout-com-google-pay.php:12
    154154msgid "The Checkout.com extension allows shop owners to process online payments through the <a href=\"https://www.checkout.com\">Checkout.com Payment Gateway.</a>"
     
    263263#: includes/class-wc-gateway-checkout-com-alternative-payments.php:57
    264264#: includes/class-wc-gateway-checkout-com-apple-pay.php:49
    265 #: includes/class-wc-gateway-checkout-com-cards.php:82
     265#: includes/class-wc-gateway-checkout-com-cards.php:81
    266266#: includes/class-wc-gateway-checkout-com-google-pay.php:44
    267267msgid "Other Settings"
     
    284284
    285285#: includes/class-wc-gateway-checkout-com-apple-pay.php:533
    286 #: includes/class-wc-gateway-checkout-com-cards.php:345
     286#: includes/class-wc-gateway-checkout-com-cards.php:344
    287287#: includes/class-wc-gateway-checkout-com-google-pay.php:300
    288288msgid "There was an issue completing the payment."
     
    290290
    291291#: includes/class-wc-gateway-checkout-com-apple-pay.php:554
    292 #: includes/class-wc-gateway-checkout-com-cards.php:502
     292#: includes/class-wc-gateway-checkout-com-cards.php:501
    293293#: includes/class-wc-gateway-checkout-com-google-pay.php:328
    294294#: includes/class-wc-gateway-checkout-com-webhook.php:51
     
    298298
    299299#: includes/class-wc-gateway-checkout-com-apple-pay.php:560
    300 #: includes/class-wc-gateway-checkout-com-cards.php:508
     300#: includes/class-wc-gateway-checkout-com-cards.php:507
    301301#: includes/class-wc-gateway-checkout-com-google-pay.php:334
    302302#: includes/subscription/class-wc-checkout-com-subscription.php:59
     
    304304msgstr ""
    305305
    306 #: includes/class-wc-gateway-checkout-com-cards.php:32
     306#: includes/class-wc-gateway-checkout-com-cards.php:31
    307307msgid "Cards payment and general configuration"
    308308msgstr ""
    309309
    310 #: includes/class-wc-gateway-checkout-com-cards.php:50
     310#: includes/class-wc-gateway-checkout-com-cards.php:49
    311311msgid "Use a new card"
    312312msgstr ""
    313313
    314 #: includes/class-wc-gateway-checkout-com-cards.php:111
    315 #: woocommerce-gateway-checkout-com.php:101
     314#: includes/class-wc-gateway-checkout-com-cards.php:110
     315#: woocommerce-gateway-checkout-com.php:108
    316316msgid "Settings"
    317317msgstr ""
    318318
    319 #: includes/class-wc-gateway-checkout-com-cards.php:179
     319#: includes/class-wc-gateway-checkout-com-cards.php:178
    320320msgid "Please enter your card details."
    321321msgstr ""
    322322
    323 #: includes/class-wc-gateway-checkout-com-cards.php:228
     323#: includes/class-wc-gateway-checkout-com-cards.php:227
    324324msgid "Card Code"
    325325msgstr ""
    326326
    327 #: includes/class-wc-gateway-checkout-com-cards.php:231
     327#: includes/class-wc-gateway-checkout-com-cards.php:230
    328328msgid "CVV"
    329329msgstr ""
    330330
    331 #: includes/class-wc-gateway-checkout-com-cards.php:396
     331#: includes/class-wc-gateway-checkout-com-cards.php:395
    332332msgid "Checkout.com Payment Authorised - Action ID : %s"
    333333msgstr ""
    334334
    335 #: includes/class-wc-gateway-checkout-com-cards.php:403
     335#: includes/class-wc-gateway-checkout-com-cards.php:402
    336336msgid "Checkout.com Payment Flagged - Action ID : %s"
    337337msgstr ""
    338338
    339 #: includes/class-wc-gateway-checkout-com-cards.php:474
     339#: includes/class-wc-gateway-checkout-com-cards.php:473
    340340msgid "Unable to add payment method to your account."
    341341msgstr ""
    342342
    343 #: includes/class-wc-gateway-checkout-com-cards.php:485
     343#: includes/class-wc-gateway-checkout-com-cards.php:484
    344344msgid "Payment method successfully added."
    345345msgstr ""
    346346
    347 #: includes/class-wc-gateway-checkout-com-cards.php:513
     347#: includes/class-wc-gateway-checkout-com-cards.php:512
    348348msgid "Checkout.com Payment Canceled</br>"
    349349msgstr ""
    350350
    351 #: includes/class-wc-gateway-checkout-com-cards.php:519
     351#: includes/class-wc-gateway-checkout-com-cards.php:518
    352352msgid "Checkout.com Payment Captured</br>"
    353353msgstr ""
    354354
    355 #: includes/class-wc-gateway-checkout-com-cards.php:644
     355#: includes/class-wc-gateway-checkout-com-cards.php:643
    356356msgid "An error has occurred while processing your cancel request. "
    357357msgstr ""
    358358
    359 #: includes/class-wc-gateway-checkout-com-cards.php:723
     359#: includes/class-wc-gateway-checkout-com-cards.php:722
    360360msgid "Checkout.com Payment refunded from Admin </br>"
    361361msgstr ""
    362362
    363 #: includes/class-wc-gateway-checkout-com-cards.php:728
     363#: includes/class-wc-gateway-checkout-com-cards.php:727
    364364msgid "Checkout.com Payment Partially refunded from Admin </br>"
    365365msgstr ""
    366366
    367 #: includes/class-wc-gateway-checkout-com-cards.php:796
     367#: includes/class-wc-gateway-checkout-com-cards.php:795
    368368msgid "order payment Id ("
    369369msgstr ""
     
    991991msgstr ""
    992992
    993 #: woocommerce-gateway-checkout-com.php:146
     993#: woocommerce-gateway-checkout-com.php:153
    994994msgid "Please enter a valid card number"
    995995msgstr ""
    996996
    997 #: woocommerce-gateway-checkout-com.php:147
     997#: woocommerce-gateway-checkout-com.php:154
    998998msgid "Please enter a valid expiry date"
    999999msgstr ""
    10001000
    1001 #: woocommerce-gateway-checkout-com.php:148
     1001#: woocommerce-gateway-checkout-com.php:155
    10021002msgid "Please enter a valid cvv code"
    10031003msgstr ""
    10041004
    1005 #: woocommerce-gateway-checkout-com.php:168
     1005#: woocommerce-gateway-checkout-com.php:175
    10061006msgid "Please enter a valid cvv."
    10071007msgstr ""
    10081008
    1009 #: woocommerce-gateway-checkout-com.php:338
     1009#: woocommerce-gateway-checkout-com.php:345
    10101010msgid "Checkout.com Payment Captured from Admin - Action ID : %s"
    10111011msgstr ""
    10121012
    1013 #: woocommerce-gateway-checkout-com.php:363
     1013#: woocommerce-gateway-checkout-com.php:370
    10141014msgid "Checkout.com Payment Voided from Admin - Action ID : %s"
    10151015msgstr ""
    10161016
    1017 #: woocommerce-gateway-checkout-com.php:375
     1017#: woocommerce-gateway-checkout-com.php:382
    10181018msgid "An error has occurred."
    10191019msgstr ""
    10201020
    1021 #: woocommerce-gateway-checkout-com.php:387
     1021#: woocommerce-gateway-checkout-com.php:394
    10221022msgid "Fawry reference number: "
    10231023msgstr ""
  • checkout-com-unified-payments-api/tags/4.4.2/readme.txt

    r2739002 r2743432  
    167167
    168168== Changelog ==
     169v4.4.2 16th June 2022
     170- **[tweak]** Show refund button of completed orders.
     171- **[fix]** Default saved card deselects.
     172- **[fix]** Customer name update on card tokenization.
     173
    169174v4.4.1 1st June 2022
    170175- **[tweak]** Add condition to not run code if order payment method is not cko.
  • checkout-com-unified-payments-api/tags/4.4.2/woocommerce-gateway-checkout-com.php

    r2739002 r2743432  
    66 * Author: Checkout.com
    77 * Author URI: https://www.checkout.com/
    8  * Version: 4.4.1
     8 * Version: 4.4.2
    99 * Requires at least: 4.0
    10  * Stable tag: 4.4.1
     10 * Stable tag: 4.4.2
    1111 * Tested up to: 6.0
    1212 * WC tested up to: 6.5.1
     
    1919    exit;
    2020}
     21
     22/**
     23 * Constants.
     24 */
     25define( 'WC_CHECKOUTCOM_PLUGIN_VERSION', '4.4.2' );
     26define( 'WC_CHECKOUTCOM_PLUGIN_URL', untrailingslashit( plugins_url( basename( plugin_dir_path( __FILE__ ) ), basename( __FILE__ ) ) ) );
     27define( 'WC_CHECKOUTCOM_PLUGIN_PATH', untrailingslashit( plugin_dir_path( __FILE__ ) ) );
    2128
    2229/*
     
    179186function callback_for_setting_up_scripts() {
    180187    // load cko custom css
    181     $css_path = plugins_url('/assets/css/checkoutcom-styles.css',__FILE__);
    182     $normalize = plugins_url('/assets/css/normalize.css',__FILE__);
    183     $frames_style = plugins_url('/assets/css/style.css',__FILE__);
    184     $multi_frame = plugins_url('/assets/css/multi-iframe.css',__FILE__);
     188    $css_path     = WC_CHECKOUTCOM_PLUGIN_URL . '/assets/css/checkoutcom-styles.css';
     189    $normalize    = WC_CHECKOUTCOM_PLUGIN_URL . '/assets/css/normalize.css';
     190    $frames_style = WC_CHECKOUTCOM_PLUGIN_URL . '/assets/css/style.css';
     191    $multi_frame  = WC_CHECKOUTCOM_PLUGIN_URL . '/assets/css/multi-iframe.css';
    185192
    186193    // register cko css
     
    278285                        jQuery('#cko-capture').show();
    279286                        jQuery('#cko-void').show();
    280                     } else if (order_status == capture_status){
     287                    } else if (order_status === capture_status || 'completed' === order_status){
    281288                        jQuery('.refund-items').show();
    282289                    } else {
     
    402409function cko_gateway_icon( $icons, $id ) {
    403410
    404     $plugin_url = plugins_url( '/checkout-com-unified-payments-api/assets/images/', __DIR__ );
     411    $plugin_url = WC_CHECKOUTCOM_PLUGIN_URL . '/assets/images/';
    405412
    406413    /* Check if checkoutcom gateway */
  • checkout-com-unified-payments-api/trunk/assets/js/cko-frames-integration.js

    r2730563 r2743432  
    11jQuery(function () {
    2   jQuery("input[type=radio][name=wc-wc_checkout_com_cards-payment-token]").prop(
    3     "checked",
    4     false
    5   );
    62  // Set default ul to auto
    73  jQuery(".payment_box.payment_method_wc_checkout_com_cards > ul").css(
     
    2016  });
    2117
    22   let cardholderName =   document.getElementById('billing_first_name')?.value + ' ' + document.getElementById('billing_last_name')?.value
     18  // Triggers when new card details filled to update name for tokenization.
    2319  Frames.addEventHandler(
    2420    Frames.Events.CARD_VALIDATION_CHANGED,
     
    2622      var valid = Frames.isCardValid()
    2723        if (valid) {
     24            let cardholderName = document.getElementById('billing_first_name')?.value + ' ' + document.getElementById('billing_last_name')?.value
    2825            if(cardholderName.length > 0) {
    29                 // Add the card holder name
     26                // Add the cardholder name
    3027                Frames.cardholder = {
    3128                   name: cardholderName
  • checkout-com-unified-payments-api/trunk/includes/api/class-wc-checkoutcom-api-request.php

    r2730563 r2743432  
    322322            $wp_version,
    323323            $woocommerce->version,
    324             WC_Gateway_Checkout_Com_Cards::PLUGIN_VERSION,
     324            WC_CHECKOUTCOM_PLUGIN_VERSION,
    325325            CheckoutUtils::PROJECT_VERSION,
    326326            $order->get_order_number(),
  • checkout-com-unified-payments-api/trunk/includes/api/class-wc-checkoutcom-utility.php

    r2730563 r2743432  
    137137    {
    138138        // Path to MADA_BIN.csv
    139         $csvPath = WP_PLUGIN_DIR. "\checkout-com-unified-payments-api\includes\Files\Mada\MADA_BINS.csv";
     139        $csvPath = WC_CHECKOUTCOM_PLUGIN_PATH . "/includes/Files/Mada/MADA_BINS.csv";
    140140
    141141        $arrayFromCSV =  array_map('str_getcsv', file($csvPath));
  • checkout-com-unified-payments-api/trunk/includes/apms/class-wc-checkoutcom-klarna.php

    r2730563 r2743432  
    4848
    4949            <!-- klarna js file -->
    50             <script src='<?php echo plugins_url('../../assets/js/klarna.js',__FILE__) ?>'></script>
     50            <script src='<?php echo WC_CHECKOUTCOM_PLUGIN_URL . '/assets/js/klarna.js'; ?>'></script>
    5151
    5252            <?php
  • checkout-com-unified-payments-api/trunk/includes/class-wc-gateway-checkout-com-cards.php

    r2739002 r2743432  
    11<?php
    22
    3 include_once "lib/class-checkout-sdk.php";
    4 
    5 if ( is_readable( __DIR__ . '/lib/vendor/autoload.php' ) ) {
    6     require __DIR__ . '/lib/vendor/autoload.php';
     3include_once dirname(__DIR__). "/lib/class-checkout-sdk.php";
     4
     5if ( is_readable( dirname(__DIR__) . '/vendor/autoload.php' ) ) {
     6    require dirname(__DIR__) . '/vendor/autoload.php';
    77}
    88include_once('settings/class-wc-checkoutcom-cards-settings.php');
     
    2020class WC_Gateway_Checkout_Com_Cards extends WC_Payment_Gateway_CC
    2121{
    22     const PLUGIN_VERSION = '4.4.1';
    2322
    2423    /**
     
    186185<input type="hidden" id="multiFrame" value='<?php echo $iframe_style; ?>'></input>
    187186<input type="hidden" id="cko-icons"
    188     value='<?php echo  plugins_url ('checkout-com-unified-payments-api/assets/images/card-icons/'); ?>'></input>
     187    value='<?php echo  WC_CHECKOUTCOM_PLUGIN_URL . '/assets/images/card-icons/'; ?>'></input>
    189188<input type="hidden" id="is-mada" value='<?php echo $mada_enable; ?>'></input>
    190189<input type="hidden" id="mada-token" value='<?php echo $is_mada_token; ?>'></input>
     
    250249            <div class="icon-container">
    251250                <img id="icon-card-number"
    252                     src="<?php echo plugins_url ('checkout-com-unified-payments-api/assets/images/card-icons/card.svg'); ?>"
     251                    src="<?php echo WC_CHECKOUTCOM_PLUGIN_URL . '/assets/images/card-icons/card.svg'; ?>"
    253252                    alt="PAN" />
    254253            </div>
     
    259258            <div class="icon-container">
    260259                <img id="icon-card-number-error"
    261                     src="<?php echo plugins_url ('checkout-com-unified-payments-api/assets/images/card-icons/error.svg'); ?>" />
     260                    src="<?php echo WC_CHECKOUTCOM_PLUGIN_URL . '/assets/images/card-icons/error.svg'; ?>" />
    262261            </div>
    263262        </div>
     
    268267                    <div class="icon-container">
    269268                        <img id="icon-expiry-date"
    270                             src="<?php echo plugins_url ('checkout-com-unified-payments-api/assets/images/card-icons/exp-date.svg'); ?>"
     269                            src="<?php echo WC_CHECKOUTCOM_PLUGIN_URL . '/assets/images/card-icons/exp-date.svg'; ?>"
    271270                            alt="Expiry date" />
    272271                    </div>
     
    274273                    <div class="icon-container">
    275274                        <img id="icon-expiry-date-error"
    276                             src="<?php echo plugins_url ('checkout-com-unified-payments-api/assets/images/card-icons/error.svg'); ?>" />
     275                            src="<?php echo WC_CHECKOUTCOM_PLUGIN_URL . '/assets/images/card-icons/error.svg'; ?>" />
    277276                    </div>
    278277                </div>
     
    283282                    <div class="icon-container">
    284283                        <img id="icon-cvv"
    285                             src="<?php echo plugins_url ('checkout-com-unified-payments-api/assets/images/card-icons/cvv.svg'); ?>"
     284                            src="<?php echo WC_CHECKOUTCOM_PLUGIN_URL . '/assets/images/card-icons/cvv.svg'; ?>"
    286285                            alt="CVV" />
    287286                    </div>
     
    289288                    <div class="icon-container">
    290289                        <img id="icon-cvv-error"
    291                             src="<?php echo plugins_url ('checkout-com-unified-payments-api/assets/images/card-icons/error.svg'); ?>" />
     290                            src="<?php echo WC_CHECKOUTCOM_PLUGIN_URL . '/assets/images/card-icons/error.svg'; ?>" />
    292291                    </div>
    293292                </div>
     
    298297
    299298    <!-- frame integration js file -->
    300     <script src='<?php echo plugins_url('../assets/js/cko-frames-integration.js',__FILE__) ?>'></script>
     299    <script src='<?php echo WC_CHECKOUTCOM_PLUGIN_URL . '/assets/js/cko-frames-integration.js'; ?>'></script>
    301300
    302301</div>
  • checkout-com-unified-payments-api/trunk/languages/checkout-com-unified-payments-api.pot

    r2739002 r2743432  
    33msgid ""
    44msgstr ""
    5 "Project-Id-Version: Checkout.com Payment Gateway 4.4.1\n"
     5"Project-Id-Version: Checkout.com Payment Gateway 4.4.2\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"
     
    1010"Content-Type: text/plain; charset=UTF-8\n"
    1111"Content-Transfer-Encoding: 8bit\n"
    12 "POT-Creation-Date: 2022-06-01T07:11:19+00:00\n"
     12"POT-Creation-Date: 2022-06-16T09:56:36+00:00\n"
    1313"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
    1414"X-Generator: WP-CLI 2.6.0\n"
     
    3737#: includes/class-wc-gateway-checkout-com-alternative-payments.php:24
    3838#: includes/class-wc-gateway-checkout-com-apple-pay.php:13
    39 #: includes/class-wc-gateway-checkout-com-cards.php:30
     39#: includes/class-wc-gateway-checkout-com-cards.php:29
    4040#: includes/class-wc-gateway-checkout-com-google-pay.php:11
    4141msgid "Checkout.com"
     
    150150#: includes/class-wc-gateway-checkout-com-alternative-payments.php:25
    151151#: includes/class-wc-gateway-checkout-com-apple-pay.php:14
    152 #: includes/class-wc-gateway-checkout-com-cards.php:31
     152#: includes/class-wc-gateway-checkout-com-cards.php:30
    153153#: includes/class-wc-gateway-checkout-com-google-pay.php:12
    154154msgid "The Checkout.com extension allows shop owners to process online payments through the <a href=\"https://www.checkout.com\">Checkout.com Payment Gateway.</a>"
     
    263263#: includes/class-wc-gateway-checkout-com-alternative-payments.php:57
    264264#: includes/class-wc-gateway-checkout-com-apple-pay.php:49
    265 #: includes/class-wc-gateway-checkout-com-cards.php:82
     265#: includes/class-wc-gateway-checkout-com-cards.php:81
    266266#: includes/class-wc-gateway-checkout-com-google-pay.php:44
    267267msgid "Other Settings"
     
    284284
    285285#: includes/class-wc-gateway-checkout-com-apple-pay.php:533
    286 #: includes/class-wc-gateway-checkout-com-cards.php:345
     286#: includes/class-wc-gateway-checkout-com-cards.php:344
    287287#: includes/class-wc-gateway-checkout-com-google-pay.php:300
    288288msgid "There was an issue completing the payment."
     
    290290
    291291#: includes/class-wc-gateway-checkout-com-apple-pay.php:554
    292 #: includes/class-wc-gateway-checkout-com-cards.php:502
     292#: includes/class-wc-gateway-checkout-com-cards.php:501
    293293#: includes/class-wc-gateway-checkout-com-google-pay.php:328
    294294#: includes/class-wc-gateway-checkout-com-webhook.php:51
     
    298298
    299299#: includes/class-wc-gateway-checkout-com-apple-pay.php:560
    300 #: includes/class-wc-gateway-checkout-com-cards.php:508
     300#: includes/class-wc-gateway-checkout-com-cards.php:507
    301301#: includes/class-wc-gateway-checkout-com-google-pay.php:334
    302302#: includes/subscription/class-wc-checkout-com-subscription.php:59
     
    304304msgstr ""
    305305
    306 #: includes/class-wc-gateway-checkout-com-cards.php:32
     306#: includes/class-wc-gateway-checkout-com-cards.php:31
    307307msgid "Cards payment and general configuration"
    308308msgstr ""
    309309
    310 #: includes/class-wc-gateway-checkout-com-cards.php:50
     310#: includes/class-wc-gateway-checkout-com-cards.php:49
    311311msgid "Use a new card"
    312312msgstr ""
    313313
    314 #: includes/class-wc-gateway-checkout-com-cards.php:111
    315 #: woocommerce-gateway-checkout-com.php:101
     314#: includes/class-wc-gateway-checkout-com-cards.php:110
     315#: woocommerce-gateway-checkout-com.php:108
    316316msgid "Settings"
    317317msgstr ""
    318318
    319 #: includes/class-wc-gateway-checkout-com-cards.php:179
     319#: includes/class-wc-gateway-checkout-com-cards.php:178
    320320msgid "Please enter your card details."
    321321msgstr ""
    322322
    323 #: includes/class-wc-gateway-checkout-com-cards.php:228
     323#: includes/class-wc-gateway-checkout-com-cards.php:227
    324324msgid "Card Code"
    325325msgstr ""
    326326
    327 #: includes/class-wc-gateway-checkout-com-cards.php:231
     327#: includes/class-wc-gateway-checkout-com-cards.php:230
    328328msgid "CVV"
    329329msgstr ""
    330330
    331 #: includes/class-wc-gateway-checkout-com-cards.php:396
     331#: includes/class-wc-gateway-checkout-com-cards.php:395
    332332msgid "Checkout.com Payment Authorised - Action ID : %s"
    333333msgstr ""
    334334
    335 #: includes/class-wc-gateway-checkout-com-cards.php:403
     335#: includes/class-wc-gateway-checkout-com-cards.php:402
    336336msgid "Checkout.com Payment Flagged - Action ID : %s"
    337337msgstr ""
    338338
    339 #: includes/class-wc-gateway-checkout-com-cards.php:474
     339#: includes/class-wc-gateway-checkout-com-cards.php:473
    340340msgid "Unable to add payment method to your account."
    341341msgstr ""
    342342
    343 #: includes/class-wc-gateway-checkout-com-cards.php:485
     343#: includes/class-wc-gateway-checkout-com-cards.php:484
    344344msgid "Payment method successfully added."
    345345msgstr ""
    346346
    347 #: includes/class-wc-gateway-checkout-com-cards.php:513
     347#: includes/class-wc-gateway-checkout-com-cards.php:512
    348348msgid "Checkout.com Payment Canceled</br>"
    349349msgstr ""
    350350
    351 #: includes/class-wc-gateway-checkout-com-cards.php:519
     351#: includes/class-wc-gateway-checkout-com-cards.php:518
    352352msgid "Checkout.com Payment Captured</br>"
    353353msgstr ""
    354354
    355 #: includes/class-wc-gateway-checkout-com-cards.php:644
     355#: includes/class-wc-gateway-checkout-com-cards.php:643
    356356msgid "An error has occurred while processing your cancel request. "
    357357msgstr ""
    358358
    359 #: includes/class-wc-gateway-checkout-com-cards.php:723
     359#: includes/class-wc-gateway-checkout-com-cards.php:722
    360360msgid "Checkout.com Payment refunded from Admin </br>"
    361361msgstr ""
    362362
    363 #: includes/class-wc-gateway-checkout-com-cards.php:728
     363#: includes/class-wc-gateway-checkout-com-cards.php:727
    364364msgid "Checkout.com Payment Partially refunded from Admin </br>"
    365365msgstr ""
    366366
    367 #: includes/class-wc-gateway-checkout-com-cards.php:796
     367#: includes/class-wc-gateway-checkout-com-cards.php:795
    368368msgid "order payment Id ("
    369369msgstr ""
     
    991991msgstr ""
    992992
    993 #: woocommerce-gateway-checkout-com.php:146
     993#: woocommerce-gateway-checkout-com.php:153
    994994msgid "Please enter a valid card number"
    995995msgstr ""
    996996
    997 #: woocommerce-gateway-checkout-com.php:147
     997#: woocommerce-gateway-checkout-com.php:154
    998998msgid "Please enter a valid expiry date"
    999999msgstr ""
    10001000
    1001 #: woocommerce-gateway-checkout-com.php:148
     1001#: woocommerce-gateway-checkout-com.php:155
    10021002msgid "Please enter a valid cvv code"
    10031003msgstr ""
    10041004
    1005 #: woocommerce-gateway-checkout-com.php:168
     1005#: woocommerce-gateway-checkout-com.php:175
    10061006msgid "Please enter a valid cvv."
    10071007msgstr ""
    10081008
    1009 #: woocommerce-gateway-checkout-com.php:338
     1009#: woocommerce-gateway-checkout-com.php:345
    10101010msgid "Checkout.com Payment Captured from Admin - Action ID : %s"
    10111011msgstr ""
    10121012
    1013 #: woocommerce-gateway-checkout-com.php:363
     1013#: woocommerce-gateway-checkout-com.php:370
    10141014msgid "Checkout.com Payment Voided from Admin - Action ID : %s"
    10151015msgstr ""
    10161016
    1017 #: woocommerce-gateway-checkout-com.php:375
     1017#: woocommerce-gateway-checkout-com.php:382
    10181018msgid "An error has occurred."
    10191019msgstr ""
    10201020
    1021 #: woocommerce-gateway-checkout-com.php:387
     1021#: woocommerce-gateway-checkout-com.php:394
    10221022msgid "Fawry reference number: "
    10231023msgstr ""
  • checkout-com-unified-payments-api/trunk/readme.txt

    r2739002 r2743432  
    167167
    168168== Changelog ==
     169v4.4.2 16th June 2022
     170- **[tweak]** Show refund button of completed orders.
     171- **[fix]** Default saved card deselects.
     172- **[fix]** Customer name update on card tokenization.
     173
    169174v4.4.1 1st June 2022
    170175- **[tweak]** Add condition to not run code if order payment method is not cko.
  • checkout-com-unified-payments-api/trunk/woocommerce-gateway-checkout-com.php

    r2739002 r2743432  
    66 * Author: Checkout.com
    77 * Author URI: https://www.checkout.com/
    8  * Version: 4.4.1
     8 * Version: 4.4.2
    99 * Requires at least: 4.0
    10  * Stable tag: 4.4.1
     10 * Stable tag: 4.4.2
    1111 * Tested up to: 6.0
    1212 * WC tested up to: 6.5.1
     
    1919    exit;
    2020}
     21
     22/**
     23 * Constants.
     24 */
     25define( 'WC_CHECKOUTCOM_PLUGIN_VERSION', '4.4.2' );
     26define( 'WC_CHECKOUTCOM_PLUGIN_URL', untrailingslashit( plugins_url( basename( plugin_dir_path( __FILE__ ) ), basename( __FILE__ ) ) ) );
     27define( 'WC_CHECKOUTCOM_PLUGIN_PATH', untrailingslashit( plugin_dir_path( __FILE__ ) ) );
    2128
    2229/*
     
    179186function callback_for_setting_up_scripts() {
    180187    // load cko custom css
    181     $css_path = plugins_url('/assets/css/checkoutcom-styles.css',__FILE__);
    182     $normalize = plugins_url('/assets/css/normalize.css',__FILE__);
    183     $frames_style = plugins_url('/assets/css/style.css',__FILE__);
    184     $multi_frame = plugins_url('/assets/css/multi-iframe.css',__FILE__);
     188    $css_path     = WC_CHECKOUTCOM_PLUGIN_URL . '/assets/css/checkoutcom-styles.css';
     189    $normalize    = WC_CHECKOUTCOM_PLUGIN_URL . '/assets/css/normalize.css';
     190    $frames_style = WC_CHECKOUTCOM_PLUGIN_URL . '/assets/css/style.css';
     191    $multi_frame  = WC_CHECKOUTCOM_PLUGIN_URL . '/assets/css/multi-iframe.css';
    185192
    186193    // register cko css
     
    278285                        jQuery('#cko-capture').show();
    279286                        jQuery('#cko-void').show();
    280                     } else if (order_status == capture_status){
     287                    } else if (order_status === capture_status || 'completed' === order_status){
    281288                        jQuery('.refund-items').show();
    282289                    } else {
     
    402409function cko_gateway_icon( $icons, $id ) {
    403410
    404     $plugin_url = plugins_url( '/checkout-com-unified-payments-api/assets/images/', __DIR__ );
     411    $plugin_url = WC_CHECKOUTCOM_PLUGIN_URL . '/assets/images/';
    405412
    406413    /* Check if checkoutcom gateway */
Note: See TracChangeset for help on using the changeset viewer.