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

Comments

lyricnz’s picture

This is because the documentation for lm_paypal_api_payment_form() says:

/*
 *     'currency_code': string
 *        Paypal 3 letters currency code, see lm_paypal_api_get_currency().
 *        Default is default configured currency in lm_paypal main module.

and yet the code does:

    // Check for a specified currency
    $currency = isset($options['currency']) ? $options['currency'] : lm_paypal_api_get_currency_default();
lyricnz’s picture

StatusFileSize
new4.29 KB

Patch to test this more thoroughly as part of the Donation module test.

lyricnz’s picture

StatusFileSize
new1.81 KB
new1.25 KB

In 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.

lyricnz’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.