Performs a checkout on reserved tickets.
Migration Instructions
To stay compatible with future changes, migrate to
checkout().
To migrate to the new method:
Add a backend file to your site.
Write a code so that it replaces the checkout() method from the frontend with the checkout() method from the backend. Export your backend function so that it can be used in the frontend.
Import your backend function into the frontend file. Test your changes to make sure your code behaves as expected.
To checkout tickets, you must first call reserve() to reserve the tickets.
Use the returned order to process payment for the tickets by passing the order's
paymentId to startPayment(). Note that
since the order has a paymentId, you don't need to first call createPayment() to create a payment.
Before using startPayment(), you will need to set up a site to
accept payments. To learn more, see Accepting Payments: An Overview.
When setting up a site to accept payments, be sure to select the payment
methods to offer and set the payment currency.
Notes:
ID of the event that the ticket reservations are for.
ID of the ticket reservations.
Information related to the checkout.
This method doesn't return any custom errors, but may return standard errors. Learn more about standard Wix errors.