Subscriptions
Información general
With subscriptions, you can provide users with access to a package of services under specified conditions. The subscription management solution is based on the Subscription product.
Subscription plans vary in duration and payment terms. The following types of plans are available:
- Regular plan with regular payments.
- Lifetime plan with a one-time payment and an unlimited period of validity.
- Season pass with a one-time payment and a limited period of validity.
Subscription management (for example, creating and configuring plans, setting up a trial period, setting up a grace period for a subscription) is performed in Publisher Account in the Subscriptions section.
In your application, you need to implement purchase and management of subscriptions using SDK methods.
Escenario de compra de suscripción
- The application requests a list of available plans using the following SDK methods:
GetSubscriptionPublicPlans
— returns a list of plans available to unauthorized users.GetSubscriptionPlans
— returns a list of plans available to authorized users.
- The application displays subscription plans to the user.
- The user selects a plan and proceeds to the payment stage.
- The application receives the URL to open the payment interface using the
GetSubscriptionPurchaseUrl
method. - The application opens the received URL in a browser.
- The user pays for the subscription.
Escenario de gestión de suscripciones
- The application requests a list of the user’s subscriptions using the
GetSubscriptions
method. - The application requests detailed information about each user’s subscription using the
GetSubscriptionDetails
method (optional). - The application displays a list of subscriptions to the user.
- The user selects a subscription and the action he wants to perform — cancel, open a web page to renew, or manage subscriptions.
- The application calls one of the following methods to handle the action:
CancelSubscription
— to cancel the selected subscriptionGetSubscriptionRenewalUrl
— to get the URL of the renewal interface for the selected subscriptionGetSubscriptionManagementUrl
— to get the URL of the management interface for the selected subscription
- The application opens the received URL in a browser.
- The user performs an action on a subscription.
CancelSubscription
method — steps 6 and 7 are not performed.¿Has encontrado una errata u otro error de texto? Selecciona el texto y pulsa Ctrl+Intro.