2

When I am placing order by my payment gateway I am getting error "Invalid state change requested". when I debug the core code then I found that error is coming from plugin used by core classes.

Magento\Quote\Model\QuoteRepository\Plugin\AccessChangeQuoteControl.php

public function beforeSave(CartRepositoryInterface $subject, CartInterface $quote)
{ 
    if (! $this->changeQuoteControl->isAllowed($quote)) {
        throw new StateException(__("Invalid state change requested"));
    }
}

Please anyone have an idea why i m facing this issue ?

1 Answer 1

-1

when customer does not pass the Authentication Token in headers.

Magento 2 doesn't give access to Quote for users without authentication token.

Please Pass authentication token Properly.

6

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.