Performs a checkout on reserved tickets.
The checkout()
function returns a Promise that resolves to a
CheckoutResponse
when the ticket reservation
has been checked out.
To checkout tickets, you must first call the reserve()
function
to reserve the tickets.
Use the returned order
to process payment for the tickets by passing the order
's
paymentId
to the startPayment()
function. Note that
since the order
has a paymentId
, you do not need to first call createPayment()
to create a payment.
Before using the startPayment() function, you will need to set up your site to accept payments. To learn more, see About Accepting Payments. When setting up your site to accept payments, be sure to select the payment methods you want to offer and set your payment currency.
Notes:
ID of the event that the ticket reservations are for.
ID of the ticket reservations.
Information related to the checkout.