cashfree / cashfree-verification
Cashfree's Verification APIs provide different types of verification to our merchants.
3.0.0
2024-11-08 04:30 UTC
Requires
- php: ^7.2 || ^8.0
- ext-curl: *
- ext-json: *
- ext-mbstring: *
- guzzlehttp/guzzle: ^7.3
- guzzlehttp/psr7: ^1.7 || ^2.0
- sentry/sdk: ^3.4
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.5
- phpunit/phpunit: ^8.0 || ^9.0
This package is not auto-updated.
Last update: 2024-11-12 10:39:35 UTC
README
The Cashfree Verification PHP SDK offers a convenient solution to access Cashfree Verification APIs from a server-side Go applications.
Documentation
Cashfree's Verification API Documentation - https://docs.cashfree.com/reference/verification-api-overview
Try out our interactive guides at Cashfree Dev Studio !
Getting Started
Note:
This README is for the current branch and not necessarily what's released in Composer
Installation
composer require cashfree/cashfree-verification
Configuration
\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