Content subscriptions
On TON blockchain you can process recurring payments on-chain via smart contracts. For example, users can subscribe to digital content (or anything else) and be charged a monthly fee of 1 Toncoin. This feature requires Wallet v4 which supports plugins.
Upon installation of subscription plugin, it can transfer Toncoin without further user confirmation. Do your own research before authorizing unknown subscriptions. Users cannot have a subscription installed without their knowledge.
Example flow
A subscription plugin requires authorization only once, which is sufficient to perform further transfers without confirmation.
-
Users with Wallet v4 can install additional smart contracts (plugins) to extend wallet functionality.
-
After reviewing plugin functionality, users can approve trusted smart contract (plugin) addresses for their wallet. After approval, trusted smart contracts can withdraw Toncoin from the wallet. This is similar to infinite approval in some other blockchains.
-
An intermediate subscription smart contract, deployed as a wallet plugin, sits between each user and the service.
-
This smart contract guarantees that a specified amount of Toncoin will be debited from a user's wallet at most once per specified period.
-
The backend initiates a charge by sending an external message to the user’s subscription smart contract.
-
Either the user or the service can decide they no longer need a subscription and terminate it.
Smart contract examples
Implementation
A good example is Toncoin-powered subscriptions to private Telegram channels via the @donate bot and the Tonkeeper wallet.