To test your subscriptions you don't need to make real purchases. You can make sure your subscription has been implemented correctly by using sandbox user account provided by Apple.
You can create a Test Account on AppStoreConnect → Users and Access → Sandbox Testers
For more information about how to add, edit or delete a sandbox user account please check this Apple guide and Setting up Test Accounts for Testing In App Purchase
Apple will shorted the subscription duration while in Sandbox so that you can easly test the subscriptions renewals and expirations.
From iOS 12 you can add a sandbox user account and you do not need to logout your main user from the app store.
You can set the sandbox user at
Settings → App Store → Sandbox Account
Sometimes the Sandbox Account is not visible. If that happens on your device run your sandbox application and try to make a purchase.
When the purchase page appear go to
Settings → App Store → Sandbox Accountand add your account.
Updated 20 days ago