Plans

Create a plan

The createPlan() method takes a CreatePlanRequest object as its only parameter.

$request = $stripe->createPlanRequest("plan_name", 350, "usd", "month", "A new plan.");
$stripe->plans->createPlan($request);

Retrieve a plan

$plan = $stripe->plans->getPlan("plan_id");

Update a plan

$stripe->plans->updatePlan("plan_id", "New plan name.");

Delete a plan

$stripe->plans->deletePlan("plan_id");

List plans

$plans = $stripe->plans->listPlans();