PHP code example of cashfree / cashfree-pg-sdk-php
1. Go to this page and download the library: Download cashfree/cashfree-pg-sdk-php 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/ */
cashfree / cashfree-pg-sdk-php example snippets
$cashfree = new \Cashfree\Cashfree(
\Cashfree\Cashfree::$SANDBOX, // or \Cashfree\Cashfree::$PRODUCTION
"<x-client-id>",
"<x-client-secret>",
"", // x-partner-api-key (leave blank if unused)
"", // x-partner-merchant-id (leave blank if unused)
"", // x-client-signature (leave blank if unused)
true // enable error analytics
);