Payment Gateways Overview
ProRequires Events Manager Pro. Compare plans
A payment gateway connects your booking form to a payment provider such as Stripe, PayPal or Square. Events Manager Pro comes with three gateways built in, and each provider add-on you install adds more. You can switch on as many as you like, and visitors choose between them when they book an event with a priced ticket.
This page explains what all gateways share: where they are managed, how to choose one, test mode, what happens to a booking while it waits for payment, and how refunds, disputes and transactions are recorded. Each gateway then has its own setup page.
- Events Manager Pro is installed and bookings are switched on.
- Your prices, currency and tax rate are set in Events then Settings then Bookings then Pricing Options. Every gateway charges in that one currency. See Prices, currency and tax.
- Your site runs over HTTPS. The Stripe, PayPal and Square add-ons don't offer their gateways to visitors on a site without it, in test mode as well as live mode.
Where gateways are managed
Go to Events then Payment Gateways. The Edit Gateways list shows every gateway that is installed, whether it is Active, its Mode (Live Mode, Test Mode or Limited Test Mode) and a View transactions link.
Every installed gateway is listed here. On the demo site only Offline is active.
Hover a gateway's name for its actions: Settings, and Activate or Deactivate. The Bulk Actions menu can activate or deactivate several gateways at once, and switch them between test and live mode.
Setting up any gateway follows the same order:
-
If the gateway comes from an add-on (Stripe, PayPal, Square, Authorize.net, Xero), install and activate that plugin from your account downloads, the same way you installed Events Manager Pro.
-
Click the gateway's name or Settings, enter the provider's test credentials and save.
-
Back on the list, click Activate under the gateway's name.
-
Make a test booking, then enter your live credentials and switch the gateway to live mode.
A site that was updated from a version of Pro older than 3.2 can still be in Legacy Mode, which shows a notice at the top of this screen with a Deactivate Legacy Mode button. In Legacy Mode none of the add-on gateways load, and the payment page and partial payments are not available.
Which gateway to use
| Gateway | Comes with | Where the customer pays | Pays from the payment page | Deposits | Refunds recorded | Disputes recorded |
|---|---|---|---|---|---|---|
| Stripe Checkout | Stripe add-on | Stripe's hosted page, then back to your site | Yes | Yes | Yes | Yes |
| Stripe Elements | Stripe add-on | A card form inside your booking form | Yes | Yes | Yes | Yes |
| PayPal Checkout | PayPal add-on | PayPal buttons on your booking form, paying in a PayPal window | Yes | Yes | Yes | Yes |
| PayPal Advanced | PayPal add-on | Card fields inside your booking form | Yes | Yes | Yes | Yes |
| Square Checkout | Square add-on | Square's hosted page, then back to your site | Yes | Yes | Yes | Yes |
| Square Web Payments | Square add-on | A card form inside your booking form | Yes | Yes | Yes | Yes |
| Authorize.net API | Authorize.net add-on | Card fields inside your booking form | No | No | Yes, any refund cancels the booking | No |
| Xero Invoice | Xero add-on | Xero's online invoice, or an invoice emailed by Xero | No | No | No | No |
| Offline | Pro | Outside your site (cash, check, bank transfer). You record the payment | As Pay later | Recorded by hand | By hand | Not applicable |
| PayPal (Payments Standard) | Pro, legacy | paypal.com, then back to your site | Yes | No | Yes | Chargebacks cancel the booking |
| Authorize.net AIM | Pro, legacy | Card fields inside your booking form | No | No | Yes, any refund cancels the booking | No |
All of them work in Multiple Bookings Mode. Every gateway except Offline has a test or sandbox mode.
The two gateways marked legacy carry a Legacy Gateway label in the list, and their settings pages warn that the payment method has been discontinued by the provider and may stop working. Use PayPal Checkout or PayPal Advanced in place of PayPal (Payments Standard), and Authorize.net API in place of Authorize.net AIM.
Some things to weigh when you choose:
- A hosted page (Stripe Checkout, Square Checkout) or PayPal window keeps card entry off your site entirely. A card form inside the booking form (Stripe Elements, PayPal Advanced, Square Web Payments) keeps the customer on your page, and the card fields are still served by the provider, so card numbers don't touch your server.
- The two Authorize.net gateways are different: the card number is posted to your site and passed on to Authorize.net from your server. It is not stored, but your site handles it.
- If you take deposits, or send payment links for bookings made by phone, pick a gateway with Yes in those two columns.
What visitors see on the booking form
When an event has a priced ticket and at least one active gateway, the booking form adds a payment section. With more than one gateway active, visitors pick one from a drop-down menu labeled Pay With, and the chosen gateway shows its own fields or instructions underneath. A free booking skips the payment section.
Site-wide choices for this part of the form are in Events then Settings then Bookings then Payment Gateway Options.
Payment Gateway Options, with the four settings that apply to every gateway.
| Setting | What it does |
|---|---|
| Enable Quick Pay Buttons? | Replaces the drop-down menu and the form's submit button with one button per gateway. It only works while every active gateway can be a button: Stripe Checkout, PayPal Checkout, Square Checkout, Xero Invoice, Offline and PayPal (Payments Standard). If you activate a gateway that needs card fields, buttons are switched off while it stays active. Default No. |
| Gateway Label | The label of the drop-down menu. Default Pay With. |
| Unpaid Booking Expiry | The number of minutes an unpaid booking waits before it expires, for any gateway whose own expiry is 0. Default 0, which means no expiry. See Unpaid, abandoned and expired bookings. |
| Payment page | Lets people pay a booking that is awaiting payment from one checkout page, opened from My Bookings or a payment link. Default No. See Payment Page and Payment Links. |
Each gateway's own General Options tab sets the wording visitors see for it: Gateway Title (its name in the drop-down menu), Booking Form Information (text shown under the menu when it is chosen) and, for gateways that can be buttons, QuickPay Payment Button (button text, or the full URL of an image to use as the button).
Customer details sent to the provider
Some gateways pass the customer's address to the provider for card verification. Events Manager needs to know which of your booking form fields hold the address, city, state, postcode, country and phone number. Link them up under Common User Fields for Gateways at the bottom of Events then Forms Editor. The name and email address are taken from the booking automatically.
Test mode
A gateway that has never been switched to live mode is in test mode, so a newly installed gateway can't take real money by accident. In test mode it uses the provider's sandbox and your test credentials, and visitors see the notice This gateway is currently in Test Mode, only test payment methods can be used. under the payment method.
To change mode, open the gateway's settings. A banner above the tabs states the current mode and holds the button that switches it: Enable Live Mode or Enable Test Mode. You can also select gateways in the list and use the Enable Test Mode and Enable Live Mode bulk actions.
The banner says which mode the gateway is in and which tab its credentials come from.
Live and test credentials are kept apart, on the [Live] API Keys/Notifications and [Test] API Keys/Notifications tabs, so you can enter both sets once and switch between them.
| On the [Test] API Keys/Notifications tab | What it does |
|---|---|
| Enable Limited Test Mode? | Keeps the gateway live for everyone except the visitors or events you list below, who get test mode. Use it to test on a site that is already selling. |
| Limit to IPs, Limit to Users, Limit to Events | Comma-separated IP addresses, user IDs or event IDs that get test mode. The events limit does not apply in Multiple Bookings Mode. |
| Display only to IPs, Display only to Users | Under Hide Test Mode Gateway. While the gateway is in test mode, only these visitors see it on booking forms. |
A booking made in test mode is a real booking on your site. It takes spaces, sends emails, and is approved when the test payment completes. Its transactions carry a Test Mode warning icon in the transactions table. Cancel or delete test bookings when you are done. A booking stays in the mode it was made in, so a refund or late payment for a test booking is still handled with your test credentials after you go live.
Offline has no test mode: it always works as a live gateway, even though the Mode column of the list can read Test Mode beside it, as it does on the demo site. PayPal (Payments Standard) has one set of credentials and a Gateway Mode setting in place of the banner.
Booking statuses during payment
| Status | When a booking has it |
|---|---|
| Awaiting Online Payment | The booking was submitted with an online gateway and the payment has not completed yet. |
| Awaiting Payment | The booking was made to pay offline and you have not recorded full payment. The bookings filter calls this Awaiting Offline Payment. |
| Deposit Paid | Part of the price is paid under a payment plan. The booking keeps its spaces. |
| Approved | Paid in full. The customer gets the confirmed booking email. |
| Pending | Paid, but waiting for you. This happens when the gateway's Manually approve completed transactions? box is ticked and bookings need approval in your booking settings, when a payment is less than the price, when the provider is still clearing a payment (a PayPal eCheck, for example), or after a partial refund. |
| Cancelled | The payment was refunded in full, disputed for the full amount, or the booking expired with the action set to Cancel. |
Unpaid, abandoned and expired bookings
An online booking is saved the moment the form is submitted, before the customer has paid, so that the payment can be matched to it. If the customer closes the provider's page, or their card is declined and they give up, that booking is left at Awaiting Online Payment.
What happens next depends on two settings on the gateway's General Options tab, under Booking Actions - Payment Complete:
| Setting | What it does |
|---|---|
| Unpaid Bookings Expiry | Minutes to wait for payment. 0 uses the site-wide Unpaid Booking Expiry described above. If both are 0, bookings for this gateway never expire. |
| Expired Booking Action | Delete removes the booking, Cancel keeps it with the Cancelled status, and No Action switches expiry off for this gateway. The form shows Delete until you choose otherwise. |
Events Manager checks for expired bookings once a minute using the WordPress scheduler. Before it touches a booking, the Stripe, PayPal and Square gateways ask the provider whether the payment went through after all:
- If the provider says it was paid, the payment is recorded and the booking is approved. This also catches payments whose notification never reached your site.
- If nothing was paid, the open payment is closed at the provider so it can't be paid later, then the booking is deleted or cancelled. A booking with a payment already recorded against it is cancelled, never deleted. No cancellation email is sent, because the customer has often booked again by then.
- If the provider can't be reached, the booking is left alone and checked again. PayPal and Square bookings in that state are cancelled one day after their expiry.
Three more things are worth knowing:
- Spaces. A booking awaiting online payment holds its spaces only while an expiry applies to it. With no expiry set, an abandoned booking would otherwise hold its spaces until you noticed it. Set an expiry (15 to 30 minutes suits most sites) if you sell events that fill up.
- Sites updated to Pro 3.10. If a gateway's Expired Booking Action had never been saved, its unpaid bookings used to stay forever. They are now deleted once they expire, but only bookings made after the update. Older leftovers stay where they are for you to review.
- Payments started from the payment page. A declined, abandoned or expired payment from the payment page never deletes or cancels the booking. It goes back to the status it had before.
Customers can come back to an unpaid booking. With the payment page switched on, My Bookings shows Pay now next to it. Without it, Stripe Checkout, Square Checkout and PayPal (Payments Standard) add their own Resume Payment button there.
Offline bookings never expire. They wait at Awaiting Payment until you record a payment, approve, reject or cancel them.
Refunds and disputes
Refunds are made at the provider, in your Stripe, PayPal, Square or Authorize.net dashboard. Events Manager has no refund button for online gateways. The provider then notifies your site, and the refund is recorded against the booking as a transaction with a negative amount.
| Gateway | A full refund | A partial refund | A dispute or chargeback |
|---|---|---|---|
| Stripe Checkout, Stripe Elements | Booking cancelled | Booking set to Pending | Recorded as Disputed. Cancelled if the dispute covers the full price, otherwise Pending |
| PayPal Checkout, PayPal Advanced | Booking cancelled, including partial refunds that add up to the full amount | Booking set to Pending | Recorded as Disputed with the amount and reason. Cancelled if it covers the full price, otherwise Pending |
| Square Checkout, Square Web Payments | Booking cancelled | Booking set to Pending | Recorded as Disputed. Cancelled if it covers the full price, otherwise Pending |
| Authorize.net API, Authorize.net AIM | Booking cancelled | Booking cancelled | Not recorded |
| PayPal (Payments Standard) | Booking cancelled | Booking set to Pending | A reversal cancels the booking |
| Xero Invoice | Not recorded | Not recorded | Not recorded |
| Offline | You record it by hand as a negative payment. The status does not change | Same | Not applicable |
For all of this to work the provider must be able to reach your site. Each gateway page lists the notification (webhook) setup it needs: Stripe and Authorize.net webhooks are created by hand, PayPal Checkout, PayPal Advanced and Square create theirs when you save your credentials.
Some limits apply to every gateway:
- A booking set to Pending by a partial refund or dispute gets no status email. Decide yourself whether to approve it again or cancel it.
- A booking that is paying in parts is only cancelled once nothing is left paid. If a deposit is refunded but the balance payment stands, the booking keeps its status.
- Winning a dispute does not bring a cancelled booking back. Approve it again by hand.
- Canceling or deleting a booking in Events Manager does not refund the customer. Refund them at the provider.
Transactions
Every payment, refund and dispute is stored as a transaction. The Transactions table appears in these places:
| Where | What it lists |
|---|---|
| Events then Bookings, below the bookings | Every transaction on the site |
| Events then Payment Gateways, View transactions | Transactions for that gateway |
| An event's bookings screen | Transactions for that event |
| A single booking, or one person's bookings | Transactions for that booking or person |
Transactions on the demo site, all of them offline payments recorded when bookings were approved.
For Stripe, Square and Authorize.net payments the transaction ID links to the payment in the provider's dashboard. Statuses you will see include Completed, Pending, Refunded, Refund Failed (Stripe, when a refund is later reversed), Disputed, Denied, Failed, Cancelled and Voided.
The booking's Total Paid is the sum of its transactions. You can add Total Paid, Transaction ID, Payment Method and Payment Method Info as columns in the bookings table.
You can delete a transaction from the table, but your records then no longer match the provider's, and the booking's total paid changes. Delete only test transactions or entries made by mistake.
To put a payment's ID in a booking email, use the #_BOOKINGTXNID placeholder. It is empty for offline payments.
Record a payment by hand
The Add Offline Payment box on a single booking's admin screen records money you received outside the site, for any booking and any gateway. See Offline Event Payments.
Storing API credentials safely
Credential fields are only shown and editable when wp-admin is loaded over HTTPS. See Safely Saving Gateway API Credentials.
Developers: adding your own gateway
Every gateway is a class that extends EM\Payments\Gateway, registered on the em_gateways_init action, so a separate plugin can add a gateway without changing Events Manager Pro. The bundled Offline gateway (add-ons/gateways/gateway.offline.php) is the shortest working example. Gateways written before Pro 3.10 keep their earlier unpaid-booking behavior until they set $confirms_abandoned_payments.