Paypal declines recurring payments with wrong decimal delimiter
Overview
Recurring paypal payments wont work if the "Decimal Delimiter" is not set to "." which is the usual the case in germany. This happend when using the payment processor "PayPal - Website Payments Standard".
Example use-case
- Click on **Administer -> Localisation -> Languages, Currency, Locations **.
- Set "Decimal Delimiter" to "," (common decimal delimiter in germany)
- Configure Paypal as payment processor with payment processor type "PayPal - Website Payments Standard"
- Configure an event that requires recurring payments and allow payments via paypal
Current behaviour
At the moment recurring payments are only possible if the "Decimal Delimiter" is set to ".". This results in problems and misunderstandings for accounting and when paying contributions.
Proposed behaviour
The paypal implementation is done in ** Core/Payment/PayPalImpl.php **. Maybe it could be checked if the "Decimal Delimiter" is set to "." before sending the request to paypal and change it if its not the case.