Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Add an extra fee for eWAY transactions in Events Manager
Plugin Name: Events Manager eWAY Extra Fee
Plugin URI:
Description: Add a fee to booking for eWAY transactions
Version: 1
Author: WebAware
Author URI:
* add a fee to the Events Manager booking price for eWAY
* @param float $price
* @param EM_Booking $booking
* @return float
add_filter('em_eway_amount', function($price, $EM_Booking) {
// define your additional fee
$extra_fee = 2.0;
// add extra fee
$price += $extra_fee;
return $price;
}, 10, 2);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment