Create Plan
1 | create_plan(authorization, ...)
|
authorization |
set_keys("", "SECRET_KEY")$secret, equivalent of "-H Authorization: Bearer SECRET_kEY" |
... |
Body Params |
amount |
int32. REQUIRED Amount to be charged in kobo |
interval |
string. REQUIRED Interval in words. Valid intervals are hourly, daily, weekly, monthly,biannually, annually. |
name |
string. REQUIRED Name of plan |
description |
string. Short description of plan |
send_invoices |
boolean. Set to false if you don't want invoices to be sent to your customers |
send_sms |
boolean. Set to false if you don't want text messages to be sent to your customers |
currency |
string. Currency in which amount is set |
invoice_limit |
int32. Number of invoices to raise during subscription to this plan. Can be overridden by specifying an invoice_limit while subscribing. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.