cancel
Showing results for 
Search instead for 
Did you mean: 

POST /rest/default/V1/carts/mine/set-payment-information 400

SOLVED

POST /rest/default/V1/carts/mine/set-payment-information 400

Hello, i have an issue in checkout only for registered users.

this is ready to make me crazy. I have disable all extensions for checkout and the issue still persist. when i try to edit the PaymentInformationManagement.php to see what cause the issue i get 

cart-items.js:46 Uncaught TypeError: Cannot read property 'length' of undefined
at UiClass.getCartLineItemsCount (cart-items.js:46)
at if (eval at createBindingsStringEvaluator (knockout.js:2982), <anonymous>:3:86)
at ko.computed.disposeWhenNodeIsRemoved (knockout.js:4381)
at Function.evaluateImmediate_CallReadThenEndDependencyDetection (knockout.js:2173)
at Function.evaluateImmediate_CallReadWithDependencyDetection (knockout.js:2140)
at Function.evaluateImmediate (knockout.js:2101)
at Function.evaluatePossiblyAsync (knockout.js:2066)
at Function.notifySubscribers (knockout.js:1320)
at Function.valueHasMutated (knockout.js:1538)
at observable (knockout.js:1504)

from console-> network i get

  1. Request URL:
    https://mysite/rest/default/V1/carts/mine/set-payment-information
  2. Request Method:
    POST
  3.  
    Status Code:
    400

i try to replace all folder vendor/magento/module-checkout with a fresh one but with no luck.

 

has anyone face it? Is it a way to find out which extensions can change the chekout proccess? 

1 ACCEPTED SOLUTION

Accepted Solutions

Re: POST /rest/default/V1/carts/mine/set-payment-information 400

Solved, issue with Terms and Orders and payment methods. It edit a payment method to return agreements as true in calculation

View solution in original post

8 REPLIES 8

Re: POST /rest/default/V1/carts/mine/set-payment-information 400

Just crazy.... This issue comes from Terms and Conditions.

When i change in Terms -> Applied -> Automatically

checkout proccess works fine

 

But i don't have the terms checkbox in checkout page

 

Any idea to solve tis?

Re: POST /rest/default/V1/carts/mine/set-payment-information 400

Solved, issue with Terms and Orders and payment methods. It edit a payment method to return agreements as true in calculation

Re: POST /rest/default/V1/carts/mine/set-payment-information 400

Hello! I have the same issue.
Can you please share the solution? The solution link in a post is broken 😞 

Re: POST /rest/default/V1/carts/mine/set-payment-information 400

Do you use Mageplaza one-step checkout?

Re: POST /rest/default/V1/carts/mine/set-payment-information 400

Hi, I also encountered this problem, how did you solve it?

Re: POST /rest/default/V1/carts/mine/set-payment-information 400

Disable cashondeliveryfee

Re: POST /rest/default/V1/carts/mine/set-payment-information 400

Hi I have disabled cash on delivery but it still doesn't show up ,Am I setting it wrong?paypal payment is normal

WechatIMG158.pngWechatIMG159.png

Re: POST /rest/default/V1/carts/mine/set-payment-information 400

disable module extra fee if exist...