This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.
The calculateServiceFees()
function returns a Promise that resolves to an array containing the calculated fees.
The specified order information is evaluated against all rules created for the site. If the rule conditions are met, the service fee set in the rule is applied. Otherwise, no service fee is added.
Order information needed to evaluate the rules and calculate the relevant fees.