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
baseUriSpiBaseUri

Base part of your integration's deployment URI for the Custom Charges SPI. For example "https://provider.example.com", if Wix should call your integration at https://provider.example.com/v1/charge-limit for the Get Charge Limit method.

Did this help?

chargeLimitUpdatedEvent( )


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


Triggered in case the charge limit for an instance of your app is updated.

You can't update the charge limit after you've set an initial value. Site owners can increase the limit in their site's dashboard, currently they aren't allowed to decrease it.

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