Subscriptions and One-time with LemonSqueezy
products
method from the LemonSqueezyService
class to get the list of products. LemonSqueezyService
is a service class that contains all the methods to interact with the LemonSqueezy API.
$products
variable to cache the products.subscriptionCheckout
method.
It requires variant as parameters. The $product
is the product id from LemonSqueezy Store and $variant
is the variant id.
productCheckout
method.
It requires $variantId
parameter. The $variant
is the variant id in LemonSqueezy Store.