listPublicPlans( )


Lists public pricing plans.

The listPublicPlans() function returns a Promise that resolves to a list of up to 100 public pricing plans.

Public plans are visible plans that site visitors can see on the site and purchase.

You do not need "Manage Pricing Plans" permissions to list public plans.

Method Declaration
Copy
Method Parameters
planIdsArray<string>

IDs of public plans to list. You can pass a maximum of 50 IDs. If not specified, all public plans are listed (up to 50), according to the order displayed in the Dashboard. If non-existent IDs are specified, they are ignored and do not cause errors.


optionsListPublicPlanOptions

Options to use when getting the list of public plans.

Returns
Return Type:Promise<Array<PublicPlans>>
Was this helpful?
Yes
No