Skip to main content

createPaymentIntentForBooking

Creates a Stripe PaymentIntent for an existing booking so the partner can confirm payment in the browser. The booking must belong to the authenticated practice and have a payable price on its booking type product.

createPaymentIntentForBooking(
bookingId: ID!
storeCardDetails: Boolean
): CreatePaymentIntentForBookingPayload

Arguments​

createPaymentIntentForBooking.bookingId ● ID! non-null scalar​

createPaymentIntentForBooking.storeCardDetails ● Boolean scalar​

Set to true to save the successfully used card for future payments. When false or omitted, the card is not saved. The implementor is responsible for ensuring the cardholder has given explicit consent for card details to be stored and used for future payments.

Type​

CreatePaymentIntentForBookingPayload object​

Stripe PaymentIntent details for confirming a booking payment on the client.