Plugin Directory

Changeset 2484563


Ignore:
Timestamp:
03/02/2021 06:48:28 PM (5 years ago)
Author:
Helcim
Message:
  • Optimized Plugin
  • Updated plugin to work with Create an Account on Checkout
  • Tested upto woocommerce v5.0.0
Location:
helcim-commerce-for-woocommerce/trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • helcim-commerce-for-woocommerce/trunk/assets/js/helcim-scripts.js

    r2124916 r2484563  
    567567    else if(document.forms['order_review'] != null){ woocommerceForm = document.forms['order_review']; }
    568568
    569     //
    570     // CHECKING
    571     //
    572 
    573     // CHECK CREATE ACCOUNT
    574     if(createaccount != null && createaccount.checked == true){
    575 
    576         // CLEAR CREDIT CARD DATA
    577         helcimCleanCardData();
    578 
    579         document.getElementById('order_comments').value += "REGISTER";
    580         return true;
    581 
    582     }
    583 
    584569    // CHECK FORM
    585570    if(woocommerceForm == null){
  • helcim-commerce-for-woocommerce/trunk/class-wc-commerce-helcim.php

    r2429833 r2484563  
    1111 * @class        WC_Commerce_Helcim_JS
    1212 * @extends    WC_Payment_Gateway
    13  * @version    1.1.10
     13 * @version    1.2.0
    1414 * @author        Helcim Inc.
    1515 */
     
    3737        $this->commerce_url = 'https://secure.myhelcim.com/api/';
    3838        $this->helcimjs_url = 'https://secure.myhelcim.com/js/version2.js';
    39         $this->version = '1.1.10';
     39        $this->version = '1.2.0';
    4040
    4141        // LOAD SETTINGS
     
    188188            'type' => 'select',
    189189            'options' => $methods,
    190             'description' => __('Choose between using Helcim.js and Direct Integration - <a href="hhttps://www.helcim.com/support/article/207-cart-software-integration-woocommerce/" target="_blank">Support Page</a>', 'woocommerce'),
     190            'description' => __('Choose between using Helcim.js and Direct Integration - <a href="https://support.helcim.com/article/helcim-commerce-new-ui-integrations-woocommerce-integration-woocommerce/" target="_blank">Support Page</a>', 'woocommerce'),
    191191            'default' => 'js'
    192192        );
     
    367367        // CHECK
    368368        if($this->isJS()){
     369            $createAccount = 0;
     370            if ($_POST['createaccount']) {
     371                $createAccount = (int)$_POST['createaccount'];
     372            }
     373
     374            if ($createAccount == 1) {
     375                $helcim_args['updateCustomerCode'] = true;
     376            }
    369377
    370378            // CARD INFO
     
    466474        // GET ORDER
    467475        $order = new WC_Order( $order_id );
    468 
    469         // CHECK IF NOT REGISTERED
    470         if (substr($order->get_customer_note(),-8) == 'REGISTER'){
    471 
    472             // SAVE ORDER AS PENDING
    473             $order->update_status('pending');
    474 
    475             // RETURN
    476             return array(
    477                 'result' => 'success',
    478                 'redirect' => $this->get_transaction_url( $order )
    479             );
    480 
    481         }
    482476
    483477        // BUILD POST DATA
  • helcim-commerce-for-woocommerce/trunk/index.php

    r2429833 r2484563  
    44Plugin URI: https://www.helcim.com/
    55Description: Helcim Commerce for WooCommerce
    6 Version: 1.1.10
     6Version: 1.2.0
    77Author: Helcim Inc.
    88Author URI: https://www.helcim.com/
  • helcim-commerce-for-woocommerce/trunk/readme.txt

    r2429833 r2484563  
    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: 5.6.0
     5Tested up to: 5.6.2
    66
    77== Description ==
     
    1919
    2020**REQUIREMENTS:**       
    21        - WooCommerce 2.6.14 to 4.7.1
     21       - WooCommerce 2.6.14 to 5.0.0
    2222       - [US Merchant Account Sign Up](https://admin.helcim.com/signup/ "Unlock Payment Gateway")     
    2323
     
    7272
    7373== Changelog ==
     74
     75= 1.2.0 =
     76* Optimized Plugin
     77* Updated plugin to work with Create an Account on Checkout
     78* Tested upto woocommerce v5.0.0
    7479
    7580= 1.1.10 =
  • helcim-commerce-for-woocommerce/trunk/uninstall.php

    r2429833 r2484563  
    55 * Uninstalls Helcim Gateway.
    66 *
    7  * @version    1.1.10
     7 * @version    1.2.0
    88 * @author        Helcim Inc.
    99 */
Note: See TracChangeset for help on using the changeset viewer.