Plugin Directory

Changeset 2183120


Ignore:
Timestamp:
10/30/2019 01:55:25 PM (6 years ago)
Author:
ingpsp
Message:

Add banktransfer details to email and make it possible to create banktransfer order from the backend

Location:
ing-psp/trunk
Files:
6 edited

Legend:

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

    r2173898 r2183120  
    11# Changelog WooCommerce
     2
     3** 1.3.12 **
     4* Add banktransfer details to email and make it possible to create banktransfer order from the backend
    25
    36** 1.3.11 **
     
    710* Fixes for stock reduction
    811
    9 = 1.3.9 =
     12** 1.3.9 **
    1013* Fix for DOB check
    1114
  • ing-psp/trunk/README.md

    r2173898 r2183120  
    1515
    1616## Version number
    17 Version 1.3.11
     17Version 1.3.12
    1818
    1919## Pre-requisites to install the plug-ins
  • ing-psp/trunk/classes/class-wc-ingpsp-afterpay.php

    r2170043 r2183120  
    158158            'label' => sprintf(
    159159                __("I accept <a href='%s' target='_blank'>Terms and Conditions</a>", WC_Ingpsp_Helper::DOMAIN),
    160                 (WC()->customer->billing['country'] == 'NL'?static::TERMS_CONDITION_URL_NL:static::TERMS_CONDITION_URL_BE)
     160                (WC()->customer->get_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

    r2170043 r2183120  
    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 );
    2127    }
    2228
     
    5864     * @param $order_id
    5965     */
    60     public function handle_thankyou($order_id)
    61     {
    62         WC()->cart->empty_cart();
     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) {
    6387
    6488        $reference = get_post_custom_values('bank_reference', $order_id);
    6589
    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/>";
     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/>";
    78102    }
    79103}
  • ing-psp/trunk/ingpsp.php

    r2173898 r2183120  
    55 * Plugin URI: https://www.ing.nl/
    66 * Description: ING WooCommerce plugin for ING Kassa Compleet and ING ePay markets.
    7  * Version: 1.3.11
     7 * Version: 1.3.12
    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.11');
     22define('INGPSP_PLUGIN_VERSION', 'WooCommerce v1.3.12');
    2323
    2424add_action('plugins_loaded', 'woocommerce_ingpsp_init', 0);
  • ing-psp/trunk/readme.txt

    r2173898 r2183120  
    55Requires at least: 4.0
    66Tested up to: 5.1.1
    7 Stable tag: 1.3.11
     7Stable tag: 1.3.12
    88License: The MIT License (MIT)
    99License URI: https://opensource.org/licenses/MIT
     
    101101= Which version of PHP does ING PSP WooCommerce plugin require =
    102102ING PSP WooCommerce plugin works with PHP versions 5.4 or above.
    103 
    104 == Changelog ==
    105 
    106 = 1.3.11 =
    107 * Fix for stock reduction
    108 
    109 = 1.3.9 =
    110 * Fix for DOB check
    111 
    112 = 1.3.6 =
    113 * Remove DOB check
    114 
    115 = 1.3.5 =
    116 * Use dropdowns for DOB
    117 
    118 = 1.3.4 =
    119 * Handle AfterPay testing. Correct calculation of line item totals. Support different billing address.
    120 
    121 = 1.3.3 =
    122 * Updated translations. Supporting dutch format for DOB
    123 
    124 = 1.3.2 =
    125 * Ads AfterPay
    126 
    127 = 1.3.1.2 =
    128 * Updated the logo's of Sofort en Klarna to the new style
    129 
    130 = 1.3.1.1 =
    131 * Patched ing-psp
    132 
    133 = 1.3.1 =
    134 * Updated ing-php library to version 1.3.4
    135 * Added dynamic order descriptions
    136 * Added WooCommerce 3.x support
    137 
    138 = 1.3.0 =
    139 * Updated ing-php library to v1.3.2
    140 * Implemented Payconiq
    141 * Added multilingual support for Payconiq
    142 
    143 = 1.2.5 =
    144 * Updated ing-php library to v1.3.1
    145 * Implemented Klarna automatic order capturing
    146 * Some other fixes
    147 
    148 = 1.2.4 =
    149 * Added localisation support
    150 * Added German, French and Dutch languages
    151 * Added plugin version information to orders
    152 
    153 = 1.2.3 =
    154 * Updated ing-php library to version 1.2.8
    155 
    156 = 1.2.2 =
    157 * Updated ing-php library to version 1.2.7
    158 
    159 = 1.2 =
    160 * Added PayPal payment method
    161 * Added SOFORT payment method
    162 * Added Klarna payment method
    163 * Added HomePay payment method
    164 
    165 = 1.1 =
    166 * Updated ING PSP API bindings library
    167 * Code re-factoring and cleanup
    168 
    169 = 1.0 =
    170 * Initial release
Note: See TracChangeset for help on using the changeset viewer.