I have a workflow that schedules an API when a user books an appointment. The API is to charge for the appointment at a later time (30 minutes after).
Within that time, I intend to give the client of the appointment the option to include a tip after the appointment is finished. As of now, they have a default tip option but I don’t want to limit or increase the professional user’s earnings depending on the service provided. So therefore I also want the client to have the option to add a one time tip for a specific appointment and not use the default tip.
My issue is that when the workflow runs, it records the data from the appointment at the time it was booked and not when the API is scheduled to run and charge the client. Therefore, it’s not calculating the tip that the client submitted after the appointment was booked. And I don’t want to run a separate workflow to charge the user for the tip because Stripe will take another fee.
Does anyone have an idea of how I can achieve this?
Thanks in advance.