Support

Home Forums Event Espresso Premium Registration records not getting marked as cancelled when user cancels payment

Registration records not getting marked as cancelled when user cancels payment

Posted: February 9, 2017 at 11:02 am


Flying Hippo

February 9, 2017 at 11:02 am

Scenario:

1. User adds an event to their cart

2. User enters registration information and continues

3. User clicks on payment gateway

4. User taken to payment gateway site to enter billing information

5. User decides not to purchase and clicks on cancel button

6. User taken to cancel_return url (mysite/?page_id=901&r_id=xxxxx)

7. User sees page that says “You have cancelled your registration”

PROBLEM: The Registration’s Status still says Incomplete, NOT Cancelled!

Why isn’t this working?


Josh

  • Support Staff

February 9, 2017 at 11:11 am

Hi there,

It’s actually not supposed to set the registration status to “Cancelled”, the text on your step 7 is incorrect.


Flying Hippo

February 9, 2017 at 11:38 am

in admin.php it says:


	case 'Registration Cancelled':
				if (empty($org_options['cancel_return'])) {
					$my_post['post_content'] = 'You have cancelled your registration.<br />[ESPRESSO_CANCELLED]';
					$cancel_return = wp_insert_post($my_post);
					$org_options['cancel_return'] = $cancel_return;
				}
				break;

“You have cancelled your registration.” is the default text.

If that’s not correct, then what should it say?


Flying Hippo

February 9, 2017 at 12:26 pm

Okay, I think I figured it out. Instead of using cancel_return as the return url for the gateway, I need to use return_url.

The support post ‘Registration records not getting marked as cancelled when user cancels payment’ 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.

Event Espresso