<html>
  <head>
      
            <meta content="CanApprove Payu Payment Online" name="keywords" />
      <meta content="CanApprove Payu Payment Online" name="description"  />
  <script>
    function submitPayuForm() {
      var payuForm = document.forms.payuForm;
      payuForm.submit(); 
    }
  </script>
  </head>
  <body onload="submitPayuForm()" >
    <form action="<?php echo $action; ?>" method="post" name="payuForm">
      <input type="hidden" name="key" value="<?php echo MERCHANT_KEY ?>" />
      <input type="hidden" name="hash" value="<?php echo $hash ?>"/>
      <input type="hidden" name="txnid" value="<?php echo $txnid ?>" />
      <input name="amount" value="<?php echo (empty($posted['amount'])) ? '' : $posted['amount'] ?>" />
      <input name="firstname" id="firstname" value="<?php echo (empty($posted['firstname'])) ? '' : $posted['firstname']; ?>" />
      <input name="email" id="email" value="<?php echo (empty($posted['email'])) ? '' : $posted['email']; ?>" />
      <input name="phone" value="<?php echo (empty($posted['phone'])) ? '' : $posted['phone']; ?>" />
      <textarea name="productinfo"><?php echo (empty($posted['productinfo'])) ? 'Payment' : $posted['productinfo'] ?></textarea>
      <input name="surl" value="<?php echo APP_URL.SUCCESS_URL; ?>" size="64" />
      <input name="furl" value="<?php echo APP_URL.FAIL_URL; ?>" size="64" />
      <input type="hidden" name="service_provider" value="payu_paisa" size="64" /></td>
      <input name="lastname" id="lastname" value="<?php echo (empty($posted['lastname'])) ? '' : $posted['lastname']; ?>" />
      <input name="address1" value="<?php echo (empty($post['address1'])) ? '' : $post['address1']; ?>" />
      <input name="city" value="<?php echo (empty($post['city'])) ? '' : $post['city']; ?>" />
      <input name="state" value="<?php echo (empty($post['state'])) ? '' : $post['state']; ?>" />
      <input name="country" value="<?php echo (empty($post['country'])) ? '' : $post['country']; ?>" />
      <input name="zipcode" value="<?php echo (empty($post['zipcode'])) ? '' : $post['zipcode']; ?>" /> 
    </form>
  </body>
</html>
