I have integrated & configured PayU in my website. When I buy a product the transaction is successful and the payment is taking place. But the order details in the admin panel shows payment as due. Could anyone help me to sort it out??

1 Answer 1


Praseetha.According to magento order payment done mean order invoice is created. So,on Magento payu extesion return success action ,you need to create Invoice of order that order,thus order payment status change to paid

if($order->canInvoice() and $order->getIncrementId())
$items = array();
foreach ($order->getAllItems() as $item) {
    $items[$item->getId()] = $item->getQtyOrdered();


Details:How create invoice Programmatically

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.