---
title: "PayPal API Integration for Travel Booking | PHPTRAVELS"
description: "PayPal API integration for your travel booking engine: add your PayPal app Client ID, test in sandbox, go live and take PayPal payments for every booking."
source: https://phptravels.com/integrations/paypal-api-integration
---

Payment integration

# PayPal API integration for your travel booking engine

Accept PayPal for flights, hotels, tours and other bookings on your own travel website. Paste the Client ID from your PayPal app into the admin, test with a sandbox account, then switch to production and the payment is recorded against each reservation.

- Client ID from your PayPal app
- Development and production modes
- PayPal on the payment step
- Next to Stripe and other gateways

How it works

## PayPal is a ready payment gateway in PHPTRAVELS

PayPal is a global payments platform for cards, wallets and PayPal balance, accepted in most countries. In PHPTRAVELS it is one entry in the payment gateway list, beside Stripe, Adyen, regional gateways, bank transfer and the wallet balance. You connect it with the Client ID of a Merchant app created in the PayPal developer dashboard, so the money goes to your own PayPal business account and no developer work is needed to switch it on.

- [Create a Merchant app under Apps & Credentials at developer.paypal.com](https://phptravels.com/travel-payment-gateways-integration)
- Copy the app's Client ID
- Paste it into Credential 1 in the PayPal gateway settings of your admin
- Set Dev Mode to Development and pay a test booking with a PayPal sandbox account
- Switch Dev Mode to Production and set the gateway to active

Payment gateway

PayPal · Active

Credential 1 · Client ID

Client ID: ••••••••

Dev Mode

Development (sandbox)

Booking currency

USD

Payments

## Every PayPal payment tied to a booking

Bookings paid through PayPal appear in the admin with their payment method and status, next to bookings paid by card, transfer or wallet.

Bookings paid with PayPal · this week PayPal payments

- **BK-20512 · Barcelona city hotel** 3 nights · 2 adults · B2C customer Paid via PayPal Confirmed **– booking total **
- **BK-20527 · Dubai to Paris** Return flight · 2 passengers Paid via PayPal Ticket issued **– booking total **
- **BK-20533 · Desert safari tour** 4 guests · Test payment Sandbox test Development mode **– booking total **
- Client ID connection The gateway connects with the Client ID of your own PayPal Merchant app, stored in Credential 1.
- Sandbox testing Development mode runs payments against PayPal's sandbox, so you can book and pay with test accounts first.
- One switch to go live Change Dev Mode to Production once tests pass, and real payments reach your PayPal business account.
- Cards, wallets and balance Customers pay with their PayPal balance or the cards and wallets PayPal supports in their country.
- Payment on the booking The method and amount are stored against the reservation and carried into invoices and reports.
- Gateway status Turn PayPal on or off from the admin without touching the rest of your checkout.

Payment flow

## From search to confirmed booking with PayPal

The steps a customer follows when paying for a travel booking with PayPal on your website.

- Book The customer picks a flight, hotel or tour and enters traveller details.
- Choose PayPal is offered on the payment step beside your other active gateways.
- Approve The customer logs in to PayPal and approves the payment for the booking total.
- Return The customer returns to your website with the payment result.
- Record The booking is marked as paid and the payment is saved against it.
- Issue The confirmation, invoice and voucher or ticket go to the customer.

Payment methods

## PayPal alongside your other ways to get paid

PayPal is one option in the payment gateway list, so you can switch on the methods each of your markets expects.

- PayPal PayPal balance, cards and wallets through your own PayPal business account.
- Card and regional gateways Stripe, Adyen, Paystack, Cashfree, FlutterWave, Myfatoorah, Fawaterk and Xmoney.
- Offline and wallet Bank transfer, pay later and the customer or agent wallet balance.

Back office

## Manage PayPal payments from one admin

Gateway settings, paid bookings and payment records sit in the same dashboard as your bookings and suppliers.

- Gateway settings Credential, Dev Mode and status for PayPal in the payment gateways section.
- Booking list Filter bookings by payment status and see which were paid through PayPal.
- Invoices Invoices show the amount, the payment method and the paid status.
- Email notifications Booking and payment emails confirm the reservation once PayPal reports the payment.
- Multi-currency Show prices in the currencies your markets use across the website.
- Reports Revenue by payment method, so PayPal income is easy to reconcile with your PayPal statements.

Compare

## PayPal invoices by email vs PayPal at checkout

Many agencies already take PayPal by sending invoices or payment links by hand. This is what changes when it runs inside the booking engine.

| Task | Manual PayPal invoices | PHPTRAVELS |
| Payment request | Manual PayPal invoices An invoice or link created for each booking | PHPTRAVELS PayPal offered automatically on the payment step |
| Amount | Manual PayPal invoices Typed by hand, open to mistakes | PHPTRAVELS Taken from the booking total |
| Booking status | Manual PayPal invoices Checked in the PayPal account and updated by hand | PHPTRAVELS Booking marked as paid with the payment saved on it |
| Tickets and vouchers | Manual PayPal invoices Sent once someone notices the payment | PHPTRAVELS Sent with the confirmation after payment |
| Testing | Manual PayPal invoices Real money for every test | PHPTRAVELS Development mode with PayPal sandbox accounts |
| Reporting | Manual PayPal invoices PayPal exports matched to bookings in a spreadsheet | PHPTRAVELS Revenue by payment method in the admin |

Use cases

## Who takes PayPal with PHPTRAVELS

- Online travel agencies B2C websites selling flights and hotels to travellers who prefer not to enter card details.
- Tour and activity sellers Tour operators taking bookings from overseas guests who already use PayPal.
- Multi-market agencies Businesses offering PayPal next to Stripe and local gateways for each region.

Why PHPTRAVELS

## Your PayPal account, your platform, your code

- Source code included Self-hosted under a commercial licence, so your developers can extend the payment flow.
- Paid to your own account PayPal payments settle in your PayPal business account, not a reseller's.
- Documented setup The PHPTRAVELS docs walk through the PayPal app, Client ID and sandbox test step by step.
- 24 languages Run your checkout in your markets' languages and currencies, including right-to-left.

FAQ

## PayPal API integration questions

What travel companies ask before taking PayPal on their booking website.

It adds PayPal as a payment gateway in your booking engine. Customers pay for flights, hotels, tours and other bookings with PayPal, and the payment is recorded against the reservation in your admin.

A PayPal business account and a Merchant app created under Apps & Credentials in the PayPal developer dashboard. Copy the app's Client ID into Credential 1 in the PayPal gateway settings; the PHPTRAVELS docs cover each step.

Yes. Set Dev Mode to Development and pay a test booking with the sandbox account listed in your PayPal developer dashboard. When it works, switch Dev Mode to Production.

Yes. PayPal is one entry in the payment gateway list, so you can enable it alongside Stripe, Adyen, regional gateways, bank transfer, pay later and the wallet balance.

Payments go to your own PayPal business account. Transaction fees are set by PayPal under your agreement with them, so check PayPal's current rates for your country.

PayPal is part of the platform's payment options. Plans start with Startup as a one-time licence; see the pricing page or ask sales which plan fits.

Keep exploring

## More from the platform

Reviewed by [Qasim Hussain](https://phptravels.com/author/qasim-hussain), Founder & CEO, PHPTRAVELS · Updated October 12, 2026

- [Razorpay integration Connect Razorpay to a travel booking site as a custom gateway](https://phptravels.com/integrations/razorpay-api-integration)
- [Paddle API integration Merchant of record vs payment gateway, and when Paddle fits](https://phptravels.com/integrations/paddle-api-integration)
- [Payment gateway API How card payments, 3-D Secure, captures and refunds work over an API](https://phptravels.com/payment-gateway-api)
- [Payment gateway integration Checkout, 3D Secure, refunds and webhooks](https://phptravels.com/travel-payment-gateways-integration)
- [Stripe payments Card and wallet checkout with refunds and payouts](https://phptravels.com/integrations/stripe-api-integration)
- [Bank transfer payments Bank transfer checkout with manual confirmation](https://phptravels.com/integrations/bank-api-integration)
