PHP code example of tinkers / ccavenue-php-composer-lib
1. Go to this page and download the library: Download tinkers/ccavenue-php-composer-lib library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
tinkers / ccavenue-php-composer-lib example snippets
use tinkers\ccavenue\CCAvenue;
$cCAvenue = new CCAvenue(CCAvenue::TYPE_BILLING_PAGE, [
'merchant_id' => 'xxxxxx',
'access_code' => 'xxxxxxxxxxxxxxxxx',
'working_key' => 'xxxxxxxxxxxxxxxxxxxxxxxxxxxx',
], true);
$request = $cCAvenue->requestGenerator($requestData); // accepts billing page post data and provides array encrypted data and form-action/iframe url