Skip to content
This repository has been archived by the owner on Aug 1, 2018. It is now read-only.

REST PUT selected-payment-method return 404 #4

Closed
stalica opened this issue Oct 3, 2016 · 5 comments
Closed

REST PUT selected-payment-method return 404 #4

stalica opened this issue Oct 3, 2016 · 5 comments
Assignees

Comments

@stalica
Copy link

stalica commented Oct 3, 2016

When I choose COD method in checkout, I get 404 for this link: PUT http://domain.com/rest/default/V1/guest-carts/255822baef9b805cc52a7c5d8358e37b/selected-payment-method
{"cartId":"255822baef9b805cc52a7c5d8358e37b","method":{"method":"msp_cashondelivery","po_number":null
,"additional_data":null}}

Where is the problem?
Magento 2.1.1
PHP 5.6

@giacmir
Copy link
Contributor

giacmir commented Oct 5, 2016

I can't reproduce your issue. Can you please provide some additional information?

  • what is your server operating system?
  • do you have customized checkout theme or flow?
  • are you using sample data?
  • does this happens also with other payment methods e/g paypal?
  • Is the api route present in /vendor/magento/module-quote/etc/webapi.xml at line 289?

Thanks

@stalica
Copy link
Author

stalica commented Oct 5, 2016

Server: VPS debian-7.0-x86_64-DA_PL_IMAPv2
default chceckout and theme
not using sample data
other payment method works OK (paypal, default COD, bank transfer do not produce PUT selected-payment-method in REST API)
line 289 is route url="/V1/guest-carts/:cartId/selected-payment-method" method="PUT"

Thanks

@stalica
Copy link
Author

stalica commented Oct 5, 2016

I think this may be a problem with the configuration of hosting, I sent a notification to the administrator, I'll know if the problem resolves.

@stalica
Copy link
Author

stalica commented Oct 5, 2016

Problem solved. The reason was the server settings to redirect all traffic PUT on 404.

Thanks!

@stalica stalica closed this as completed Oct 5, 2016
@Tristan-N
Copy link

Tristan-N commented Jan 4, 2017

I have the same issue. Note: it only happens when I haven't entered my address yet. With blank addressfields the COD doesn't work (loading until end of time) which generated the same error as @stalica mentioned.
I'll let you know if the solution mentioned by @stalica worked for me.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants