> Portal Navigation: > > - Append `.md` to any URL under `https://dev.wix.com/docs/` to get its markdown version. > - Pages are either content pages (article or reference text) or menu pages (a list of links to child pages). > - To get a menu page, truncate any URL to a parent path and append `.md` (e.g. `https://dev.wix.com/docs/sdk.md`, `https://dev.wix.com/docs/sdk/core-modules.md`). > - Top-level index of all portals: https://dev.wix.com/docs/llms.txt > - Full concatenated docs: https://dev.wix.com/docs/llms-full.txt # Method name: sitePricingPlans.getPricingPageOptions() # Method Link: https://dev.wix.com/docs/sdk/frontend-modules/pricing-plans/custom-purchase-flow/get-pricing-page-options.md # Method Description: Returns the options set for the current Plans & Pricing page. `getPricingPageOptions()` retrieves the options set for the Plans & Pricing Page in `navigateToPricingPage()`. The returned `PricingPageOptions` object also includes any options set for the Checkout and Thank You pages. Call this method in the page code of a default or custom Plans & Pricing page. If you need to pass the returned pricing page options to `navigateToCheckout()` at a later point, store the options object globally so you can access it later. > **Note:** > + To work with the Pricing Plans API, a site needs to be published. # Method Permissions: # Method Permissions Scopes IDs: undefined # Method Code Examples: ## Set a button to return the Pricing Page options when clicked ```javascript import { customPurchaseFlow } from '@wix/site-pricing-plans'; $w('#myPricingPageOptionsButton').onClick(async () => { const pricingPageOptions = await customPurchaseFlow.getPricingPageOptions(); console.log(pricingPageOptions); }); ``` ## Get the Pricing Page options and pass to checkout ```javascript import { customPurchaseFlow } from '@wix/site-pricing-plans'; $w.onReady(() => { $w('#button').onClick(async () => { const pricingPageOptions = await customPurchaseFlow.getPricingPageOptions(); await customPurchaseFlow.navigateToCheckout({ planId: 'fedb93e3-623a-487b-a47d-499f48ee3c7d', ...pricingPageOptions, }); }); }); ```