And just to confirm ... you're *only* testing this with PayPal, right? Which modules?
And just to confirm ... you're *only* testing this with PayPal, right? Which modules?
.
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.
Yes Just PayPal, express checkout and normal paypal checkout. Next I will go to websites payment pro. I am also sure this applies to any other currency that works like this.
-PayPal Website Payments Pro
-PayPal Express Checkout
Hi DrByte, (I always feel you should be an evil character in MegaMan or something with that name...:-) )
Know you are busy, but did you come up with any solution for this problem or should we just come up with a fix?
Let me know, no push on you, just thought your fix might be better than mine since you know ZC a bit better than me.
Thanks,
Shaun
To properly allow the PayPal module to handle JPY without submitting a decimal point and fractions, I recommend this replacement for the calc_order_amount() function in /includes/modules/payment/paypalwpp.php:Code:/** * Calculate the amount based on acceptable currencies */ function calc_order_amount($amount, $paypalCurrency, $applyFormatting = false) { global $currencies; $amount = ($amount) * $currencies->get_value($paypalCurrency); if ($paypalCurrency == 'JPY') { $amount = (int)$amount; $applyFormatting = FALSE; } return ($applyFormatting ? number_format($amount, $currencies->get_decimal_places($paypalCurrency)) : $amount); }
.
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.
Hi Dr. Byte,
That works.
Thanks,
Shaun
Bookmarks