Creating Products
#
Creating ProductsOnce you create your products through the Appmate Web Console, they will be synced to Play Store and App Gallery syncronously.


#
Real-time Developer NotificationTo enable Subscriptions on GMS, you must enable real-time developer notifications on Google Play Developer Console. You can follow the steps below to set perform this operation.
#
1. Create Topic- Open https://console.cloud.google.com/ and select project.
- From the left menu select Big Data -> Pub/Sub -> Topic.
- Click "CREATE TOPIC" and set an id for the topic.
- Uncheck "Add a default subscription" if checked.
- Create topic.
- Copy the created topic name.

#
2. Grant Publish Rights- Find newly created topic from the list and select "View permissions" from actions.
- Add the service account "google-play-developer-notifications@system.gserviceaccount.com".
- Grant it the role of Pub/Sub Publisher.
- Save the settings.

#
3. Create Subscription- Select Subscription from the left menu.
- Click "CREATE SUBSCRIPTION" and set an id for the subscription.
- Select the created topic at section 1.
- Set "Push" as "Delivery type".
- Set "Endpoint URL" as "https://appmate.tech/api/iap/notification/google".
- Set "Never expire" for Expiration period and create subscription.

#
4. Monetization setup- Open https://play.google.com/console and select project.
- From the left menu select Monetize -> Monetization setup.
- Set Topic name as the copied topic name at section 1.
- Is is mandatory to "Send test notification".

#
Subscription notification URLTo enable Subscriptions on HMS, you must set Subscription notification URL on Huawei Developer Console. You can follow the steps below to set perform this operation.
- Open https://developer.huawei.com/consumer/en/console.
- Select AppGallery Connect -> My Projects.
- From the left menu select Earn -> In-App Purchases.
- Click "Settings" if IAP is not enabled already.
- Set Subscription notification URL as "https://appmate.tech/api/iap/notification/huawei".
- Copy Public key and paste to Huawei AppGallery configuration on appmate console.
