Stripe.Plans
Basic List, Create, Delete API for Plans
Summary
Functions
Changes Plan information. See Stripe docs as to what you can change
Creates a Plan. Note that currency
and interval
are required parameters, and are defaulted to “USD” and “month”
Deletes a Plan with the specified ID
Returns a list of Plans
Functions
Changes Plan information. See Stripe docs as to what you can change.
Example
{:ok, plan} = Stripe.Plans.change("test-plan",[name: "Other Plan"])
Creates a Plan. Note that currency
and interval
are required parameters, and are defaulted to “USD” and “month”
Example
{:ok, plan} = Stripe.Plans.create [id: "test-plan", name: "Test Plan", amount: 1000, interval: "month"]
Deletes a Plan with the specified ID.
Example
{:ok, res} = Stripe.Plans.delete "test-plan"