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.


Was this helpful?
Yes
No

chargesRejectedEvent( )


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


Triggered in case Wix doesn't accept the charges you've returned in the List Charges method.

You aren't allowed to charge a site owner more than the charge limit. Wix call List Charges in regular intervals until the sum of all charges is lower than the charge limit. Wix doesn't create an invoice in case the charges aren't accepted.

Method Declaration
Copy
Method Parameters
payloadChargesRejectedEventEnvelope
Returns
Return Type:ChargesRejectedResponse | Promise<ChargesRejectedResponse>
Was this helpful?
Yes
No