Reserves tickets for an event.
Migration Instructions
To stay compatible with future changes, migrate to
createTicketReservation()
.
To migrate to the new method:
Add a backend file to your site.
Write a code so that it replaces the reserve()
method from the frontend with the createTicketReservation()
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.
Retrieve ticket IDs to specify which tickets to reserve from the Events/Tickets collection. Each ticket must have a unique ID.
Notes:
ID of the event to reserve tickets for.
Tickets to reserve.