Purchasely
2.8
2.8
  • Welcome page
  • General
    • Presentation
  • Quick test
    • Test in 5 minutes
  • Basic configuration
    • Console Configuration
      • Creating a new application
      • Creating your Products
        • App Store
        • Play Store
        • Huawei App Gallery
        • Amazon App Store
        • Products & Plans
      • Design your Paywalls
    • SDK installation
      • iOS SDK
      • Android SDK
      • React Native SDK
      • Cordova SDK
    • SDK configuration
    • Webhook
      • Receiving and understanding messages
      • Managing entitlements
      • Subscription events
      • Events attributes
      • Detailed sequence diagrams
    • Observer mode
  • Dashboards
    • Introduction
    • Live
    • Subscriptions
    • Cohorts
    • Trials
    • Events
  • S2S notifications
    • Server-to-server notifications ?
    • App Store
    • Play Store
    • Huawei App Gallery
    • Amazon App Store
  • Integrations
    • Airship
    • Amplitude
    • Braze
    • Firebase
  • Advanced Features
    • Anonymous user
    • Associating content
    • Customising UI
      • Errors & alerts
      • Controllers (iOS) / Fragments (Android)
    • Deeplinks automations
    • Displaying users subscriptions
    • UI Analytics
    • Localization
    • Non-subscription products
    • Promoting your products
      • Self-promotion
      • Promoting In-App Purchases
    • Purchase interceptor
    • Purchase manually
    • Subscription status
    • Paywall Guidelines
  • Others
    • Frequently Asked Questions
    • Migration guides
      • Migrate to Purchasely
      • SDK
        • v2.1.3
        • v2.2.0
      • Webhooks
        • v3.0
  • TESTING
    • Testing Cycle Durations
Powered by GitBook

© Purchasely 2020-2023

On this page
  • Login to the console
  • Creating a new App
  • Configuring the Apple App Store parameters
  • App bundle id
  • Shared App Secret
  • Configuring the Google Play Store parameters
  • Android App Bundle ID
  • Acces Key (JSON)
  • Configuring Huawei AppGallery parameters
  • Huawei App Package ID
  • App ID
  • App secret
  • Public key
  • Configuring Amazon App Store parameters
  • App SKU
  • Shared Key

Was this helpful?

  1. Basic configuration
  2. Console Configuration

Creating a new application

PreviousConsole ConfigurationNextCreating your Products

Last updated 3 years ago

Was this helpful?

Login to the console

Go to with your credentials.

Creating a new App

To create a new app, click on the Add new application in the drop down menu of the top-left corner

If you have 2 different environments (e.g. : staging & production), you should create 2 different Applications in the Purchasely Console and use 2 different API keys

We advise you to start creating a staging application first (i.e. a mobile application plugged to a staging environment) to perform your first tests.

This new application must be configured with a set of parameters among 3 different stages. All these parameters can be modified after the application has been created.

1. Create a new application

The mandatory parameters are :

  • Name * : the name of the application as it will be display in the Purchasely Console

  • The default langage * : this will define which language shall be used when the language on a user device is not supported by the application

2. Plug it with .the stores

You can add up to 4 different stores. Each store step by step configuration is explained below, in dedicated sections.

3. Plug it with your backend

In this section, you can plug the Purchasely Cloud Platform with your own backend through a server-to-server integration. This will allow to have your backend notified through a webhook, when a subscription event is received from the stores.

This allows your app to open accesses to the relevant features & contents when a user purchases a specific product or subscription... ... and to close the accesses when the user subscription is expired or the when the user gets refund. Opening / closing accesses and managing entitlements is the responsibility of your own backend.

Fill in the Client webhook URL with the endpoint URL on your own backend where you want to receive the subscription events.

This value will simulate a HTTP 200 response code allowing the Purchasely Cloud Platform to consider that the new subscription has been duly acknowledged by the Client Backend.

Every message send by Purchasely in the webhook is signed using a Client shared secret.

Configuring the Apple App Store parameters

App bundle id

The Bundle ID is used by Purchasely Cloud Platform to validate that receipts are indeed coming from your app

Get the value of the Bundle ID field in App Store Connect App Store Connect > My Apps > [YOUR APP] > General > App Information

The value of the Bundle ID should be reported in the field App Package in the Purchasely Console Purchasely > Mobile Applications > [YOUR APPLICATION] > Edit Mobile Application > iOS configuration

Shared App Secret

The Shared App Secret is used by Purchasely Cloud Platform and required to validate receipts for this specific app

Get the value of the App-Specific Shared Secret field in App Store Connect App Store Connect > My Apps > [YOUR APP] > In-App Purchases > Manage > App-Specific Shared Secret

The value of the App-Specific Shared Secret should be reported in the field Shared App Secret in your Purchasely console

The last field Server-to-server endpoint is not mandatory. It is used to activate the real-time server-to-server notifications coming from the App Store.

Configuring the Google Play Store parameters

Android App Bundle ID

The Bundle ID is used by Purchasely Backend to validate that receipts are indeed coming from your app

Get the value of the Package ID of your App in Googe Play Google Play Console > [YOUR APP] > (i)

The value of the Package ID should be reported in the field App bundle id in your Purchasely console

Acces Key (JSON)

This access key is mandatory to allow Purchasely Cloud Platform to decode Play Store receipts / token

Create a new Service Account

Before creating the service account, make sure that the relevant Organisation is selected. The drop down menu in the upper left corner of the screen shall match the Organisation in your Google Play Console

  • Name your account Purchasely to be able to easily identify it later

  • Give it the ID purchasely

  • On the following screen, set the role to "Owner"

  • On the following screen, create a key by clicking on the + Create a key button

  • Choose JSON format

  • Save the file on your computer, you will need to upload it later in your Purchasely Console

Grant API Access to the new Service Account

Grant the access to the Service Account under the Google Play Console Google Play Console > Developer Account > API Access > [PURCHASELY SERVICE ACCOUNT] > Grant authorisation

The Organisation should match the one you chose under the Google Cloud Platform console

  • Set "no expiration date"

  • App permissions - Select the application corresponding to the app bundle id

  • Account permissions - Ensure the following permissions are selected :

Upload the JSON content

Upload the JSON key under your Purchasely console in the field Access key (JSON)

Configuring Huawei AppGallery parameters

Huawei App Package ID

The Package name is used by Purchasely Cloud Platform to validate the authenticity of the receipts.

  1. Get the value of the Package name

The value of the Package name should be reported in the field Huawei App package id in your Purchasely console

App ID

The App ID is used by Purchasely Cloud Platform to validate the authenticity of the receipts.

Same procedure as "App Package Id", with the App ID property which must be put under App id in the Purchasely Console (Purchasely > Mobile Applications > [YOUR APPLICATION] > Huawei configuration)

App secret

The App secret is used by Purchasely Cloud Platform to validate the authenticity of the receipts.

Same procedure as "App Package Id", with the App secret property which must be put under App secret in the Purchasely Console (Purchasely > Mobile Applications > [YOUR APPLICATION] > Huawei configuration)

Public key

The public key is used by Purchasely Cloud Platform to validate the authenticity of the receipts.

  1. In the "All services" menu on top, search for "In-App Purchases" and click on it

  2. Get the Public key property

  1. Fill in this value under "In-App Purchases" public key in the Purchasely Console (Purchasely > Mobile Applications > [YOUR APPLICATION] > Huawei configuration)

Configuring Amazon App Store parameters

App SKU

The Package name is used by Purchasely Cloud Platform to validate the authenticity of the receipts.

  1. Select App List

  2. Select your app

  3. Get the value of the App SKU

The value of the App SKU should be reported in the field Amazon App SKU in your Purchasely console.

Shared Key

These credentials are provided to you by the Purchasely Team. If you want to have your credentials created, just contact us at

If your Client Webhook is not ready when you make your configuration, we advise you to use the following value:

Refer to to know more.

Refer to for more information.

Create a dedicated Service Account under Google Cloud Platform > IAM & admin > Service Account > Create a new Service Account

Open your

Go to: > > [YOUR APPLICATION]

Open your

Go to: > > [YOUR APPLICATION]

Open the

You need to give us your Amazon App Store shared Key. You can find it .

hello@purchasely.com
https://httpstat.us/200
Server-to-server notifications documentation
Google Cloud Platform Console
https://console.cloud.google.com
AppGallery Console
AppGallery Connect
My Apps
AppGallery Console
AppGallery Connect
My Apps
Amazon App Store dashboard
here
Apple App Store
Google Play Store
Huawei AppGallery
Amazon App Store
Purchasely console
Webhook documentation