PayPal
The Easy Services Booking - Payments Plugin - PayPal Express plugin lets clients pay for a booking with PayPal. The client is sent to PayPal, pays, and comes back to your site, where the booking is confirmed.
The plugin uses PayPal Express Checkout with API credentials (API username, password and signature) from your PayPal business account.
Get your API credentials
- Log in to your PayPal business account.
- Open the account settings and find API access (NVP/SOAP API integration, also called classic API credentials).
- Request or show the API signature credentials and copy the API Username, API Password and Signature.
For tests, create a sandbox business account on the PayPal developer site and use its API credentials.
Set up the plugin
Go to System > Manage > Plugins, search for PayPal Express and open the plugin.
| Setting | What it does |
|---|---|
| Provider Name | The name of this payment option, PayPal by default |
| API Username | From your PayPal account |
| API Password | From your PayPal account |
| API Signature | From your PayPal account |
| Currency (3 letters) | The currency to charge in, for example EUR, USD or GBP |
| Transaction Fee | A percentage added to the price, for example 1.5 adds 1.5%. 0 for none |
| Test Mode | Yes uses the PayPal sandbox with sandbox credentials |
| Button URL | The image of the PayPal button on the payment page |
Set Status to Enabled and save. Then enable the Payment Validation plugin, see Payments.
How a payment works
- After Book now, the client sees the Pending Payment page with the Amount Due and the PayPal button.
- The button takes the client to PayPal. The amount is the service price (or the total of all slots) plus the transaction fee.
- After paying, PayPal returns the client to your site. Easy Services Booking completes the payment, confirms the booking and sends the payment emails.
- If the client cancels at PayPal, they come back to the pending page and can try again.
The Amount Due on the payment page does not include the transaction fee. Mention the fee in the Provider Name, or in the service description, so clients are not surprised. The plugin already adds "( + 1.5% ... )" to the name when a fee is set.
Troubleshooting
| What you see | What to check |
|---|---|
| "Payment Problem" with a PayPal message after clicking the button | The API credentials, and that Test Mode matches them: sandbox credentials need Yes, live credentials No |
| The client paid but the booking is still pending | The client closed the browser before PayPal returned them to your site. Check the payment in PayPal and click Verify in the Bookings list |
| Wrong currency | Currency (3 letters) in the plugin |