Skip to content

not able to add payment method for placing order #2497

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
arunkasyakar opened this issue Nov 24, 2015 · 6 comments
Closed

not able to add payment method for placing order #2497

arunkasyakar opened this issue Nov 24, 2015 · 6 comments
Assignees

Comments

@arunkasyakar
Copy link

when i am calling the api http://MYHOST/rest/default/V1/carts/142/selected-payment-method, with request data:
{
"cartId": "3",
"method": {
"method": "checkmo"
}
}

OR

{
"cartId": "3",
"method": {
"method": "banktransfer"
}
}

OR

{
"cartId": "3",
"method": {
"method": "cashondelivery"
}
}

i am getting the error:

{
"message": "The requested Payment Method is not available."
}

@ishakhsuvarov ishakhsuvarov self-assigned this Nov 24, 2015
@ishakhsuvarov
Copy link
Contributor

@arunkasyakar Thank you for reporting this.
Please check if the cart you attempting to update has subtotal greater then 0.

@arunkasyakar
Copy link
Author

@ishakhsuvarov how to check the subtotal for the cart

@arunkasyakar
Copy link
Author

I just checked the subtotal in quote_address table its greater then 0

@ishakhsuvarov
Copy link
Contributor

@arunkasyakar In the example above you are using different cartId in url and payload, could you please check that the correct cart id is present in url.

@arunkasyakar
Copy link
Author

sorry for above mistake but i am using the same cartId for both that is cartId: 142

@SerhiyShkolyarenko
Copy link
Contributor

@arunkasyakar could you please check that all methods you use are enabled?
I managed to reproduce error message "The requested Payment Method is not available." in case when the payment method was not enabled on backend Stores->Configuration->Sales->Payment Methods
If payment method is enabled, request is successful for me.

magento-engcom-team pushed a commit that referenced this issue May 4, 2018
Fixed issues:
- DEVOPS-232 Static Testing in Jenkins
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants