Update your API

We never heard why, but for some reason, Magento dropped a few APIs related to managing shipment and payment methods. We still have a few requests on Github pending, but in the meanwhile, we decided that we better write a bit of code ourselves. So, in order to sync shipment and payment methods, be sure to install the NcApi as part of your NAVcommerce Magento 2 extension.

Synchronize methods

Once your API is running fine, synchronizing is really easy. Just go to Departments/NAVcommerce/Administration/Sales/Payment Methods and click Update From Magento. All the payment methods you have configured in Magento will automatically appear in the list, and you can complete the configuration by selecting the right payment terms and method.

New Order Status Code – This is a very important field because this is the status code the system will look for when synchronizing orders. So, be sure, for each payment method, to provide the right status code.
See this page for more information on the order workflow in Magento. https://docs.magento.com/m2/ce/user_guide/sales/order-workflow.html
Typically for the prepayment methods, you want to use status code ‘processing’. Because first the payment has to be processed correctly and then you want NAV to pull in the order.
For the non-prepayment methods, you want to use status code ‘pending’, because those simply are not waiting to be processed by any payment provider, and you just want to sync them to NAV directly.

New payment method?

Adding new payment method is usually a thing which requires the new module or method to be activated in Magento. Once this is done, just go to the same settings page in NAV, and click Update From Magento again. Your new payment methods will automatically become visible.

Was this helpful?

Yes No
You indicated this topic was not helpful to you ...
Could you please leave a comment telling us why? Thank you!
Thanks for your feedback.