We have managed In-App purchases for iOS and Android with “in_app_purchase” library. This library enables us to manage In-App purchases smoothly for both Android and iOS.
Configuring IAPs For iOS on App Store Connect.
To accept auto-renew subscriptions in ur app first, you have to log in to App Store Connect -> Agreements, Tax and Banking