Skip to content

Commit

Permalink
payPal Advanced : Number of items causing gateway timeout, ref #976
Browse files Browse the repository at this point in the history
  • Loading branch information
kcppdevelopers committed Jan 2, 2018
1 parent 42e8721 commit c8d6d81
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion classes/wc-gateway-paypal-advanced-angelleye.php
Original file line number Diff line number Diff line change
Expand Up @@ -545,7 +545,7 @@ public function get_secure_token($order) {
}

$paypal_args['ITEMAMT'] = 0;
if ($this->send_items) {
if ($this->send_items && ($length_error == 0 || count($PaymentData['order_items']) < 11 )) {
$item_loop = 0;
foreach ($PaymentData['order_items'] as $_item) {
$paypal_args['L_NUMBER' . $item_loop] = $_item['number'];
Expand Down

0 comments on commit c8d6d81

Please sign in to comment.