Forums / Bug Reports / [Done 1.5.3] Paypal Status Check - incorrect nesting of condition check

[Done 1.5.3] Paypal Status Check - incorrect nesting of condition check

Locked

Views: 1,033

Results 1 to 2 of 2
This thread is locked. New replies are disabled.
23 May 2014, 2:42 PM
#1
bunyip avatar

bunyip

Totally Zenned

Join Date:
Sep 2004
Location:
Western Massachusetts
Posts:
2,361
Plugin Contributions:
1

[Done 1.5.3] Paypal Status Check - incorrect nesting of condition check

In includes/modules/payment/paypaldp.php - for the function update_status()...

The condition checks for order amount exceeding 10,000 or order total = 0 (starting at line 231) are currently nested inside the check for the payment zone at line 205:

if ($this->enabled && (int)$this->zone > 0 && isset($order->billing['country']['id']))

The resulting effect of this is that if there is no payment zone set for the module (ie: MODULE_PAYMENT_PAYPALDP_ZONE = 0), these order amount condition checks are completely bypassed.

Shouldn't these two order amount condition checks be moved outside the zone check at line 205?

(I also checked the fileset for v1.5.2-RC2 - issue is the same there)

Neville
An assumption is what you arrive at when you get tired of thinking...

17 Jun 2014, 6:53 PM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: [Done 1.5.3] Paypal Status Check - incorrect nesting of condition check

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.