I am using ccavenue payment module in my site. For guest users payment is working fine, it's redirected to the payment page. But for logged in users I am getting this error while placing the order. I checked in headers cartid is passing to the payment. My magento version is Magento ver. 2.1.11


cartId is a required field

Anybody have an idea?

  • Did you resolve your issue? Apr 5, 2019 at 5:13
  • 1
    This code is already present. I solved in different way Apr 5, 2019 at 10:40
  • 1
    Good to know that you resolved it, it would be better if you can share your findings here in answer, so that I would be helpful for others in future Apr 5, 2019 at 10:46

2 Answers 2


Have you tried this one?


It was issue in early release of Magento 2. But after reporting it has been fixed.

Override the file in any custom module


Find the function createIfActive after the line


Add $storeId

You function would be like this:

public function createIfActive($carrierCode, $storeId = null)
    return $this->_scopeConfig->isSetFlag(
        'carriers/' . $carrierCode . '/active',
    ) ? $this->create(
    ) : false;

In my case it was VERTEX Integrated Address Cleansing that was causing this. Not sure why. Turned off the sett

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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