1.1.0 • Published 3 years ago

strapi-plugin-membership-light v1.1.0

Weekly downloads
11
License
MIT
Repository
-
Last release
3 years ago

Strapi plugin strapi-plugin-membership-light

Use this plugin to integrate a membership system on your products into your ecommerce website

Installation

npm i strapi-plugin-membership-light

Once installed you have to update content-type Users by adding a relationship many-to-many with the model products of the plugin.

Retrieve the products for a user

MethodUrlDescription
GET/membership-light/productsReturns the list of products, if the product has not been bought the link will be censured

Unlock a product after payment

await strapi.plugins['membership-light'].services.product.unlockProduct(user, productId)

Functions

unlockProduct

After verifying the payment you can call this function to unlock the product for the user. | Parameter | Description | |-----------|-----------------------| | number | Id for the user | | number | Id for the product |

1.1.0

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago