Subversion Repositories SmartDukaan

Rev

Rev 13375 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
        <title>${domain.name}: Redirecting to PayU Payment Page</title>
        <script language="javascript" type="text/javascript" src="/js/ga-invoker.js"></script>
</head>
<body>
    <div style="text-align:center; margin-top:200px;">Please wait while we redirect you to the Payment Gateway.</div>
        <div align="center" class="img">
                <img title="loading" alt="loading" src="/images/loading.gif">
        </div>
        <div style="display:none">
                <form  method="post" action="https://test.payu.in/_payment" name="frmTransaction" id="frmTransaction" onSubmit="return validate()">      
           <!-- Account Id -->
           <input name="key" type="hidden" value="$action.getAccountId()" />

                   #set($billingAddress=$action.getBillingDetails())
                   
           <!-- Transaction Details -->
           <input name="txnid" type="hidden" value="$action.getId()" />
           
                   <input name="amount" type="hidden" value="$action.getAmount()" />

           <input name="productinfo" type="hidden" value="$action.getDescription()" />
                   
                   <input name="firstname" type="hidden" value="$billingAddress.getName()" /></td>
       
                   <input name="address1" type="hidden" value="$billingAddress.getAddress1()" />
                   
                   <input name="address2" type="hidden" value="$billingAddress.getAddress2()" />

           <input name="city" type="hidden" value="$billingAddress.getCity()" />
 
           <input name="state" type="hidden" value="$billingAddress.getState()" />

           <input name="country" type="hidden" value="India"/>
                   
                   <input name="zipcode" type="hidden" value="$billingAddress.getPostalCode()" />

           <input name="email" type="hidden" value="$billingAddress.getEmail()" />

                   <input name="phone" type="hidden" value="$billingAddress.getPhone()" />

                   <input name="surl" type="hidden" value="$action.getReturnUrl()" />
                   
                   <input name="furl" type="hidden" value="$action.getReturnUrl()" />
                   
                   <input name="furl" type="hidden" value="$action.getReturnUrl()" />
                   
                   #if($action.getPaymentOption())
                   <input name="pg" type="hidden" value="CC"/>
                   #end
                                   
                   <input name="hash" type="hidden" value="$action.getSecureHash()" />
                   
           <input name="submitted" value="Submit" type="submit" />&nbsp; 
           <input value="Reset" type="reset" />
      </form>
    </div>

    #include ( "templates/commonjsfiles.vm" )
    <script type="text/javascript">
      $(function() {
              $('form[name="frmTransaction"]').submit();
      });
    </script>
  </body>
</html>