franklinfs Posted October 23, 2013 Share Posted October 23, 2013 (edited) Hi, I want to get the payment details in my prestashop module. So which function i want to use? Example i am getting the order details using this function $Order = new Order($order_id); Like this i want to get the payment details....... ps version is 1.5.4.1 Edited October 23, 2013 by franklinfs (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted October 23, 2013 Share Posted October 23, 2013 here it is: $order = new Order(1); $payments=$order->getOrderPayments(); 1 Link to comment Share on other sites More sharing options...
franklinfs Posted October 23, 2013 Author Share Posted October 23, 2013 hi, can you give the fields name for the $payments because i dont have the credit card module for testing. i am using the code , but i am getting an empty array print_r($payments) can u give the fields name.. my actual need is to get the 'credit_card_bin' '[spam-filter]_result_code' 'credit_card_number' 'credit_card_company' Link to comment Share on other sites More sharing options...
vekia Posted October 23, 2013 Share Posted October 23, 2013 can you try to print_r $order object contents? what you see? Link to comment Share on other sites More sharing options...
franklinfs Posted October 23, 2013 Author Share Posted October 23, 2013 (edited) . Edited October 23, 2013 by franklinfs (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts