1

I have a 3rd party tax engine and i want to create a module in Magento2 that collect the data that the tax engine need(ie shipping address, amount, etc). and send it to the tax engine. This is the easy part for me..however the hard part, or at least the part that i can not understand fully is the integration part, i mean; how Magento works regarding the integration of third-party tax calculation engines, should i implement some kind of interface in my Magento module in order to Magento can be able to recognize it as a tax calculation module?

Thanks!!

  • @AnkitShah Web API is not relevant to the question – Fabian Schmengler Sep 29 '16 at 6:13
0

These are the interfaces of the tax module: https://github.com/magento/magento2/tree/develop/app/code/Magento/Tax/Api

In theory you just have to implement them and use DI preferences to replace the core implementations (see: http://devdocs.magento.com/guides/v2.0/extension-dev-guide/depend-inj.html)

In practice this might not work as expected because the service contracts (i.e. the "Api" interfaces) are not matured enough yet and Magento often relies on implementation details of the core implementations.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.