Purchasely
Rechercher…
Transaction only mode
This mode is made to use Purchasely only for payment processing.

When to use it?

In this mode, Purchasely provides the backend and infrastructure to process transaction and plug to the stores easily.
It is meant for you in one of the following situations:
  • you want to deploy new app stores
  • you want to integrate app stores server to server notifications without needing to develop store specific code
  • you have an old transaction stack that you cannot maintain or need to deprecate
  • you want to benefit of the latest stores features without needing to implement them
  • you are starting with subscriptions but you want to keep the hand on your paywalls

What you can do in this mode?

In this mode, you will be building your own paywalls manually and will use the low-level API of the Purchasely SDK.
Purchasley offers several methods to get products, get prices and perform purchases within your own paywalls.
In this mode, Purchasely will:
  • validate the transactions
  • block every paywall display (including deeplinks)

General flow

Implementation plan

1- Start the SDK

The first thing you need to do is to call the start method passing the mode transactionOnly / PLYRunningModeTransactionOnly . View implementation details

2- Set user identifier

We need to know whenever a user is logged in or logged out to:
  • Associate the purchases to the correct user
  • Associate events to the correct user

3- Make purchases

In transactionOnly mode you handle the paywall display with your own code and Purchasely handles the purchases. You will need Purchasely to:
  • Get a product and a plan, can be used to display product names and pricing
  • Purchase a product
  • Restore all products

4- Save/Verify user subscriptions

Purchases can be performed without any paywall involved. This is what happens for kids with ask-to-buy or with PSD2 flows.
In these cases your app is notified by the SDK and you must unlock the content / service.
After the initial purchase you will want to check the status. To do so you can use one of the following options:

5- Migrate your existing subscriber base (optional)

If your app already has subscribers, you must migrate them to Purchasely to:
  • Have complete dashboards including every subscriber acquired in the past
  • Handle status using the userSubscriptions
Follow this guide to import your subscribers to Purchasely.
Copier le lien
Éditer sur GitHub
Sommaire
When to use it?
What you can do in this mode?
General flow
Implementation plan
1- Start the SDK
2- Set user identifier
3- Make purchases
4- Save/Verify user subscriptions
5- Migrate your existing subscriber base (optional)