Skip to main content

Configure the SMP

The Arthera SMP (Subcription Management Platform) is a service that allows you to configure and manage the subscriptions you want to offer to your users.

You can create an account here: https://smp-test.arthera.net

Requirements

Payment gateway setup

info

Payments in crypto will be supported in the near future thanks to our partner Rampnalysis

As of now, the SMP only supports Stripe as a payment gateway. So to test the SMP, you will need to setup a Stripe account:

Configure your subscription

The SMP is currently in beta, so there's a 'happy path' to follow if you want to test it successfully.

Steps to follow

  1. Complete your business profile
  2. Select a payment gateway
  3. Create a catalog
  4. Create one or several products (no spaces or hyphens in the name field)
  5. Create one or several plans (no spaces or hyphens in the name field)
  6. Publish your catalog
  7. Edit your email templates
  8. Edit your invoice template
  9. Get your checkout link (if you click on 'Generate new link', it will deactivate the previous one)

Integration

You can now paste the checkout link into your app; your users will be redirected to the payment page. Once they're done, they will be redirected to the "Success URL" you indicated in the Checkout page (in the SMP).

Test

Please note that, when you test the checkout process, you need to connect to a wallet that is different from the subscription owner wallet.

You can use the following VISA card account for testing (there are other test credit cards numbers available here):

  • 4242424242424242

Now fill out the checkout form with any future date for the expiration, any CVC number, and any name. After this, you will be redirected to the success page.

On-chain subscriptions (optional)

The SMP allows you to manage the subscriptions of your on-chain app users.

To activate this feature, you need to add a few lines of code in your Solidity contract. Please follow this tutorial (also available as a dev.to post).

Then, in the SMP, you want to do the following:

  • Go to the On-Chain section in the left menu
  • Connect your MetaMask wallet with the subscription owner wallet address (typically the wallet that deployed the Solidity contract)
  • Paste the address of your Solidity contract

info

Latest update: January 22, 2024