---
title: "Stripe API Integration for Travel Booking | PHPTRAVELS"
description: "Stripe API integration for travel booking: take card and wallet payments at checkout, run 3-D Secure, issue refunds and match every payment to its booking."
source: https://phptravels.com/integrations/stripe-api-integration
---

Payment integration

# Stripe API integration for card payments in your booking engine

Take card and wallet payments for flights, hotels and tours through your own Stripe account. Customers pay at checkout, 3-D Secure runs where the card needs it, and each payment, refund and payout is reconciled against the booking it belongs to.

- Card and wallet checkout
- 3-D Secure authentication
- Refunds on cancelled bookings
- Payouts to your own account

How it works

## Stripe is a ready payment gateway in PHPTRAVELS

Stripe sits in the PHPTRAVELS payment gateway list next to PayPal, Adyen, bank transfer and the agent wallet. You connect your own Stripe account with its API keys, and the booking engine hands the payment step of checkout to Stripe. The money settles in your Stripe balance and pays out to your bank, while the booking, the charge and any refund stay linked in your admin. A step-by-step setup guide is published at docs.phptravels.com.

- [Open or sign in to your Stripe account and copy the API keys](https://phptravels.com/travel-payment-gateways-integration)
- Enable Stripe in the payment gateways section of the admin
- Paste the publishable and secret keys, starting with test keys
- Place a test booking to check checkout and 3-D Secure
- Switch to live keys and take real card payments

Gateway

Stripe · Enabled

Mode

Test

Publishable key

pk_test_••••

Secret key

sk_test_••••

Currency

USD

Stripe payments

## Every Stripe charge tied to a booking and a status

Paid, refunded and waiting for the customer: each card payment shows against its reservation, so your team never has to search the Stripe dashboard for a booking number.

Card payments · this week Stripe payments

- **BK-31207 · Dubai to London** Return flight · 2 passengers · Visa card Succeeded 3-D Secure passed **– booking total **
- **BK-31214 · Rome city hotel** 3 nights · 2 adults · Cancelled by guest Refunded Back to original card **– booking total **
- **BK-31226 · Bali day tour** 2 guests · Mastercard Requires action Awaiting 3-D Secure **– booking total **
- Card and wallet checkout Customers pay by card or a supported digital wallet on the payment step, without leaving the booking flow.
- 3-D Secure Where the card issuer asks for it, the customer confirms the payment with their bank before the booking is completed.
- Refunds When a booking is cancelled, the refund goes back through Stripe to the card that paid for it.
- Payouts Funds collect in your own Stripe balance and pay out to your bank account on the schedule you set in Stripe.
- Reconciliation The booking number travels with the charge, so payments and refunds match the reservation in your admin and in Stripe.
- Test mode Run test bookings with Stripe test keys and test cards before you switch the gateway to live.

Payment flow

## From checkout to payout with Stripe

What happens when a customer or agent pays for a booking by card through Stripe.

- Checkout The customer reviews the booking and chooses to pay by card.
- Authenticate 3-D Secure runs when the card issuer requires it.
- Charge Stripe confirms the payment and the booking is marked as paid.
- Confirm The confirmation, invoice and voucher or ticket go to the customer.
- Refund If the booking is cancelled, the refund is sent back to the card.
- Payout Stripe pays the balance out to your bank account.

Payment methods

## Stripe alongside your other ways to get paid

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

- Stripe Card and wallet payments through your own Stripe account, with refunds and payouts.
- Other online gateways PayPal, Adyen, Paystack, Cashfree, FlutterWave, Xmoney and further card and wallet gateways.
- Wallet, bank and pay later Agent wallet balance, bank transfer and pay later as separate options next to card payments.

Back office

## Manage Stripe payments from one admin

Card payments, refunds and payment records sit in the same dashboard as your bookings, agents and suppliers.

- Payment status Filter bookings by paid, unpaid and refunded to see where every card payment stands.
- B2B agents Agents can pay for bookings by card through Stripe, or from their wallet balance where you enable it.
- Invoices Invoices show the amount, the payment method and the date the card was charged.
- Email notifications Booking and payment emails tell the customer when the card payment succeeds or a refund is issued.
- Multi-currency Show prices in the currencies your markets use and charge in a currency your Stripe account supports.
- Setup guide The Stripe guide on docs.phptravels.com walks through keys, settings and a first test payment.

Compare

## Stripe payment links by hand vs Stripe in PHPTRAVELS

Many agencies already use Stripe, but send payment links outside the booking system. This is what changes when Stripe is built into checkout.

| Task | Manual payment links | PHPTRAVELS |
| Taking payment | Manual payment links A link created and emailed for each booking | PHPTRAVELS Card payment on the checkout page as the customer books |
| Booking status | Manual payment links Updated by hand after checking Stripe | PHPTRAVELS Marked as paid when Stripe confirms the charge |
| Matching payments | Manual payment links Payments searched for by amount or email | PHPTRAVELS The booking number travels with every charge |
| Refunds | Manual payment links Issued in Stripe and noted separately | PHPTRAVELS Recorded on the cancelled booking |
| B2B agents | Manual payment links Links sent to each agent | PHPTRAVELS Agents pay by card or wallet in the agent portal |
| Ownership | Manual payment links Payment steps live outside your system | PHPTRAVELS Self-hosted source code your developers can extend |

Use cases

## Who takes Stripe payments with PHPTRAVELS

- Online travel agencies B2C websites that sell flights, hotels and packages and need card checkout in many currencies.
- B2B agencies Sub-agents settle bookings by card through Stripe, next to the prepaid wallet.
- Tour and activity sellers Operators who take card payment when a tour or activity is booked online.

Why PHPTRAVELS

## Your Stripe 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 Charges land in your Stripe balance and pay out to your bank, not to a third party.
- 24 languages Checkout in your markets' languages and currencies, including right-to-left scripts.
- B2C and B2B One installation for your public website and your agent portal.

FAQ

## Stripe API integration questions

What travel companies ask before taking card payments with Stripe.

It connects your Stripe account to the booking engine, so customers and agents pay by card or wallet at checkout. 3-D Secure runs where needed, refunds go back through Stripe, and every payment is reconciled against its booking.

Yes. You connect your own Stripe account with its API keys, so payments settle in your balance and pay out to your bank. Stripe's own fees and country availability apply; check them with Stripe.

Yes. When the card issuer requires authentication, the customer confirms the payment with their bank during checkout before the booking is completed.

When a booking paid by Stripe is cancelled, the refund is sent back through Stripe to the original card and recorded against the booking.

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

Stripe is part of the platform's payment gateways. Plans start with Startup as a one-time licence; see the pricing page or ask sales. Stripe charges its own processing fees.

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)
- [PayPal payments PayPal checkout for flights, hotels and tours](https://phptravels.com/integrations/paypal-api-integration)
- [Bank transfer payments Bank transfer checkout with manual confirmation](https://phptravels.com/integrations/bank-api-integration)
