In a donation block, the selected currency is not used, and USD is used instead:
<?
lm_paypal_donate(array(5), 'NZD', 'donation to example.com') . '
';
?>
See attachment
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | lm_paypal_donations.currency.patch | 1.25 KB | lyricnz |
| #3 | lm_paypal.currency.patch | 1.81 KB | lyricnz |
| #2 | lm_paypal-donations_currencies.patch | 4.29 KB | lyricnz |
| localhost-1.jpg | 9.05 KB | lyricnz |
Comments
Comment #1
lyricnz commentedThis is because the documentation for lm_paypal_api_payment_form() says:
and yet the code does:
Comment #2
lyricnz commentedPatch to test this more thoroughly as part of the Donation module test.
Comment #3
lyricnz commentedIn the case of the Donations module, there was another bug where it wasn't passing the requested currency, in either 'currency' or 'currency_code' : so two separate bugs. See patches.
Comment #4
lyricnz commentedApplied http://drupal.org/cvs?commit=192800