Monetisation Starter
If you are using Git as command tool :
git clone https://github.com/cloud-apim/serverless-monetisation-starter.git
You can clone or fork it from the official Cloud-APIM Monetisation Starterrepository from Github.
Here is the default portal you can use :
{
"title": "Monetisation Demo Portal",
"enabled": true,
"auth": true,
"examples": true,
"icon": "https://www.cloud-apim.com/assets/logo/made-with-cloud-apim-inverted.png",
"path": "/docs",
"max_user_created_apikeys": 10,
"monetisation": {
"enabled": true,
"provider": "stripe",
"config": {
"pub_key": "${environment.STRIPE_PUB_KEY}",
"secret_key": "${environment.STRIPE_SECRET_KEY}",
"pricing_table_id": "${environment.STRIPE_PRICING_TABLE_ID}"
}
},
"plans": [
{
"id": "free",
"name": "Free Plan",
"daily": 25,
"default": true,
"monthly": 500,
"throttling": 5,
"description": "A plan to test the api",
"stripe_plan_id": "${environment.STRIPE_FREE_PLAN}"
},
{
"id": "silver",
"name": "Silver Plan",
"daily": 200,
"default": false,
"monthly": 500,
"throttling": 15,
"description": "A silver plan",
"stripe_plan_id": "${environment.STRIPE_SILVER_PLAN}"
},
{
"id": "gold",
"name": "Gold Plan",
"daily": 500,
"default": false,
"monthly": 12500,
"throttling": 50,
"description": "A gold plan",
"stripe_plan_id": "${environment.STRIPE_GOLD_PLAN}"
}
]
}