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);
$plan = $stripe->plans->getPlan("plan_id");
$stripe->plans->updatePlan("plan_id", "New plan name.");
$stripe->plans->deletePlan("plan_id");
$plans = $stripe->plans->listPlans();