When I test the paypal module with the paypal's sandbox and I do a check out order. The sandbox complains about the amount not being in the right format. I check the tax amount and is not rounded to two digits if I change this then the transaction goes through. Any ideas how to fix this?
Thanks!
Comments
Comment #1
jpsalter commentedIn the paypal.module:
Change line 145:
$uri_array['tax'] = $txn->misc[$tax]->price;
To this:
$uri_array['tax'] = number_format($txn->misc[$tax]->price,2);
Comment #2
sunMarknig as duplicate of http://drupal.org/node/85456