Plugin Directory

Changeset 3028452


Ignore:
Timestamp:
01/29/2024 10:06:25 PM (2 years ago)
Author:
Helcim
Message:

4.0.3

  • Bug fix regarding empty phone number
  • Tested upto WordPress 6.4.2
  • Tested upto woocommerce 8.5.1
Location:
helcim-commerce-for-woocommerce/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • helcim-commerce-for-woocommerce/trunk/WCHelcimGateway.php

    r3005806 r3028452  
    2222 * @class        WCHelcimGateway
    2323 * @extends    WC_Payment_Gateway
    24  * @version    4.0.2
     24 * @version    4.0.3
    2525 * @author        Helcim Inc.
    2626 */
     
    389389                $responsePayload = $this->getHelcimDirectService()->processPurchase($order, $this, $customerCode);
    390390                if (!is_array($responsePayload)) {
    391                     wc_add_notice('<b>Payment error:</b> Something went wrong please contact the Merchant', 'error');
     391                    $errorLog = 'Something went wrong please contact the Merchant';
     392                    if (str_contains($this->getHelcimDirectService()->getError(), 'must be a valid Phone Number')) {
     393                        $errorLog = 'Phone must be valid phone number (10-15 digits)';
     394                    }
     395                    wc_add_notice("<b>Payment error:</b> $errorLog", 'error');
    392396                    self::log("ORDER {$order->get_id()} ERROR - {$this->getHelcimDirectService()->getError()}");
    393397                    $order->add_order_note(
     
    399403                $responsePayload = $this->getHelcimDirectService()->processPreauth($order, $this, $customerCode);
    400404                if (!is_array($responsePayload)) {
    401                     wc_add_notice('<b>Payment error:</b> Something went wrong please contact the Merchant', 'error');
     405                    $errorLog = 'Something went wrong please contact the Merchant';
     406                    if (str_contains($this->getHelcimDirectService()->getError(), 'must be a valid Phone Number')) {
     407                        $errorLog = 'Phone must be valid phone number (10-15 digits)';
     408                    }
     409                    wc_add_notice("<b>Payment error:</b> $errorLog", 'error');
    402410                    self::log("ORDER {$order->get_id()} ERROR - {$this->getHelcimDirectService()->getError()}");
    403411                    $order->add_order_note(
  • helcim-commerce-for-woocommerce/trunk/index.php

    r3005806 r3028452  
    44Plugin URI: https://www.helcim.com/
    55Description: Helcim Commerce for WooCommerce
    6 Version: 4.0.2
     6Version: 4.0.3
    77Author: Helcim Inc.
    88Author URI: https://www.helcim.com/
  • helcim-commerce-for-woocommerce/trunk/readme.txt

    r3005806 r3028452  
    33Tags: helcim, helcim commerce, woocommerce, woocommerce payments, woocommerce payment gateway, payment gateway, shopping cart, wordpress payment gateway, woocommerce shopping cart, wordpress shopping cart, payment gateway for woocommerce, payments, credit cards, accept credit cards, recurring billing, woocommerce gateway, woocommerce payment plugin, woocommerce credit cards, accept credit cards woocommerce, credit card gateway woocommerce, accept credit cards on woocommerce, process payments, process credit cards, accept visa, accept mastercard,checkout, accept payments, merchant account, merchant services
    44Requires at least: 4.7.3
    5 Tested up to: 6.4.1
     5Tested up to: 6.4.2
    66PHP Version: 7.4 or higher
    77
     
    2020
    2121**REQUIREMENTS:**
    22        - WooCommerce 2.6.14 to 8.2.2
     22       - WooCommerce 2.6.14 to 8.5.1
    2323       - [Helcim account](https://hub.helcim.com/signup/register/)
    2424
     
    7474== Changelog ==
    7575
     76= 4.0.3 =
     77* Bug fix regarding empty phone number
     78* Tested upto WordPress 6.4.2
     79* Tested upto woocommerce 8.5.1
     80
    7681= 4.0.2 =
    7782* Bug fix regarding countries
  • helcim-commerce-for-woocommerce/trunk/uninstall.php

    r3005806 r3028452  
    55 * Uninstalls Helcim Gateway.
    66 *
    7  * @version    4.0.2
     7 * @version    4.0.3
    88 * @author        Helcim Inc.
    99 */
Note: See TracChangeset for help on using the changeset viewer.