Card inline
Collect the card in your own form and send it with the booking. No payment_collection field is needed.
The payment object
Every vertical takes the same paymentobject. The customer stays in your app: your form collects the card and your backend sends it to Ophelia, which types it into the provider's real checkout.
Field rules
All values are strings. Dining and hotels need only the card itself; fitness and entertainment also need the billing address.
card_numberexp_month"01" to "12".exp_year"2027".postal_codeaddress_line1city, state and country: required for fitness and entertainment.4111111111111111 is a placeholder that a real provider declines (card_declined). To try the flow, use the practice venues and their test cards.
Dining
Send metadata.payment on POST /v1/bookings when the slot's terms.card_required is true; a slot that says false books without one. Without a needed card, OpenTable fails with missing_card and Resy with card_required. The card is only entered when the venue's form asks for it to hold the table, and Ophelia never charges it. See Restaurant terms.
Fitness
Send metadata.payment on POST /v1/bookings. Mindbody charges it up front and needs the full billing address: without state or country the booking fails with missing_billing_fields. metadata.password is optional; without it Mindbody sends the member a code.
Entertainment
StubHub guest checkout asks for a verification code first (otp), then for the card (payment). Send the card up front in metadata.payment and the card step is answered from it, or send a top-level payment to /continue when the card step comes back. A re-prompt for a corrected card still comes back to you, so always branch on next_action.type.
Hotels
A card in metadata.payment on POST /v1/bookings places the reservation and charges the full total in that call; add metadata.confirm: false to stop before the charge. Without one, the booking returns next_action.type: "payment": send the flat card fields to /continue, with "confirm": true to place it in the same call. See Hotels.
Flights
Flights take their own card shape, card on /continue, and nothing is bought until confirm: true. See Flights.
Security
Card data is encrypted in transit, sent only to the provider to complete the booking, and removed from the stored booking, from logs and from every response.