Subscription Contracts
For providers users
Subscription Contracts is the main contract that allow providers users to interact with the providers created app.
View Methods
isMySubscriber
Returns user subscription information for check if a specific address is a user of specific app.
Return values :
isSubscriber
True if user is a current subscriber of the app, false if not.
isTrialSubscriber
True if user is a trial subscriber of the app, false if not
paymentId
The id of the payment that is used in the subscription
subscriptionId
The subscription id
paymentDue
Returns subscription status
Return values :
isDue
True, if it is the time for user to pay, false if not.
isOver
True if the user has not paid and the subscription must be stopped.
Write Methods
createSubscription
Subscribe to an app
cancelSubscription
Stop subscription
processSubscription
Restart subscription if stopped.
renewSubscription
Renewal of the subscription if it has expired.
migrateToNewPayment
Migrate existing subscripiton to a new payment
refundSubscription
Pay subscription all at once
Events & ABI
Last updated