This is a follow-up question to the Why “failed to open stream” error?. I am integrating Zaincash module in magento. I am using this extension from git. Now when I am clicking on Place Order button on magento's default onepage checkout page, page is redirected to zcash/standard/redirect/ and getting 500 Internal server error.

When I debugged, I found following code in app/code/local/WTC/Zcash/Model/Standard.php:

public function getOrderPlaceRedirectUrl()
    return Mage::getUrl('zcash/standard/redirect');

And in app/code/local/WTC/Zcash/controllers/StandardController.php action following code:

public function redirectAction()

    $session = Mage::getSingleton('checkout/session');
    $order = $this->getOrder();

    if (!$order->getId()) {


        Mage::helper('hdfc')->__('Customer was redirected to hdfc')



I think, its controller is faulty. I didn't get what is hdfc here? Can anyone help me please?

  • can you see your order in admin backend after place an order ?
    – Camit1dk
    Jul 10 '17 at 12:27
  • @Dhaval yes orders are shown in admin. Jul 10 '17 at 12:31
  • can try to install this module https://github.com/vinaysikarwar/HDFC-Payment-Gateway-magento-Extension because some configuration is come in zcash module from this link module
    – Camit1dk
    Jul 10 '17 at 12:36

install below module for current module support https://github.com/vinaysikarwar/HDFC-Payment-Gateway-magento-Extension

  • Its redirecting to homepage. Jul 10 '17 at 12:50
  • what you getting in exception.log?
    – Camit1dk
    Jul 10 '17 at 13:07
  • you can seen HDFC payemnt method in system -> configuration - paymetn method can you fill up all details in this area and replace line no 363 with below line app/code/local/WTC/Zcash/controllers/StandardController.php ` ->createBlock('zcash/standard_redirect')`
    – Camit1dk
    Jul 10 '17 at 13:20
  • you just need to add zcash details in hdfc field
    – Camit1dk
    Jul 10 '17 at 13:23
  • 1
    NO @TriyugiNarayanMani, Please add https://api.zaincash.iq/transaction/init
    – Camit1dk
    Jul 10 '17 at 13:32

Your Answer

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

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