Paid version of app connected to in app subscription, Ionic v5

I have a free version of app with in app purchase using @ionic-native/in-app-purchase-2/ngx. The ‘free’ version has monthly and yearly auto-renewal subscription options for full access.

I am now looking into publishing the same app as a paid version but with all features open for a year. Essentially the same as a yearly subscription in the free app. After the year, the user would need to subscribe to a monthly/yearly subscription.

Is there a way to connect the prepaid app to for example a non-renewable subscription with in-app-purchase-2?

I am also interested in how this would be accomplished.