Plan
class Plan extends Resource implements PlanInterface
Plans define the base price, currency, and billing cycle for subscriptions.
For example, you might have a $5/month plan that provides limited access to your products, and a $15/month plan that allows full access.
Traits
Properties
string | $id | A unique identifier for the resource. | from Resource |
protected mixed | $response | A response from Stripe. | from Resource |
Methods
You can create plans using the API, or in the Stripe Dashboard.
No description
Details
in Resource at line 29
string
getId()
Returns the unique identifier for this resource.
in Resource at line 39
mixed
getResponse()
Returns the raw Stripe response.
in Resource at line 47
protected void
setProperties()
Set the response data as properties on the class.
in ListAll at line 21
ListAll
listAll(array $arguments = [])
List all the resources.
This will list all of the resources from which this trait belongs to. It will then return itself, so you can method chain it, or reuse the same instantiation.
in Delete at line 21
Delete
delete(string $id)
Delete a resource.
Delete a resource associated with the class this trait is being used. You must pass in the ID of the resource that you wish to delete. Then it will return the same instance of the class from which it was called.
at line 31
PlanInterface
create(array $arguments, string $key = null)
You can create plans using the API, or in the Stripe Dashboard.