getConfig( )


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, 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.

Method Declaration
Copy
Request
This method does not take any parameters
Returns
Return Type:Promise<PaymentProviderConfigResponse>
Was this helpful?
Yes
No