Support

Home Forums Event Espresso Premium Cash payment

Cash payment

Posted: April 23, 2014 at 2:38 am

Viewing 2 reply threads


Kristiina Lempiainen

April 23, 2014 at 2:38 am

Hi!

I’d need to make it easy for a movie theatre to sell tickets at the door using Event Espresso (version 3 at the moment). I have been testing Check/Money order payment setting for cash payments and the problem is that these payments end up with status “pending” which you must separately go to change to complete. This isn’t very quick and easy; do you have any suggestions how to do this easily?

If you add attendees manually in admin, you must enter the payment amount also manually. So if someone buys many tickets at once the final amount to pay isn’t calculated automaticly; that’s why this doesn’t work for this either.

Thanks in advance!


Dean

April 23, 2014 at 5:48 am

Hi,

There really isn’t another way to do it. Unless a payment is made via an online payment processor, the attendees will be marked as incomplete or pending.

As such it’s then an admin process to change them over.

However, you could look at the available filter hooks. In this instance: https://eventespresso.com/wiki/event-espresso-3-1-filters/#filter_hook_espresso_update_attendee_payment_data_in_db

Then you could create a small custom function that will check if they are paying by the cheque gateway and if so, change the status to completed.

Something like this:

function dean_change_status($payment_data) {
	
	//DEBUG
	//var_dump($payment_data);
	//wp_die( );

	if($payment_data['txn_details'] == "paying by check") {
	    $payment_data['payment_status'] = "Completed";
	    return $payment_data;
	}
	else {
	    return $payment_data;
	}
}

add_filter('filter_hook_espresso_update_attendee_payment_data_in_db','dean_change_status');


Kristiina Lempiainen

April 25, 2014 at 4:22 am

Ok, thanks for your answer!

Viewing 2 reply threads

The support post ‘Cash 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