cancel
Showing results for 
Search instead for 
Did you mean: 

Magento 2.3 Config Provider call before shipment information is available

   Did you know you can see the translated content as per your choice?

Translation is in progress. Please check again after few minutes.

Magento 2.3 Config Provider call before shipment information is available

I have the following question when programming with Magento 2.3 custom payment plugin.

During guest checkout when I added some logs, I see that call to extended Config Provider that fetches data from certain calculation API, occurs before shipment information is available on checkout. When I do refresh in browser of checkout page my calculation works appropriately, as Config Provider is freshly called with updated shipping information in grand total.

What I am trying to archive is I need to present guest user on checkout with properly calculated monthly payment amount that includes shipment rates in grand total. I have tried to archive it also with customer data, but calls to the customer data also occurs before shipping information is obtained.

I am fairly sure this is something common many developers faced with and I kindly appreciate any advice how I can resolve this situation. I can provide necessary parts of my code, just ask me.