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
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:
- Sign up or log in to your Stripe account
- Give it your business info
- Click on Developers (top-right)
- Switch on the Test mode (top-right)
- Click on the API keys tab
- You're now ready to copy-paste the "Publishable key" and the "Secret key"
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
- Complete your business profile
- Select a payment gateway
- Create a catalog
- Create one or several products (no spaces or hyphens in the name field)
- Create one or several plans (no spaces or hyphens in the name field)
- Publish your catalog
- Edit your email templates
- Edit your invoice template
- 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
Latest update: January 22, 2024