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

change(id, params)

Changes Plan information. See Stripe docs as to what you can change.

Example

{:ok, plan} = Stripe.Plans.change("test-plan",[name: "Other Plan"])
create(params)

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"]
delete(id)

Deletes a Plan with the specified ID.

Example

{:ok, res} = Stripe.Plans.delete "test-plan"
list(limit \\ 10)

Returns a list of Plans.