I have added the #paidplans app as one of my pages and successfully added some custom plans. However I would like to use the paid plans #corvid #API to trigger certain purchases. the paid plans documentation clearly states that I need the #planID as an argument to purchasePlan(). However, I cannot seem to find the planIDs for the plans I created in the manage plans section of the paidPlan app.
The documentation also shows that the plans are in the form of a collection but I cannot find this collection. should I create my own collection? if so how do I link it to the paid plans I created in the app?
Old post being closed.
You can find the users pricing plan from getPricingPlans function in Wix Users.
https://www.wix.com/corvid/reference/wix-users.User.html#getPricingPlans
Or you can get your pricing plan id from the Wix Paid Plans collection.
https://support.wix.com/en/article/corvid-wix-pricing-plans-paidplansplans-collection-fields
I have the same question! Where do I the id if my plans??
Paid Plans have their own support pages here.
https://support.wix.com/en/apps-made-by-wix/paid-plans
Have you read through all of this to find your answer first?
As for getting the users piad plan through code, then you can simply use Wix User to get their pricing plan.
https://www.wix.com/corvid/reference/wix-users.User.html