Live demo

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.

  1. Create a Merchant app under Apps & Credentials at developer.paypal.com
  2. Copy the app's Client ID
  3. Paste it into Credential 1 in the PayPal gateway settings of your admin
  4. Set Dev Mode to Development and pay a test booking with a PayPal sandbox account
  5. 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

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.

  1. Book

    The customer picks a flight, hotel or tour and enters traveller details.

  2. Choose

    PayPal is offered on the payment step beside your other active gateways.

  3. Approve

    The customer logs in to PayPal and approves the payment for the booking total.

  4. Return

    The customer returns to your website with the payment result.

  5. Record

    The booking is marked as paid and the payment is saved against it.

  6. 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.

TaskManual PayPal invoicesPHPTRAVELS
Payment requestManual PayPal invoicesAn invoice or link created for each bookingPHPTRAVELSPayPal offered automatically on the payment step
AmountManual PayPal invoicesTyped by hand, open to mistakesPHPTRAVELSTaken from the booking total
Booking statusManual PayPal invoicesChecked in the PayPal account and updated by handPHPTRAVELSBooking marked as paid with the payment saved on it
Tickets and vouchersManual PayPal invoicesSent once someone notices the paymentPHPTRAVELSSent with the confirmation after payment
TestingManual PayPal invoicesReal money for every testPHPTRAVELSDevelopment mode with PayPal sandbox accounts
ReportingManual PayPal invoicesPayPal exports matched to bookings in a spreadsheetPHPTRAVELSRevenue 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.

Talk to sales

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.