OpenBooking / Docs / Packages / payments-stripe
Package

@openbooking-sh/payments-stripe

Last updated 2026-10-13 · Edit on GitHub

Stripe deposits. Takes the deposit of a booking on a Stripe Checkout page and refunds it by the cancellation terms. The engine only confirms a booking after Stripe says the deposit was paid, for that booking and that amount, so an agent can never skip the payment with a made-up token. Plain fetch, no Stripe SDK.

Part of OpenBooking: open-source booking that every AI assistant can use.

npm install @openbooking-sh/payments-stripe

Usage #

import { BookingService } from '@openbooking-sh/core';
import { StripePayments } from '@openbooking-sh/payments-stripe';

const service = new BookingService({
  provider,
  payments: new StripePayments({
    secretKey: process.env.STRIPE_SECRET_KEY!,
    successUrl: 'https://example.com/booked',
    cancelUrl: 'https://example.com/book',
  }),
});

Learn more #

Apache-2.0

This page is generated from packages/payments-stripe/README.md in the open-source repository. To fix something, change it there.