Skip to main content

EBS Payment Gateway PHP integration kit - Version 3-PHP Integration kit

New EBS Version 3 Integration kit, based on PHP platform, can be downloaded from the following link:

https://support.ebs.in/app/index.php?/default_import/Knowledgebase/Article/View/620/29/version-3-php-integration-kit

Integration Guide can be downloaded through:

https://support.ebs.in/app/index.php?/Knowledgebase/Article/View/651/29/ebs_integration_guide_301

To fetch your secret key kindly login to your merchant console panel (secure.ebs.in) and navigate to Account >> Settings. (Login credentials will be automatically triggered to registered email id, once the account is made LIVE from our end)

Kindly note that by default your EBS account is configured to use SHA512 as the hashing algorithm in the payment page template.

Method to calculate the hash for request parameters:

MD5/SHA1/SHA512: Hash should be calculated for all posting parameters along with your secret key.

First, all the posting parameters should be sorted in ascending order and then with the secret key first and separated by the ‘|’ symbol each sorted parameter should be concatenated. (Parameters without any value should be removed)

Format: secretkey|account_id|address|.............................|ship_state|state

Finally, the hash should be calculated for the above-given string and the calculated hash should be converted to uppercase before posting.

To prevent the tampering of response being posted back, it’s mandatory to implement hash validation in response.

Method to calculate the hash for response parameters:

MD5/SHA1/SHA512: Response parameters will be posted back to the specified return URL.

First, all the response parameters must be sorted in alphabetical order, excluding the parameters which are empty and the parameter ‘Secure Hash’. Then, these parameters should be concatenated to each other separated by the ‘|’ symbol with your secret key first.

Format: Secret Key|Amount|BillingAddress|BillingCity|.................|TransactionID

Finally, the hash should be calculated for the above-given string and the calculated hash should be converted to uppercase and compared with the hash received in the response.

Usage of special characters like, “”(inverted double quotes), + (plus) and | (pipe), should be avoided within the posting values, as it may result in the error “Invalid Secure hash”.

Comments

  1. Thanks for sharing this blog. This blog is so informative for providing a valuable information about sms api php integration.

    ReplyDelete

Post a Comment

Popular posts from this blog

How to create a Barcode Using PHP Barcode 128 Generator

A barcode is an optical, machine-readable, representation of data, the data usually describes something about the object that carries the barcode.We will use PHP to generate Barcode in this tutorial. In this script, we are using coding which will generate barcodes in barcode format Code 128 . First, we will create index.php which will ask for the user input for which Barcode has to be created PHP Barcode Generator <fieldset><legend>Detail Informations</legend><form action="createbarcode.php" method="post"><b>Enter Your Code </b><input name="barcode" type="text" /><input type="submit" value="Create Barcode" /></form></fieldset> Now we will create createbarcode.php which will call function from Barcode code128 class for creating barcode <? php include('barcode128.php'); // include php barcode 128 class // design our barcode display echo...

How to Enable IMAP PHP in xampp

The imap extension comes as standard with the PHP installation. You just need to enable it in your php.ini   Enable IMAP in XAMPP: You need to configure your php.ini file to enable IMAP extension Search for the line ;extension=php_imap.dll and remove semicolon(;) and restart your xampp. The line should look like as mentioned below. extension=php_imap.dll Note : New php version does not have dll anymore. The default php.ini should already contain a line to load the extension but commented out: ;extension=imap Remove semicolon from above like below extension=imap Enable IMAP in Linux: If you are using LAMP server, First install IMAP using the command on terminal $ sudo apt-get install php5-imap To enable IMAP, run the following command. sudo phpenmod imap Restart apache server with below command sudo service apache2 restart

Symbols Used in Excel Formula | The purpose of Symbols in Excel Formula

Following symbols are used in Excel Formula. They will perform different actions in Excel Formulas and Functions. Each of these special characters have used for different purpose in Excel. Symbol Name Description = Equal to Every Excel Formula begins with Equal to symbol (=). Example: = B1+B6 () Parentheses All Arguments of the Excel Functions specified between the Parentheses. Example: =COUNTIF ( B1:B5,5 ) () Parentheses Expressions specified in the Parentheses will be evaluated first. Parentheses changes the order of the evaluation in Excel Formula. Example:   =25+ ( 35*2 ) +5 * Asterisk Wild card operator to to denote all values in a List. Example:   =COUNTIF(B1:B5,” * “) , Comma List of the Arguments of a Function Separated by Comma in Excel Formula. Example:   =COUNTIF(B1:B5 , “>” &C1) & Ampersand Concatenate Operator to connect two strings into one in Excel Formula. Example:   =”Total: “ & SUM(C2:C25) $ Dollar Makes Cell Reference as Absolute in ...