Skip to main content

Plan

Create and manage recurring billing plans via $paystack->plan.

Create a Plan​

Define a new billing plan that customers can be subscribed to at fixed intervals.

$response = $paystack->plan->create([
'name' => 'Monthly Pro Tier',
'interval' => 'monthly',
'amount' => 1000000, // NGN 10,000.00 in kobo
]);
ParameterTypeRequiredDescription
namestringYesName of the billing plan.
amountintYesAmount to charge in the lowest currency denomination (e.g., kobo).
intervalstringYesBilling frequency: daily, weekly, monthly, quarterly, biannually, or annually.
descriptionstringNoShort summary of what the plan covers.
invoice_limitintNoNumber of invoices to raise during the subscription lifecycle.

List Plans​

Retrieve all billing plans created on your Paystack integration.

$response = $paystack->plan->list([
'perPage' => 20,
'page' => 1,
]);

Fetch a Plan​

Retrieve details of a specific plan using its plan_code or numeric id.

$response = $paystack->plan->fetch('PLN_gx2wn530m0i3w3m');

Update a Plan​

Modify the details of an existing billing plan using its plan_code or numeric id.

$response = $paystack->plan->update('PLN_gx2wn530m0i3w3m', [
'name' => 'Updated Pro Tier',
'amount' => 1200000,
]);
Existing Plan Subscribers

Updating a plan's amount only applies to new subscriptions created after the update. Existing active subscriptions continue billing at their original subscribed rate.