Skip to content

Commit

Permalink
compatibility: woocommerce deposits, PFW-46
Browse files Browse the repository at this point in the history
  • Loading branch information
kcppdevelopers committed Jun 19, 2018
1 parent 91e558b commit da8239c
Showing 1 changed file with 9 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -783,14 +783,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 da8239c

Please sign in to comment.