Shows a dialog for purchasing a subscription to periodic game bonuses or service. For a purchase to be successful game’s callback service must process and verify our callback request.
If user has successfully purchased a subscription, he will be charged for a selected amount of OKs each subscription period. Period and subscription cost can be configured for every subscription.
To show a subscription window you need to pass two parameters:
|price||Yes||Integer||Subscription cost. Selected amount of OKs will be charged from user every subscription period|
To enable in-game subscription for your application you need to register it in OK.ru first.
To add a subscription please write an e-mail to firstname.lastname@example.org with following data:
|Trial period duration||Duration of a trial period. On trial period subscription is free for user||Days, hours, minutes|
|Period duration||Subscription period. Every set amount of time user is charged for selected amount of OKs||Days, hours, minutes|
|Price||Single period price.||OKs|
|Subscription icon||Subscription image URL. Image’s size must be 256x256|
|product id||String identifier of a subscription|
|Name||Subscription name. Must have a size of 1 to 3 words.|
|Description||Short subscription description. It must describe what user is purchasing with corresponding subscription|