Skip to content

Commit

Permalink
Merge pull request #1147 from angelleye/PFW-46
Browse files Browse the repository at this point in the history
compatibility: woocommerce deposits, PFW-46
  • Loading branch information
Andrew Angell committed Jun 20, 2018
2 parents 839f80c + da8239c commit e71dfce
Showing 1 changed file with 9 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -771,14 +771,16 @@ public function angelleye_set_express_checkout_request() {
$Payment['shiptozip'] = $shipping_postcode;
$Payment['shiptocountrycode'] = $shipping_country;
}
if ($this->gateway->send_items) {
$Payment['order_items'] = $this->cart_param['order_items'];
} else {
$Payment['order_items'] = array();
if(!empty($this->cart_param['is_calculation_mismatch']) && $this->cart_param['is_calculation_mismatch'] == false) {
if ($this->gateway->send_items) {
$Payment['order_items'] = $this->cart_param['order_items'];
} else {
$Payment['order_items'] = array();
}
$Payment['taxamt'] = $this->cart_param['taxamt'];
$Payment['shippingamt'] = $this->cart_param['shippingamt'];
$Payment['itemamt'] = $this->cart_param['itemamt'];
}
$Payment['taxamt'] = $this->cart_param['taxamt'];
$Payment['shippingamt'] = $this->cart_param['shippingamt'];
$Payment['itemamt'] = $this->cart_param['itemamt'];
array_push($Payments, $Payment);
$PayPalRequestData = array(
'SECFields' => $SECFields,
Expand Down

0 comments on commit e71dfce

Please sign in to comment.