HOWDY

CCAvenue is the largest Payment Gateway in India today and currently powers more than 85% of the e-commerce merchants in the country.
To integrate with this in your website, you need ccavenue merchant account, to create merchant visit this link.

Follow the steps to integrate ccavenue in your website:-

1. There are three important files you have to write into your website

First file is libfuncs.php3 – see the code below
This file has some functions which is for checkout and redirect pages, we must include this page in checkout and redirect pages
———————library functions starts here——————–
<?php
function getchecksum($MerchantId,$Amount,$OrderId ,$URL,$WorkingKey)
{
            $str =”$MerchantId|$OrderId|$Amount|$URL|$WorkingKey”;
            $adler = 1;
            $adler = adler32($adler,$str);
            return $adler;
}
function verifychecksum($MerchantId,$OrderId,$Amount,$AuthDesc,$CheckSum,$WorkingKey)
{
            $str = “$MerchantId|$OrderId|$Amount|$AuthDesc|$WorkingKey”;
            $adler = 1;
            $adler = adler32($adler,$str);
            if($adler == $CheckSum)
                        return “true” ;
            else
                        return “false” ;
}
function…

View original post 1,508 more words

Advertisements