Support

Home Forums Event Espresso Premium cancel regsitation if offiline payment didn't did

cancel regsitation if offiline payment didn't did

Posted: November 24, 2017 at 2:50 am


Mrakor

November 24, 2017 at 2:50 am

hi their, iam going to make a integration with an offline payment mthod, their system going to delete invoice from their system if user didn’t pay in 4hour, so i must do that also, if user didn’t pay and “payment method didn’t send to me that payment is done” registration is going to be canceled automatic .
how can i do that


Josh

  • Support Staff

November 24, 2017 at 3:55 pm

Somewhere in your integration you can add something like the following to automatically cancel a registration:

<?php
$reg_ID = 123; // plug in the registration ID here
EEM_Registration::instance()->get_one_by_ID( $reg_ID )->set_status( 'RCN');


Mrakor

November 27, 2017 at 8:03 am

this is nice, i will try to do that, and in future event espresso can include this future, so it can automatic cancel if user didn’t pay until (Time)/hour/day


Josh

  • Support Staff

November 27, 2017 at 1:31 pm

Event Espresso will not include that feature because a registration with the default Registration Pending Payment status allows for paying later (and doesn’t reserve a space toward the registration limit).

The support post ‘cancel regsitation if offiline payment didn't did’ 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