OpheliaDocs
Search docs⌘K
DashboardCreate an account
Payments

Payment collection

Four ways to collect payment for a booking.

A card is sent as one canonical payment object, the same shape in every vertical. Fitness, entertainment and hotels complete a real, paid checkout with it. Dining only enters it when the slot's terms.card_required is true, to hold the table, and Ophelia never charges it.

json
"payment": {
"card_number": "4111111111111111",
"exp_month": "12",
"exp_year": "2027",
"cvv": "123",
"name_on_card": "Jane Smith",
"address_line1": "123 Market St",
"city": "San Francisco",
"state": "CA",
"postal_code": "94103",
"country": "US"
}

Fitness and entertainment need the full billing address; for fitness, a card without state or country fails with missing_billing_fields. Dining and hotels need only card_number, exp_month, exp_year, cvv, name_on_card and postal_code. Flights take their own card shape; see the Flights page.

Use one of them per booking: never send a card together with a payment_collection (flights refuse a card sent with "link"). A booking that needs a card and has neither fails with missing_card (Resy: card_required). Card fields are removed from the stored booking, from logs and from every response.