My app got rejected and received following message from App store:
Upon further review, we found that your app does not comply with the following guidelines:
Guideline 3.1.1 - Business - Payments - In-App Purchase
Since some courses are pre-recorded, payment for those courses would require use of the in-app purchase API and the app should not redirect users to purchase those courses from your website.
To resolve this issue, please remove this feature from your app.