i am creating a shipment programmatically but i also need to capture payment too how i can do that?

             $itemQty =  $order->getItemsCollection()->count();
                    $shipmentId = Mage::getModel('sales/order_shipment_api')->create($order->getIncrementId(), $itemsarray ,'' ,$email,1);

                    $trackmodel = Mage::getModel('sales/order_shipment_api')
  • when are you trying to capture payment ? on admin order creation / front-end order creation or during admin order processing ? – Ahmed May 8 '15 at 10:31
  • i am creating mass order action for shipment and capture user select the order and select the action and submit. – Qaisar Satti May 8 '15 at 10:33

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.