Support

Home Forums Event Espresso Premium Canceled transactions redirect to congratulations page?

Canceled transactions redirect to congratulations page?

Posted: October 27, 2015 at 5:48 pm


Michelle Arnold

October 27, 2015 at 5:48 pm

We have set everything up. All the critical pages exist. BUT, every time someone cancels a transaction from paypal (using the cancel and return link in paypal) it brings them back to the congratulations page rather than the cancelled transaction page. I can;t find anywhere to fix this… is it in paypal somewhere? Thanks in advance for any help.

EE4 4.8.18.p
Wordpress 4.3.1
Avada theme 3.8.3 (with child theme in place)

https://www.ironsidegroup.com/training-information/public-class-schedule/


Tony

  • Support Staff

October 28, 2015 at 6:48 am

Hi Michelle,

Currently it is intended that cancelling a payment from PayPal will return the user back to the thank you page to allow the user to select another method of payment.

Previously if a user cancelled the payment it would return the user back to the registration-cancelled page so they would need to start again with a new registration, we changed this to allow users to continue with the registration once they returned.

The registration still does not apply to the sold values, so that user does not take up any spaces within the event, and should not receive the registration confirmation emails (unless your default registration status is Approved)


Josh

  • Support Staff

October 28, 2015 at 7:57 am

Hi Michelle,

If you want to change the cancel return URL from PayPal, you can add this code to your site:

// change cancel link from PayPal to go to Cancellation page
add_filter( 'FHEE__EEG_Paypal_Standard__set_redirection_info__arguments', 'jf_ee_paypal_cancel_url_override' );
function jf_ee_paypal_cancel_url_override( $redirect_args ) {
    $redirect_args[ 'cancel_return' ] = EE_Registry::instance()->CFG->core->cancel_page_url();
    return $redirect_args; 
}

You can add the above to a functions plugin or into your WordPress theme’s functions.php file.

You can also set up a different page and point to its URL instead of the cancel_page_url() if you’d like.


Ashleigh Coombs

October 31, 2015 at 4:33 pm

Josh
i have inserted your code into functions.php (in my theme).

It returns me from a Cancel transaction from PayPal to my Events page with a Registration is Cancelled statement. This is what i wanted.

However, when viewing the Registrations page (Admin) I have Abandoned registrations with no associated Transactions to delete. These Registrations are LOCKED.

How do I trash these Registrations?


Ashleigh Coombs

October 31, 2015 at 7:00 pm

Josh
my Transaction statements have now come through – took some time though.
I can now delete these Abandoned registrations.


Tony

  • Support Staff

November 3, 2015 at 5:00 am

Hi Ashleigh,

I just wanted to note that the Abanonded transactions are available right from the beginning of the registration.

If you run through the steps you did previously and click to cancel the payment, you’ll be sent to the registration-cancelled page.

Now if you look within Event Espresso -> Registrations you’ll see your ‘Pending Payment’ registration with a Transaction that has a status of Abandoned – http://take.ms/hI8si

You can click on the TXN date to be taken to the Transaction, there you can delete the pending PayPal payment – http://take.ms/pzdhK

You can also get to that same screen by going to Event Espresso -> Transactions -> Abandoned Transactions and finding the TXN there – http://take.ms/Qx9lx

Once the payment has been removed the registration is no longer locked – http://take.ms/o7Pil

The support post ‘Canceled transactions redirect to congratulations page?’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Support forum for Event Espresso 3 and Event Espresso 4.
Documentation for EE3 and EE4
Documentation for Event Espresso 3

Documentation for Event Espresso 4

Status: closed

Updated by  Tony 3 years, 7 months ago ago

Topic Tags

Notifications

This topic is: not resolved
Do NOT follow this link or you will be banned from the site!