> 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: getConfig() # Method package: wixPayments # Method menu location: wixPayments --> PaymentProvider --> getConfig # Method Link: https://dev.wix.com/docs/velo/events-service-plugins/payments/service-plugins/wix-payments/payment-provider/get-config.md # Method Description: Retrieves the configuration of your payment provider plugin. Set your payment provider configuration in the `return` of the `getConfig()` function. Wix calls this function when you publish your site. Changes to the configuration don't take effect until you publish your site. The object returned by `getConfig()` includes the information about your plugin that displays in your site's Connect, Accept Payments, and Checkout pages. ### Where to find `getConfig()` When you [add the Payment Provider service plugin](https://dev.wix.com/docs/develop-websites/articles/code-tutorials/wix-pay/tutorial-payment-provider-custom-extension.md#step-1-create-a-new-payment-provider-extension), a folder is automatically added to your site. Use the `-config.js` file in the folder to set the default configuration for your implementation of the custom plugin. For more information on setting your configuration, see [Tutorial: Payment Provider Service Plugin](https://dev.wix.com/docs/develop-websites/articles/code-tutorials/wix-pay/tutorial-payment-provider-custom-extension.md#my-extension-name-configjs). # Method Code Examples: *** Note: do not assume any prop names or enum values other than the ones in the example. ## Example of a configuration file ```javascript // Place this code in the -config.js file // in the 'payment-provider' folder of the // Service Plugins section on your site. export function getConfig() { return { title: 'Banana Payments', paymentMethods: [{ hostedPage: { title: 'Banana Payments', billingAddressMandatoryFields: ['CITY'], logos: { white: { svg: 'https://static.wixstatic.com/shapes/94b5e2_403ceb582027431cb92f38fd18d1843c.svg', png: 'https://freesvg.org/img/15930333081593032446pitr_Bananas_icon.png' }, colored: { svg: 'https://static.wixstatic.com/shapes/94b5e2_403ceb582027431cb92f38fd18d1843c.svg', png: 'https://freesvg.org/img/15930333081593032446pitr_Bananas_icon.png' } } } }], credentialsFields: [{ simpleField: { name: 'clientId', label: 'API id' } }, { simpleField: { name: 'clientSecret', label: 'API secret' } }] }; }; ``` ---