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

jpsalter’s picture

Component: tax.module » paypal

In 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);

sun’s picture

Status: Active » Closed (duplicate)

Marknig as duplicate of http://drupal.org/node/85456