The Cashfree Verification PHP SDK offers a convenient solution to access Cashfree Verification APIs from a server-side Go applications.
Cashfree's Verification API Documentation - https://docs.cashfree.com/reference/verification-api-overview
Try out our interactive guides at Cashfree Dev Studio !
Note:
This README is for the current branch and not necessarily what's released in Composer
composer require cashfree/cashfree-verification
\Cashfree\CashfreeVrs::$XClientId = "<x-client-id>";
\Cashfree\CashfreeVrs::$XClientSecret = "<x-client-secret>";
\Cashfree\CashfreeVrs::$XEnvironment = Cashfree\CashfreeVrs::$SANDBOX;
Generate your API keys (x-client-id , x-client-secret) from Cashfree Merchant Dashboard
$cashfree = new \Cashfree\CashfreeVrs();
$voter_id_request = new \Cashfree\Model\VoterIdRequestSchema();
$voter_id_request->setEpicNumber("UAI4574761");
$voter_id_request->setVerificationId("test12334");
try {
$result = $cashfree->VrsVoterIdVerification($voter_id_request);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling VrsVoterIdVerification: ', $e->getMessage(), PHP_EOL;
}
## Licence
Apache Licensed. See [LICENSE.md](LICENSE.md) for more details