title: Payzippy Payment gateway Integration in PHP
body: <p>can any one help me to integrate payzippy with php? where to get the callback url and how to get the test MID to test the payment in sandbox ?</p>
  
  <p>Can I get all the example features in one file ?</p>
  
  <p><em>here goes with some experiment code ?</em></p>
  
  <pre><code>     &lt;?php
  require dirname(__FILE__)."/payzippy-sdk/ChargingRequest.php";
  
  
  $pz_charging = new ChargingRequest();
  
  
  $pz_charging-&gt;set_buyer_email_address($_POST["buyer_email_address"])
      -&gt;set_merchant_transaction_id($_POST["merchant_transaction_id"])
      -&gt;set_transaction_amount($_POST["transaction_amount"])
      -&gt;set_payment_method($_POST["payment_method"])
      -&gt;set_bank_name($_POST["bank_name"])
      -&gt;set_ui_mode($_POST["ui_mode"]);
  
  
  $charging_object = $pz_charging-&gt;charge();
  
  
  if ($charging_object["status"] != "OK"){
      echo '&lt;p&gt;Error: ', $charging_object["error_message"], "&lt;/p&gt;";
      exit();
  }
  ?&gt;
  
  &lt;html&gt;
      &lt;head&gt;
  
  
       &lt;/head&gt;
          &lt;body&gt;
  
  
  
    &lt;div class="navbar navbar-inverse"&gt;
          &lt;div class="navbar-inner"&gt;
              &lt;div class="container"&gt;
                  &lt;a class="brand"&gt;logo here&lt;/a&gt;
              &lt;/div&gt;
          &lt;/div&gt;
      &lt;/div&gt;
  
  
  
         &lt;div class="container"&gt;
              &lt;div class="wrap inter-content" id="detect-iframe" style="display: block;"&gt;
                  &lt;section class="main-info"&gt;
                      Processing your payment request...
                      &lt;div class="progress progress-striped active"&gt;
                          &lt;div class="bar" style="width: 100%;"&gt;&lt;/div&gt;
                      &lt;/div&gt;
                  &lt;/section&gt;
                  &lt;p class="no-re-warn not"&gt;Please do not press stop, refresh or back button&lt;/p&gt;
              &lt;/div&gt;
  
  
     &lt;form method="POST" action="&lt;?php echo $charging_object["url"]?&gt;" id="payzippyForm"&gt;
          &lt;?php
          foreach($charging_object["params"] as $key =&gt; $value) {
              echo "&lt;input type='hidden' name='{$key}' value='$value'&gt;";
          }
          ?&gt;
      &lt;/form&gt;
  &lt;/div&gt;
  
  &lt;script&gt;
      document.getElementById("payzippyForm").submit();
  &lt;/script&gt;
  
          &lt;/body&gt;
      &lt;/html&gt;
  </code></pre>