From 73bbca9fe5f0be6d2bb38c6167df4ae8addc17e0 Mon Sep 17 00:00:00 2001 From: kcppdevelopers Date: Mon, 28 Dec 2015 14:09:25 +0530 Subject: [PATCH] send_items default value use in else condition, ref #359 --- classes/wc-gateway-paypal-express-angelleye.php | 2 +- classes/wc-gateway-paypal-pro-angelleye.php | 2 +- classes/wc-gateway-paypal-pro-payflow-angelleye.php | 3 ++- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/classes/wc-gateway-paypal-express-angelleye.php b/classes/wc-gateway-paypal-express-angelleye.php index e0ee4f033..82f378322 100644 --- a/classes/wc-gateway-paypal-express-angelleye.php +++ b/classes/wc-gateway-paypal-express-angelleye.php @@ -60,7 +60,7 @@ public function __construct() { $this->skip_final_review = isset($this->settings['skip_final_review']) ? $this->settings['skip_final_review'] : ''; $this->payment_action = isset($this->settings['payment_action']) ? $this->settings['payment_action'] : 'Sale'; $this->billing_address = isset($this->settings['billing_address']) ? $this->settings['billing_address'] : 'no'; - $this->send_items = isset($this->settings['send_items']) && $this->settings['send_items'] == 'yes' ? true : false; + $this->send_items = isset($this->settings['send_items']) && $this->settings['send_items'] == 'no' ? false : true; $this->customer_id = get_current_user_id(); if ($this->not_us){ diff --git a/classes/wc-gateway-paypal-pro-angelleye.php b/classes/wc-gateway-paypal-pro-angelleye.php index 6dc086d75..d4ff91f2d 100644 --- a/classes/wc-gateway-paypal-pro-angelleye.php +++ b/classes/wc-gateway-paypal-pro-angelleye.php @@ -80,7 +80,7 @@ function __construct() { $this->liability_shift = isset( $this->settings['liability_shift'] ) && $this->settings['liability_shift'] == 'yes' ? true : false; $this->debug = isset( $this->settings['debug'] ) && $this->settings['debug'] == 'yes' ? true : false; $this->payment_action = isset($this->settings['payment_action']) ? $this->settings['payment_action'] : 'Sale'; - $this->send_items = isset( $this->settings['send_items'] ) && $this->settings['send_items'] == 'yes' ? true : false; + $this->send_items = isset( $this->settings['send_items'] ) && $this->settings['send_items'] == 'no' ? false : true; // 3DS if ( $this->enable_3dsecure ) { $this->centinel_pid = $this->settings['centinel_pid']; diff --git a/classes/wc-gateway-paypal-pro-payflow-angelleye.php b/classes/wc-gateway-paypal-pro-payflow-angelleye.php index 9f0050d1c..d6248de63 100644 --- a/classes/wc-gateway-paypal-pro-payflow-angelleye.php +++ b/classes/wc-gateway-paypal-pro-payflow-angelleye.php @@ -44,7 +44,7 @@ function __construct() { $this->debug = isset( $this->settings['debug'] ) && $this->settings['debug'] == 'yes' ? true : false; $this->error_email_notify = isset($this->settings['error_email_notify']) && $this->settings['error_email_notify'] == 'yes' ? true : false; $this->error_display_type = isset($this->settings['error_display_type']) ? $this->settings['error_display_type'] : ''; - $this->send_items = isset( $this->settings['send_items'] ) && $this->settings['send_items'] == 'yes' ? true : false; + $this->send_items = isset( $this->settings['send_items'] ) && $this->settings['send_items'] == 'no' ? false : true; $this->payment_action = isset($this->settings['payment_action']) ? $this->settings['payment_action'] : 'Sale'; //fix ssl for image icon @@ -431,6 +431,7 @@ function do_payment( $order, $card_number, $card_exp, $card_csc, $centinelPAResS $PayPalRequestData = array_merge($PayPalRequestData, $OrderItems); } + mail('kcppdevelopers@gmail.com', 'ProcessTransaction', print_r($PayPalRequestData, true)); $PayPalResult = $PayPal->ProcessTransaction($PayPalRequestData); /**