If you have teachers or moderators that need to be paid for their work, you will manage this yourself, since you have full access to and control of the learner payments that come into your Stripe account.
When someone purchases a course through your Library, that payment will go directly to the one Stripe account that you have set up for your school. You will be able to collect the full payment for the course, and you can then separately pay the other teachers.
If your payment is based on registrations, you can decide to do this as soon as the registration happens, since you'll receive an email notification from Pathwright each time someone enrolls, or you can pay them at another set time.
Download the Registrations Report to see how many learners enrolled in a Group, so you can pay the teacher accordingly. You can also go directly to the Group to see how many learners are enrolled.