Extension Config


To configure and customize your service plugin, you need to provide important details in the plugin.json configuration file.

Note

If you created your service plugin extension with the CLI, required fields are automatically populated for you.

Configuration Params
deploymentUristring

Required.* Base URI where the endpoints are called. Wix eCommerce appends the endpoint path to the base URI. For example, to call the Get Payment Settings endpoint at https://my-payment-settings.com/v1/payment-settings, the base URI you provide here is https://my-payment-settings.com/.


fallbackValueForRequires3dSecureboolean

The value to set for paymentSettings.requires3dSecure if the service plugin call fails.

Default: false

Did this help?

getPaymentSettings( )


Important: This is a handler function. Implement it only as part of the service plugin.


This method retrieves payment settings from your app.

Wix calls this method during the payment process. For example, when a customer inserts credit card details and places an order. This method retrieves the payment settings to apply, and Wix passes on the settings to the payment provider.

Method Declaration
Copy
Method Parameters
payloadGetPaymentSettingsEnvelope
Returns
Return Type:GetPaymentSettingsResponse | Promise<GetPaymentSettingsResponse>
Did this help?