To configure and customize your service plugin, you need to provide important details in the plugin.json
configuration file.
If you created your service plugin extension with the CLI, required fields are automatically populated for you.
Base URI where the endpoints are called. Wix eCommerce appends the endpoint path to the base URI. For example, to call the Calculate Additional Fees endpoint at https://my-additional-fees.com/v1/calculateAdditionalFees, the base URI you provide here is https://my-additional-fees.com/.
This method retrieves additional fees calculated by your app.
Wix calls this method when certain actions are performed on the cart or checkout. For example, when an item is added to the cart or the amount of an item is updated in the checkout.
Note: The currency returned in the response object must match the wix site's currency or those fees will be filtered out and not returned. Extract the currency
from the request envelope to ensure the correct currency is used in your calculation.