Skip to main content

Getting started

Prerequisites

Integration with Suberra involves the following:

  1. Creating a product subscriptions contract that would keep track of product and prices
  2. Set up access controls by checking if a user has valid access to the product subscriptions

There are two ways of integration:

  1. Direct on-chain query
  2. Webhooks

Direct on-chain query

This option is more suitable for developers who wants to use the automation and subscription storage on Suberra without going through Suberra's centralised Webhook services.

Information about the membership is stored as a Proof-of-Membership. The contract interfaces are similar to a standard ERC-721 contract.

Webhooks

Some merchants might require a more complicated event handling mechanism that cannot be done directly on-chain. For example, a merchant might want to receive real-time requests whenever a customer subscribes to the platform so that it can modify its own customer database and send a welcome email.

Suberra operates off-chain servers that provide webhook events for this integration method. For a comprehensive list of webhooks that we fire, as well as an onboarding process please follow the webhooks guide.