BUILD:
Joomla: 3.8.13
VM: 3.4.2
What's wrong?
Steps:
1 add product to cart
2 change currency to EUR
3 select payment by paypal
4 confirm order and redirect to paypal
5 in paypal i see generated payment in USD :o
Settings of payment:
PayPal product: STANDARD
Let buyers override their PayPal addresses?: NO
Prompt buyers for a shipping address: Prompt for an address, but do not require one
Payment type: NORMAL
Payment action: DIRECT PAYMENT
Check IPN provider IP: YES
Countries: FOR ALL
Payment Currency: SELECTED IN CURRENCY MODULE
Email Currency: PAYMENT CURRENCY
EDIT:
i set debug mode enabled and i have something like this:
__construct PaypalHelperPayPalStd payment currency and code3:
Array
(
[0] ⇒ -1
[1] ⇒
)
EDIT2:
Notification is visible for all currencies
SOLUTION:
in file: /plugins/vmpayment/paypal/paypal/helpers/paypalstd.php
replace:
$post_variables['currency_code'] = $this->currency_code_3;
with:
$post_variables['currency_code'] = CurrencyDisplay::ensureUsingCurrencyCode($this->_method->payment_currency);