Skip to content
PayPal chained payments gateway for WordPress Events Manager
PHP JavaScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.
add-ons/gateways Allow admins to specify TrackingID prefix Jun 9, 2016
events-manager-pro-pp-chained-payments.php Fix depricated notice Jan 14, 2019 Update readme Jun 6, 2018
readme.txt Update readme to include links to PayPal documentation Jun 6, 2018

PayPal Payment Gateway for Events Manager with Chained Payments

Contributors: socarrat

Tags: Events Manager, Events Manager Pro, PayPal, Chained Payments

Requires at least: 3.0.1

Tested up to: 4.0

Stable tag: 0.1


Allows chained payments (funds split between different paypal accounts) to be made via PayPal for Events Manager bookings.

See PayPal Adaptive Payments documentation for an overview of how this works, and please note you will need to apply for an Application ID before you can use chained payments in production. How do I get an application ID?

Currently by default only the first receiver is set up based on the paypal config settings per the Gateway Admin. To make a chained payment you will need to hook into the em_gateway_paypal_chained_receivers filter to add additional receivers. If you do not do this, PayPal will throw an error.

Example of how to use em_gateway_paypal_chained_receivers hook:

 * Hook into chained payments plugin to modify Receivers array
function my_em_gateway_paypal_chained_receivers($Receivers, $EM_Booking, $EM_Gateway_Paypal_Chained) {

  // Get paypal account email address for 2nd receiver somehow
  $pp_email = "";

  // Calculate amount to be chained paid. In this case half the booking price
  $amount = $EM_Booking->get_price(false, false, true) / 2;

  // Configure the 2nd receiver
  $Receiver = array(
    'Amount' => $amount,
    'Email' => $pp_email,
    'InvoiceID' => '',
    'PaymentType' => '',
    'PaymentSubType' => '',
    'Phone' => array('CountryCode' => '', 'PhoneNumber' => '', 'Extension' => ''),
    'Primary' => 'false'

  return $Receivers;
add_filter('em_gateway_paypal_chained_receivers', 'my_em_gateway_paypal_chained_receivers', 10, 3);

There is no need to setup Instant Payment Notifications (IPNs) via your PayPal for Events Manager to detect payments being made. The notify_url is set in the PayPal payment request by this plugin, so PayPal will automatically attempt to send an IPN. It is, however, important that you do not disable IPNs for your PayPal account (turning them off / not configuring them is fine but disabling them will break things).


Same as you would any other WordPress plugin

You can’t perform that action at this time.