Booking System - Book a ticket after the payment is validated

Hi y’all,
Hope you’re doing well. I need help please.

The user enters: The passenger, the person who pays(the customer) and the payment method.
The payment method is mobile money, so the user chooses the payment method, enter the phone number and submit. when the payment is validated on his mobile, his ticket is reserved.

How will you handle it? please