In-app Purchase Flow For The Monetization Of Apps - Teams
Maybe your like
In-app purchases are upgrade options where users can upgrade from free to paid plans within your app. Microsoft Teams provides APIs to implement in-app purchases. The in-app purchase option is applicable only if the app is enabled with a transactable SaaS offer.
Users can buy new paid subscriptions through in-app purchases. However, they can't purchase additional or different licenses with existing paid subscriptions. To change plans, users must first cancel their current subscription before acquiring a new plan through in-app purchase.
Note
In-app purchases are supported only in personal app contexts.
Implement in-app purchases
To facilitate an in-app purchase experience for your app users, ensure the following prerequisites are met:
The app is built using Microsoft Teams JavaScript client library (TeamsJS).
The app is enabled with a transactable SaaS offer.
The app is enabled with RSC permissions.
The app is invoked with openPurchaseExperience API.
Activate in-app purchase
You can activate the in-app purchase experience through one of the following ways:
Update from Developer Portal
- In Teams Developer Portal, go to Permissions.
- Enable Show in-app purchase offers.
Update manifest
To enable the in-app purchase experience, update your Teams app manifest.json file by adding the RSC permissions. It allows your app users to upgrade to a paid version of your app and access new features. Update the app manifest as given in the following code snippet:
"authorization": { "permissions": { "resourceSpecific": [ { "name": "InAppPurchase.Allow.User", "type": "Delegated" } ] } }Purchase Experience API
To trigger in-app purchase for the app, invoke the openPurchaseExperience API from your web app. The following code snippet is an example of calling the API from the Teams app built using TeamsJS:
- TeamsJS V2
- TeamsJS v1
See also
- Monetize your app
- App manifest
Tag » How To Allow In App Purchases
-
Prevent In-app Purchases From The App Store - Apple Support
-
Manage App Store Purchases, Subscriptions, Settings, And ...
-
How To Enable Or Disable In-app Purchases On IPhone Or Android
-
Enable In-App Purchase For IOS Device | Help & Support
-
How To Enable In App Purchases On IPhone Or IPad - YouTube
-
Fix For "In-app Purchases Are Not Allowed” Message On IPhone
-
Preventing And Managing In-app Purchases | Supercell Support Portal
-
IPhone & IPad: Fix "In-app Purchases Are Not Allowed" Message
-
How To Allow In-App Purchases On IPhone - DeviceTests
-
I Receive The Error Message: "In App Purchases Not Allowed" When I ...
-
Restricting In-App Purchases (iOS) — Pikmin Bloom Help Center
-
How Do I Enable In App Purchases IOS?