Events
Events are published on the window object level and can be subscribed via the regular .addEventListener() function.
window.addEventListener('taxamo-tax-calculated', console.debug);
Event | Description |
---|---|
taxamo-tax-calculated | Published when the tax calculation completes. Event includes detail field with tax calculation result. |
taxamo-field-updated | Published when a field value has been updated. Event includes a detail map with name and value keys. |
taxamo-field-updated-{field-name} | Published when the specified field value has been updated. Event includes a detail map with name and value keys. |
taxamo-loading-start | Published when Taxamo Drop-In UI starts to perform XHR request. |
taxamo-loading-stop | Published when Taxamo Drop-In UI finishes a XHR request. |
taxamo-loading-error | Published when Taxamo Drop-In UI XHR request. Includes detail field with tax calculation result. |
taxamo-captcha-loading-start | Published when Taxamo Drop-In UI starts to perform XHR request for captcha retrieval. |
taxamo-captcha-loading-finished | Published when Taxamo Drop-In UI finishes XHR request for captcha retrieval. |
taxamo-captcha-submit-start | Published when Taxamo Drop-In UI starts to perform XHR request with the CAPTCHA solution. |
taxamo-captcha-submit-finished | Published when Taxamo Drop-In UI finishes an XHR request with the CAPTCHA solution. |
taxamo-missing-tax-required-fields | Published when the tax calculation fails with missing tax required fields. Event includes detail field with error object with tax calculation result. |
Updated over 5 years ago