magento / magento2

Prior to making any Submission(s), you must sign an Adobe Contributor License Agreement, available here at: https://opensource.adobe.com/cla.html. All Submissions you make to Adobe Inc. and its affiliates, assigns and subsidiaries (collectively “Adobe”) are subject to the terms of the Adobe Contributor License Agreement.
http://www.magento.com
Open Software License 3.0
11.5k stars 9.3k forks source link

We cannot retrieve the payment method code (/rest/default/V1/carts/mine/shipping-information 400 Bad Request) #5267

Closed woei66 closed 8 years ago

woei66 commented 8 years ago

Steps to reproduce

  1. composer create-project --repository-url=https://repo.magento.com/ magento/project-community-edition=2.0.6 magento2.0.6
  2. installed a customized payment module
  3. add a product to the shopping cart
  4. click the "go to checkout" button
  5. fill my shipping address and all fields are filled and the shipping address is different to my billing address.
  6. click the "Next" button to go to the next step

    Expected result

  7. the next page is selecting my available payment methods

    Actual result

  8. Got a error message "We cannot retrieve the payment method code."
  9. Got a error message "/rest/default/V1/carts/mine/shipping-information" 400 Bad Request 2

I put my ajax content debug information in a blog post. http://david.firstbiz.cc/blog_detail.php?id=123 I am not sure whether these ajax information is useful or now. If yes, please let me know and I can attached the log.

woei66 commented 8 years ago

as I rewrite my source code and this bug is not there. so, I closed this ticke.t

vishveskrish commented 8 years ago

Hello,

We are facing same issue after upgrade from 2.0.2 to 2.1.0.

Let me know if you found any solution.

Thanks, Vishves Shah