Search code examples
phpmagentomagento-1.4magento-1.5magento-soap-api

How to get a payment information from magento api?


$proxy = new SoapClient('http://magentolocal.com/mag/api/soap/?wsdl');
$sessionId = $proxy->login('test', 'test123');
$getorderid = "100000054";
$getdetails = $proxy->call($sessionId, 'sales_order.info', $getorderid);
print_r($getdetails);

it is return an array, it contain a payment_id,so where can i pass a payment_id and get a payment information of that order.


Solution

  • Magento don't have API methods to work with payments, but there is some usefull methods to work with invoices - http://www.magentocommerce.com/wiki/doc/webservices-api/api#mage_sales