Integration demoAlpine Escapes is a fictional travel shop. Test mode: no real money moves.

Alpine Escapes

Chalet › Guests › Payment

Complete your booking

Chalet Les Arolles · Val Thorens

7 nights · 4 guests · 3 bedrooms · ski-in/ski-out

Chalet Les Arolles, 7 nights
€1,050.00
Cleaning and bed linen
€90.00
Tourist tax (4 guests)
€60.00
Total
€1,200.00

Under the hood

The shop's backend really does this when you click the button. It uses a SplitPay test key; the key never reaches your browser.

1. Server: create the group payment

POST /api/v1/group-payments
Authorization: Bearer sp_test_…

{
  "reference": "AE-7K2P9Q",
  "amount": 120000,
  "currency": "EUR",
  "description": "Chalet Les Arolles · 7 nights",
  "participants": 4,
  "success_url": "…/integration-demo/booking/AE-7K2P9Q",
  "cancel_url": "…/integration-demo",
  "webhook_url": "…/api/integration-demo/webhook"
}

2. Redirect the customer

201 Created
{
  "id": "5d0c…",
  "status": "OPEN",
  "livemode": false,
  "checkout_url": "https://splitpay.pro/checkout/…"
}

3. Webhook: confirm the booking

POST /api/integration-demo/webhook
SplitPay-Event: group_payment.paid
SplitPay-Signature: t=…,v1=…

→ verify signature, then mark AE-7K2P9Q confirmed