17.3 Code Setup for Subscriptions

Make sure you have completed all of the previous steps of 17, 17.1 & 17.2.

Go to the lib/iAP/iap_config.dart file and add your Product IDs here separated with commas as shown in the picture below.

After that set the iAPEnaled value to true.

That's it. Your subscription setup is completed. Now, you can test the app and the products and publish your app in production by uploading a new version.

To test the In-App Purchases feature, use a real Android or iOS phone. Emulators/Simulators won't support this.

Last updated