title: payment gateway integration in php
body: <p>I am trying to integrate payment gateway in my website which is developing by PHP. For that I am using PayPal. My code is like the following:</p>
  
  <pre><code>&lt;form name="frm" action="https://www.sandbox.paypal.com/cgi-bin/webscr" method="post"&gt;
      &lt;div style="padding-left:250px;"&gt;
           &lt;input type="hidden" name="cmd" value="_xclick" /&gt;
           &lt;input type="hidden" name="business" value="MY_BUSINESS_MAIL_ID" /&gt;
           &lt;input type="hidden" name="amount" value="&lt;?php echo $amount; ?&gt;" /&gt;
           &lt;input type="hidden" name="no_shipping" value="1" /&gt;
           &lt;input type="hidden" name="no_note" value="1" /&gt;
           &lt;input type="hidden" name="currency_code" value="USD" /&gt;
           &lt;input type="hidden" name="lc" value="USD" /&gt;
           &lt;input type="hidden" name="item_name" value="Registration" /&gt;
           &lt;input type="hidden" name="bn" value="PP-BuyNowBF" /&gt;
           &lt;input type="hidden" name="return" value="&lt;?php echo FRONT_END_PATH;?&gt;payment-over.php?user_id=&lt;?php echo $username;?&gt;&amp;req_amt=&lt;?php echo $amount; ?&gt;&amp;role_name=&lt;?php echo $role;?&gt;&amp;inramnt=&lt;?php echo $inrAmnt; ?&gt;" /&gt;
           &lt;input type="hidden" name="rm" value="2" /&gt;
           &lt;input type="submit"  border="0" name="submit" value="Order" alt="Make payments with PayPal - it's fast, free and secure!" class="additional_height button" title="Make payments with PayPal - it's fast, free and secure!" /&gt;
           &lt;img alt="" border="0" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1" /&gt; 
       &lt;/div&gt;
  &lt;/form&gt; 
  </code></pre>
  
  <p>Now my question is that is this code correct, if customer tries to make payment within India. Also, can user use their credit card for making payment?
  My last question is that can user make their payment though net banking?</p>
  
  <p>Please help me.
  Thanks in advance.</p>