Plugin Directory

Changeset 2197226


Ignore:
Timestamp:
11/20/2019 10:02:38 AM (6 years ago)
Author:
ingpsp
Message:

Compatibility for PHP 7.3

Location:
ing-psp/trunk
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • ing-psp/trunk/CHANGELOG.md

    r2185012 r2197226  
    11# Changelog WooCommerce
     2
     3** 1.3.15 **
     4* Compatibility fix for PHP7.3
    25
    36** 1.3.14 **
  • ing-psp/trunk/README.md

    r2185012 r2197226  
    1515
    1616## Version number
    17 Version 1.3.14
     17Version 1.3.15
    1818
    1919## Pre-requisites to install the plug-ins
  • ing-psp/trunk/classes/class-wc-ingpsp-afterpay.php

    r2183120 r2197226  
    158158            'label' => sprintf(
    159159                __("I accept <a href='%s' target='_blank'>Terms and Conditions</a>", WC_Ingpsp_Helper::DOMAIN),
    160                 (WC()->customer->get_billing_country() == 'NL'?static::TERMS_CONDITION_URL_NL:static::TERMS_CONDITION_URL_BE)
     160                (WC()->customer->billing['country'] == 'NL'?static::TERMS_CONDITION_URL_NL:static::TERMS_CONDITION_URL_BE)
    161161            ),
    162162            'required' => true
  • ing-psp/trunk/classes/class-wc-ingpsp-banktransfer.php

    r2185012 r2197226  
    1919
    2020        parent::__construct();
    21 
    22         // Create banktransfer order in ginger system when creating an order from the admin panel
    23         // add_action('woocommerce_process_shop_order_meta', array($this, 'process_payment'), 41, 1);       
    24 
    25         // Sends instructions for payment in the Order email
    26         // add_action( 'woocommerce_email_after_order_table', array($this, 'add_order_email_instructions'), 10, 1 );
    2721    }
    2822
     
    6458     * @param $order_id
    6559     */
    66      public function handle_thankyou($order_id)
    67      {
    68          WC()->cart->empty_cart();
    69  
    70          echo $this->get_instructions($order_id);
    71      }   
    72 
    73     /**
    74      * Adds instructions for order emails
    75      *
    76      * @param $order
    77      */
    78     public function add_order_email_instructions($order) {
    79         echo $this->get_instructions($order->get_id());
    80     }
    81 
    82     /**
    83      * @param $order_id
    84      * @return string
    85      */
    86     public function get_instructions($order_id) {
     60    public function handle_thankyou($order_id)
     61    {
     62        WC()->cart->empty_cart();
    8763
    8864        $reference = get_post_custom_values('bank_reference', $order_id);
    8965
    90         return __("Please use the following payment information:", WC_Ingpsp_Helper::DOMAIN)
    91          . "<br/>"
    92          . __("Bank Reference: ".$reference[0], WC_Ingpsp_Helper::DOMAIN)
    93          . "<br/>"
    94          . __("IBAN: NL13INGB0005300060", WC_Ingpsp_Helper::DOMAIN)
    95          . "<br/>"
    96          . __("BIC: INGBNL2A", WC_Ingpsp_Helper::DOMAIN)
    97          . "<br/>"
    98          . __("Account Holder: ING Bank N.V. PSP", WC_Ingpsp_Helper::DOMAIN)
    99          . "<br/>"
    100          . __("Residence: Amsterdam", WC_Ingpsp_Helper::DOMAIN)
    101          . "<br/><br/>";
     66        echo __("Please use the following payment information:", WC_Ingpsp_Helper::DOMAIN);
     67        echo "<br/>";
     68        echo __("Bank Reference: ".$reference[0], WC_Ingpsp_Helper::DOMAIN);
     69        echo "<br/>";
     70        echo __("IBAN: NL13INGB0005300060", WC_Ingpsp_Helper::DOMAIN);
     71        echo "<br/>";
     72        echo __("BIC: INGBNL2A", WC_Ingpsp_Helper::DOMAIN);
     73        echo "<br/>";
     74        echo __("Account Holder: ING Bank N.V. PSP", WC_Ingpsp_Helper::DOMAIN);
     75        echo "<br/>";
     76        echo __("Residence: Amsterdam", WC_Ingpsp_Helper::DOMAIN);
     77        echo "<br/><br/>";
    10278    }
    10379}
  • ing-psp/trunk/ing-php/vendor/guzzlehttp/guzzle/src/Message/MessageFactory.php

    r1600658 r2197226  
    195195
    196196                if ($value === false) {
    197                     continue;
     197                    continue 2;
    198198                }
    199199
     
    214214
    215215                if ($value === false) {
    216                     continue;
     216                    continue 2;
    217217                }
    218218
     
    252252
    253253                if (!$value) {
    254                     continue;
     254                    continue 2;
    255255                }
    256256
     
    355355                    $fn = $this->customOptions[$key];
    356356                    $fn($request, $value);
    357                     continue;
     357                    continue 2;
    358358                }
    359359
  • ing-psp/trunk/ingpsp.php

    r2185012 r2197226  
    55 * Plugin URI: https://www.ing.nl/
    66 * Description: ING WooCommerce plugin for ING Kassa Compleet and ING ePay markets.
    7  * Version: 1.3.14
     7 * Version: 1.3.15
    88 * Author: Ginger Payments
    99 * Author URI: https://www.gingerpayments.com/
     
    2020 * Define ING PSP plugin version
    2121 */
    22 define('INGPSP_PLUGIN_VERSION', 'WooCommerce v1.3.14');
     22define('INGPSP_PLUGIN_VERSION', 'WooCommerce v1.3.15');
    2323
    2424add_action('plugins_loaded', 'woocommerce_ingpsp_init', 0);
  • ing-psp/trunk/readme.txt

    r2185012 r2197226  
    55Requires at least: 4.0
    66Tested up to: 5.1.1
    7 Stable tag: 1.3.14
     7Stable tag: 1.3.15
    88License: The MIT License (MIT)
    99License URI: https://opensource.org/licenses/MIT
Note: See TracChangeset for help on using the changeset viewer.