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?

invoiceCreatedEvent( )


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


Triggered in case Wix creates an invoice that includes charges for an instance of your app.

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