Plugin Directory

Changeset 2476029


Ignore:
Timestamp:
02/17/2021 04:24:44 AM (5 years ago)
Author:
zipmoney
Message:

Fixed issue #

  • Fixed auto loader issue zip library
  • Fixed 302 redirect issue for key validation route when wordpress site under subdirectory
  • Fixed auth and capture for Partpay and Quadpay
Location:
zipmoney-payments-woocommerce
Files:
232 added
5 edited

Legend:

Unmodified
Added
Removed
  • zipmoney-payments-woocommerce/trunk/README.txt

    r2467646 r2476029  
    44Requires at least: WP 4.0
    55Tested up to: 5.6
    6 Stable tag: 2.3.1
     6Stable tag: 2.3.2
    77License: GPLv2 or later License http://www.gnu.org/licenses/gpl-2.0.html
    88
     
    161161* Fixed api key validation issue
    162162* Fixed case sensitive file call
     163
     164= 2.3.2 =
     165* Fixed auto loader issue zip library
     166* Fixed 302 redirect issue for key validation route when wordpress site under subdirectory
     167* Fixed auth and capture for Partpay and Quadpay
  • zipmoney-payments-woocommerce/trunk/includes/api/class-wc-zipmoney-payment-gateway-api-charge.php

    r2464696 r2476029  
    210210         
    211211
    212             if ($charge->getState() == 'captured') {
     212            if ($charge->getState() == 'captured' || $charge->getState() == 'approved') {
    213213
    214214                WC_Zipmoney_Payment_Gateway_Util::log('Order captured, charge successfull for: ' . $charge->getId(), WC_Zipmoney_Payment_Gateway_Config::LOG_LEVEL_DEBUG);
     
    307307                WC_Zipmoney_Payment_Gateway_Util::log(sprintf('Order authorised for charge (%s)', $charge->getId()), WC_Zipmoney_Payment_Gateway_Config::LOG_LEVEL_DEBUG);
    308308            } else if ($charge->getState() == 'approved') {
    309                 $order->payment_complete($charge->getId());
    310                 do_action( 'woocommerce_checkout_order_processed', $order_id, (array) $WC_Session, $order );
    311                 WC_Zipmoney_Payment_Gateway_Util::log(sprintf('Charged successfull with id (%s)', $charge->getId()), WC_Zipmoney_Payment_Gateway_Config::LOG_LEVEL_DEBUG);
     309                $capture_charge_option = $this->WC_Zipmoney_Payment_Gateway->get_option(WC_Zipmoney_Payment_Gateway_Config::CONFIG_CHARGE_CAPTURE);
     310                $is_capture = $capture_charge_option == WC_Zipmoney_Payment_Gateway_Config::CAPTURE_CHARGE_IMMEDIATELY ? true : false;
     311                if($is_capture) {
     312                    $order->payment_complete($charge->getId());
     313                    do_action('woocommerce_checkout_order_processed', $order_id, (array)$WC_Session, $order);
     314                    WC_Zipmoney_Payment_Gateway_Util::log(sprintf('Charged successfull with id (%s)', $charge->getId()), WC_Zipmoney_Payment_Gateway_Config::LOG_LEVEL_DEBUG);
     315                } else {
     316                    $order->add_order_note('A zipMoney charge authorization is completed. Waiting for shop administrator to complete the charge. Charge id: ' . $charge->getId());
     317                    $order->update_status(WC_Zipmoney_Payment_Gateway_Config::ZIP_ORDER_STATUS_AUTHORIZED_KEY);
     318                    WC_Zipmoney_Payment_Gateway_Util::log(sprintf('Order authorised for charge (%s)', $charge->getId()), WC_Zipmoney_Payment_Gateway_Config::LOG_LEVEL_DEBUG);
     319                }
    312320                WC()->cart->empty_cart();
    313321                $response['success'] = true;
  • zipmoney-payments-woocommerce/trunk/includes/class-wc-zipmoney-payment-gateway-util.php

    r2467646 r2476029  
    323323    public static function get_clear_options_url()
    324324    {
    325         return get_site_url() . '?p=zipmoneypayment&route=clear';
     325        return get_site_url() . '/?p=zipmoneypayment&route=clear';
    326326    }
    327327
    328328    public static function get_priavte_key_validation_url()
    329329    {
    330         return get_site_url() . '?p=zipmoneypayment&route=key-validation';
     330        return get_site_url() . '/?p=zipmoneypayment&route=key-validation';
    331331    }
    332332    /**
  • zipmoney-payments-woocommerce/trunk/includes/class-wc-zipmoney-payment-gateway.php

    r2467646 r2476029  
    2424    public $description = 'Own the way you pay';
    2525
    26     public $version = '2.3.1';
     26    public $version = '2.3.2';
    2727
    2828    public $supports = array('products', 'refunds');
  • zipmoney-payments-woocommerce/trunk/zipmoney-payment-gateway.php

    r2467646 r2476029  
    77Give your customers the power to pay later, interest free and watch your sales grow.
    88Take advantage of our fast-growing customer base, proven revenue uplift, fast and simple integration.
    9  * Version:           2.3.1
     9 * Version:           2.3.2
    1010 * Author:            Zip
    1111 * Author URI:        https://www.zip.co/
     
    1515 * WC requires at least: 2.6.13
    1616 * WC tested up to: 4.8.0
    17  * @version  2.3.1
     17 * @version  2.3.2
    1818 * @package  Zip
    1919 * @author   Zip
     
    2424    die;
    2525}
    26 
     26require_once plugin_dir_path(__FILE__) . 'vendor/autoload.php';
    2727
    2828/**
Note: See TracChangeset for help on using the changeset viewer.