Forum Academy Marketplace Showcase Pricing Features

Subscription for 10 Appointments

I am trying to make a Zocdoc alike app. I know all required workflows. However, I would like to create a workflow where Patients can only apply for appointment once they pay my app certain money in exchange for 10 Appointments. If they don’t subscribe to 10 Appointments in advance, they shall be able to do every thing except (searching Doctors, looking at their schedule) but won’t be able to click button for appointment.

I can then transfer money to each doctor looking at how much appointments they have given.

How to do it? Any suggestions? or any course some one can recommend?