Hello! I love your stripe module, but I ran into an issue today that had me pulling my hair out.
Using the specials or salemaker to take off a percentage causes an issue with Stripe due to the decimal points.
This appears to be solved by changing any code in stripepay.php that looks like this:
PHP Code:
($order->info['total']) * 100
to look like this:
PHP Code:
floor(($order->info['total']) * 100)
The former takes any price with two decimal places and brings it up to Stripes' standards. Adding "floor" removes the extra remaining decimal that the salemaker and special functions add to it when using percentages.
I hope this is both right and works for anyone else trying to use the salemaker.
Bookmarks