Skip to content

cashfree/cashfree-verification-sdk-php

Repository files navigation

Cashfree Verification PHP SDK

GitHub Discord GitHub last commit (branch) GitHub release (with filter) GitHub forks

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published