Watch Out!You should provide the user’s contact number with the country code to check the eligibility.Following is the sample code for request and response.
Request
var razorpay = new Razorpay({
key: '',
});
razorpay.checkCREDEligibility("+918888888888")
.then((response) => {
// Contact is CRED Eligible
})
.catch((error) => {
// Contact is CRED Ineligible
});
```js: Response
{
"success": true,
"data": {
"state": "ELIGIBLE",
"tracking_id": ,
"offer": {
"description":
}
},
"status_code": 200
}