Changeset 2197226
- Timestamp:
- 11/20/2019 10:02:38 AM (6 years ago)
- Location:
- ing-psp/trunk
- Files:
-
- 7 edited
-
CHANGELOG.md (modified) (1 diff)
-
README.md (modified) (1 diff)
-
classes/class-wc-ingpsp-afterpay.php (modified) (1 diff)
-
classes/class-wc-ingpsp-banktransfer.php (modified) (2 diffs)
-
ing-php/vendor/guzzlehttp/guzzle/src/Message/MessageFactory.php (modified) (4 diffs)
-
ingpsp.php (modified) (2 diffs)
-
readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
ing-psp/trunk/CHANGELOG.md
r2185012 r2197226 1 1 # Changelog WooCommerce 2 3 ** 1.3.15 ** 4 * Compatibility fix for PHP7.3 2 5 3 6 ** 1.3.14 ** -
ing-psp/trunk/README.md
r2185012 r2197226 15 15 16 16 ## Version number 17 Version 1.3.1 417 Version 1.3.15 18 18 19 19 ## Pre-requisites to install the plug-ins -
ing-psp/trunk/classes/class-wc-ingpsp-afterpay.php
r2183120 r2197226 158 158 'label' => sprintf( 159 159 __("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) 161 161 ), 162 162 'required' => true -
ing-psp/trunk/classes/class-wc-ingpsp-banktransfer.php
r2185012 r2197226 19 19 20 20 parent::__construct(); 21 22 // Create banktransfer order in ginger system when creating an order from the admin panel23 // add_action('woocommerce_process_shop_order_meta', array($this, 'process_payment'), 41, 1);24 25 // Sends instructions for payment in the Order email26 // add_action( 'woocommerce_email_after_order_table', array($this, 'add_order_email_instructions'), 10, 1 );27 21 } 28 22 … … 64 58 * @param $order_id 65 59 */ 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(); 87 63 88 64 $reference = get_post_custom_values('bank_reference', $order_id); 89 65 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/>"; 102 78 } 103 79 } -
ing-psp/trunk/ing-php/vendor/guzzlehttp/guzzle/src/Message/MessageFactory.php
r1600658 r2197226 195 195 196 196 if ($value === false) { 197 continue ;197 continue 2; 198 198 } 199 199 … … 214 214 215 215 if ($value === false) { 216 continue ;216 continue 2; 217 217 } 218 218 … … 252 252 253 253 if (!$value) { 254 continue ;254 continue 2; 255 255 } 256 256 … … 355 355 $fn = $this->customOptions[$key]; 356 356 $fn($request, $value); 357 continue ;357 continue 2; 358 358 } 359 359 -
ing-psp/trunk/ingpsp.php
r2185012 r2197226 5 5 * Plugin URI: https://www.ing.nl/ 6 6 * Description: ING WooCommerce plugin for ING Kassa Compleet and ING ePay markets. 7 * Version: 1.3.1 47 * Version: 1.3.15 8 8 * Author: Ginger Payments 9 9 * Author URI: https://www.gingerpayments.com/ … … 20 20 * Define ING PSP plugin version 21 21 */ 22 define('INGPSP_PLUGIN_VERSION', 'WooCommerce v1.3.1 4');22 define('INGPSP_PLUGIN_VERSION', 'WooCommerce v1.3.15'); 23 23 24 24 add_action('plugins_loaded', 'woocommerce_ingpsp_init', 0); -
ing-psp/trunk/readme.txt
r2185012 r2197226 5 5 Requires at least: 4.0 6 6 Tested up to: 5.1.1 7 Stable tag: 1.3.1 47 Stable tag: 1.3.15 8 8 License: The MIT License (MIT) 9 9 License URI: https://opensource.org/licenses/MIT
Note: See TracChangeset
for help on using the changeset viewer.