jfquestiaux
Well-Known Member
I have a bi-lingual payment form that uses PayPal.
Since there are two languages, I am using two PayPal plugins (mainly to redirect to the right thank you page according to the language), with a condition based on the language tag:
Unfortunately, this does not seem to work: if I have the two plugins published, the form submits the data, records them in the database and redirect to the previous page without hitting PayPal's site.
If I unpublished one of the plugins, all work as expected.
Tested with latest GitHub (5).
Since there are two languages, I am using two PayPal plugins (mainly to redirect to the right thank you page according to the language), with a condition based on the language tag:
PHP:
$lang = JFactory::getLanguage();
return ({purchases___payment_method_id_raw} == 2 && $lang->get('tag') == 'en-GB');
Unfortunately, this does not seem to work: if I have the two plugins published, the form submits the data, records them in the database and redirect to the previous page without hitting PayPal's site.
If I unpublished one of the plugins, all work as expected.
Tested with latest GitHub (5).