PayPal button Thankyou page don't redirect correctly

  • kinui
  • Topic Author
  • Offline
  • Senior Boarder
  • Senior Boarder
  • Posts: 47
  • Thank you received: 2

kinui replied the topic: PayPal button Thankyou page don't redirect correctly

Hi, I didn't had time for wait your answer so you I solved the problem.

I'm gonna tell you were it is for future problems with other users.

The problems is in the file facileforms.process.php

in the inside the node case PayPal line 8296

you have the line
$returnurl = htmlentities(JURI::root() . "index.php?option=com_breezingforms&confirmPayPal=true&form_id=" . $this->form . "&record_id=" . $this->record_id);

instead an $options;

Before this code I add this code for language redirect

$lang = JFactory::getLanguage();

if( $lang->getTag() == 'es-ES' ){
$returnurl = htmlentities(JURI::root()."es/gracias");
elseif ($lang->getTag() == 'en-GB'){
$returnurl = htmlentities(JURI::root()."en/thank-you");
elseif ($lang->getTag() =='pt-BR'){
$returnurl = htmlentities(JURI::root()."pt/obrigada");

So for me that was the solution. But it would be great if you change the file and make a thank you page field for each language, because is better if we don't modify the core files.

Thank you for your help

The following user(s) said Thank You: mihaela
  • Posts: 3128
  • Karma: 105
  • Thank you received: 413

mihaela replied the topic: PayPal button Thankyou page don't redirect correctly


Thank you for sharing this solution.

I am glad that you have managed to resolve this and that it is now working as you wanted.
Still, I am not sure why redirecting to the "Thank you page" in PayPal button properties regardless of language didn't work for you in the first place since it should.

As for setting the thank you page based on a language, I agree that it would be a good idea to set thank you page field for each language so the core files don't need to be changed. Thank you for the suggestion, I will suggest this to our developers.

P.S. It was a public holiday here yesterday, so that is the reason for not answering sooner.

Best regards,

Moderators: ForumSupport
Time to create page: 0.044 seconds

We Are Doing Our Part

Massive discounts on all of our extension subscription plans to help you and your business in these times.

Get Your Subscription Here

New Icon Packs Category!

Crosstec is now offering icon packs.

If you are a paying subscriber, icon packs are automatically added to your account.

Check out our icon packs page!

News and Updates

Get informed about new downloads, updates and more in our News and Updates newsletter.

All Extensions Subscription

We are doing our part and support your business with extremely low prices -- For example 6-Months-Subscription for only $9 USD. For as long as necessary.

No support per domain or website installation limits! Includes all of our current and future Joomla!® extensions, Joomla!® templates for the duration of your membership. This means, by purchasing an All Extensions Subscription you'll have it all covered!

Get it from here

3rd Party Discount - 25% Off

We help you to keep your costs under control. If you are a new member and purchased a form building tool from a different form vendor, then you'll get a 25% discount on our subscription plans.

How to receive the discount:

Send us a quick email to with a proof of purchase (for example a paypal receipt), await payment instructions and enjoy your membership!