Magento 1.9.3 Payment method is not allowed in soap api?

by Gowri Shankar   Last Updated October 03, 2017 11:09 AM

I have wrote soap api for magento cart and order. I have mentioned payment method call like

$paymentMethod = array("method" => "cashondelivery");

$resultPaymentMethod = $proxy->call($sessionId,"cart_payment.method",array(

It is working while checking with hard-coded direct values but when I am giving those values in response, it is showing error like:

PHP Fatal error: Uncaught SoapFault exception: [1074] Payment method is not allowed in /home/public_html/api/order.php:226 Stack trace:#0 /home/public_html/api/order.php(226): SoapClient->__call('call', Array)

1 /homepublic_html/api/order.php(226): SoapClient->call('79f84c9d7ecab60...', '', Array) #2 {main}thrown in /homepublic_html/api/order.php on line 226

. Anyone can help?

Related Questions

IWD OPC payment name shows double

Updated April 20, 2015 21:04 PM

Payment method's name is not showing

Updated June 13, 2015 11:04 AM

How to get all order data using sql?

Updated January 09, 2018 09:09 AM