---
page_title: Cred-Checkout
product: EC Headless
platform: Android
page_source: https://juspay.io/in/docs/ec-headless/android/additional-features/credcheckout
llms_txt: https://juspay.io/in/docs/llms.txt
product_llms_txt: https://juspay.io/in/docs/ec-headless/llms.txt
---


# CRED Checkout




### Step 1 CRED Eligibility


This operation helps the merchant to check the eligibility of the user for Cred payment method. Internally SDK connects to the Cred app and Cred server to check for Eligibility. The Client_auth_token is to be passed for this call. The warm up for Eligibility happens when the merchant calls Initiate(). Juspay SDK does the eligibility check and in the background when Initiate starts to keep the latency minimal for Merchant.




### Step 2 App Pay Txn


This operation initiates the transaction. The merchant has to get order_id from order_create call done by Merchant server and then trigger this call on Juspay SDK with the required parameters.



## Sample Code Snippets:
### Sample Request:

#### CRED Eligibility Code Snippet:

```cred eligibility
{
    "requestId": "eee6f65e-23dc-42e1-ad7c-ec3cddd64ac9",
    "service": "in.juspay.hyperapi",
    "payload": {
        "action": "eligibility",
        "amount": "1.00",
        "clientAuthToken": "tkn_abcejvmodr",
        "data": {
            "apps": [
                {
                    "checkType": [
                        "cred"
                    ],
                    "mobile": "7032290000",
                    "udf": {
                        "key1": "value1"
                    },
                    "gatewayReferenceId": {
                        "cred": "#gatewayReferenceIdForCredChecktype"
                    }
                }
            ],
            "cards": [],
            "wallets": []
        }
    }
}
```

#### App Pay Txn Code Snippet:

```app pay txn
{
    "requestId": "eee6f65e-23dc-42e1-ad7c-ec3cddd64ac9",
    "service": "in.juspay.hyperapi",
    "payload": {
        "action": "appPayTxn",
        "orderId": "hyperorder45314",
        "paymentMethod": "CRED",
        "clientAuthToken": "tkn_0e37edc631d647fdb606ab48ccfc4213",
        "application": "CRED",
        "walletMobileNumber": "7032290000"
    }
}
```

### Sample Response:

#### CRED Eligibility:
```json
{
    "service": "in.juspay.hyperapi",
    "requestId": "eee6f65e-23dc-42e1-ad7c-ec3cddd64ac9",
    "payload": {
        "action": "eligibility",
        "wallets": [],
        "cards": [],
        "apps": [
            {
                "paymentMethodsEligibility": [
                    {
                        "paymentMethodType": "WALLET",
                        "paymentMethod": "CRED",
                        "layout": {
                            "title": "Pay with CRED",
                            "subText": "pay 10% off upto Rs 100 using your CRED coins",
                            "icon": "https://web-assets.cred.club/_next/assets/images/home-page/cred-logo.png",
                            "ctaText": "Pay with CRED",
                            "bannerText": "CRED offers you the most rewarding experience, pay seamlessly using your CRED coins. #killthebill"
                        },
                        "isEligible": true,
                        "flowType": "intent",
                        "description": "cred-eligibility"
                    }
                ]
            }
        ]
    },
    "errorMessage": "",
    "errorCode": "",
    "error": false
}
```

#### App Pay Txn:
```plaintext
{
    "service": "in.juspay.hyperapi",
    "requestId": "eee6f65e-23dc-42e1-ad7c-ec3cddd64ac9",
    "payload": {
        "action": "appPayTxn",
        "status": "CHARGED",
        "otherInfo": {},
        "orderId": "hyperorder45314"
    },
    "errorMessage": "",
    "errorCode": "",
    "error": false
}
```



---

## See Also

- [Juspay-Safe](https://juspay.io/in/docs/ec-headless/android/additional-features/juspaysafe)
- [SIMPL Paylater](https://juspay.io/in/docs/ec-headless/android/additional-features/simpl-paylater)
