how to integrate paypal payment gateway in php

At Paypal account first merchant have to create Paypal account.

Send the data to Paypal:

<form action="https://www.paypal.com/cgi-bin/webscr" method="post">

<input type="hidden" name="cmd" value="_xclick">
<input type="hidden" name="business" value="Your merchant account">
<input type="hidden" name="currency_code" value="USD">

<input type="hidden" name="item_name" value="Shopping Products">
<input type="hidden" name="quantity" value="1">
<input type="hidden" name="amount" value="20">
 
<input type="hidden" name="return" class="inputurlbox" 
value="success url">
<input type="hidden" name="cancel_return" class="inputurlbox" 
value="cancel url">

<input type="image" src="http://www.paypal.com/en_US/i/btn/x-click-but01.gif" name="submit" alt="Make payments with PayPal - it's fast, free and secure!">
 
 </form>



In Paypal page user have to login with Paypal account to pay.


For Testing Using Paypay Form action URL is: 
https://www.sandbox.paypal.com/cgi-bin/webscr

express-checkout-hero-sg paypal-paynow-button-300x89

invalid secure hash in ebs kit version 3.0

Currently Ebs Payment gateway not user/developer allows to test EBS in TEST mode with the version 3.0 .They offer to test ebs Directly by LIVE mode.
You have change few settings from your merchant account on ebs.
Old version remain working with the test mode & test credentials.

how to make secure hash to send in ebs payment gateway

//Pass your Registered Secret Key
$hashData = “Your Secret Key“;

$hash = “ebskey”.”|”.urlencode($_POST[‘account_id’]).”|”.urlencode($_POST[‘amount’]).”|”.urlencode($_POST[‘reference_no’]).”|”.$_POST[‘return_url’].”|”.urlencode($_POST[‘mode’]);

$secure_hash = md5($hash);

// now pass $secure_hash secure hash to ebs .