---
page_title: CRED Credit Card reward
product: Payment Method Integrations
platform: Express Checkout SDK
page_source: https://juspay.io/in/docs/payment-method-integrations/express-checkout-sdk/reward-integration/cred-credit-card-reward
llms_txt: https://juspay.io/in/docs/llms.txt
product_llms_txt: https://juspay.io/in/docs/payment-method-integrations/llms.txt
---


## CRED Reward Layer Integration



CRED powered rewards and cashback on credit card transactions. Reward info to be displayed beside credit card payment option and then display cashback application on UI post successful credit card transaction.

> **Note**
> Since this is S2S integration, pre nudge display needs to be handled by the merchant. Juspay SDK has the capability to show post nudge as part of the transaction loader




### Step 1 : Updating SDK dependencies



Update to the latest stable SDK version and latest micro-app versions provided by Juspay support for this feature

> **Note**
> Latest micro-app version will be provided OTA by Juspay team. Kindly contact Juspay support for this.



> **Note**
> There is a backend config enablement required to facilitate this flow. Please get in touch with your Juspay POC for the same.




### Step 2 : Update CRED Gateway



In this step, Merchants would need to add “Business Partner Id“ obtained from CRED Team on the PG Control Center. Attaching screenshot for the same.

![Image](https://dth95m2xtyv8v.cloudfront.net/tesseract/assets/payment-method-integrations/cred%3C%3Ecard%3C%3Ereward-hG4BU.png)
*PG Control Center*




### Step 3 : SDK API Calls




### Step 3.1 Eligibility Call


Merchant needs to do SDK process call while rendering the checkout screen with "action": "eligibility". This call is done so that the reward info can be readily fetched and shown.Please refer to the sample eligibility request/response provided alongside




### Step 3.2 Card Transaction Request


Merchant needs to make the card transaction call with the correct offer data that is received in the eligibility call mentioned above. Based on this the CRED animation is displayed post transaction.


#### Card Txn Request Code Snippet:

```card txn request
{
    "service": "in.juspay.ec",
    "requestId": "f7700655-4afb-4809-9255-a20aabf27cbc",
    "payload": {
        "orderId": "hyperorder1698417375765",
        "paymentMethod": "VISA",
        "cardNumber": "4591560000000007",
        "cardExpMonth": "12",
        "cardExpYear": "25",
        "cardSecurityCode": "240",
        "credOfferData": [
            {
                "paymentMethodType": "CARD",
                "cardType": "CREDIT",
                "offerData": [
                    {
                        "preActionNudge": "Use credit card & get ₹10 cashback on CRED app",
                        "postActionNudge": "Claim your cashback on CRED app",
                        "paymentMethodType": "CARD",
                        "isEligible": true
                    }          
       ]
            }
        ],    
        "clientAuthToken": "tkn_8595258ef79d4f34b70939c0158bc579",
        "action": "cardTxn",
        "accountRefId": null
    }
}

```


> **Note**
> **credOfferData** received in eligibility under payment method type CARD needs to be passed back in correct format in txns request based on which CRED animation is displayed post transaction




#### Card Txn Response Code Snippet:

```card txn response
{
    "service": "in.juspay.ec",
    "requestId": "f7700655-4afb-4809-9255-a20aabf27cbc",
    "payload": {
        "txnUuid": "moz3x7M5MLsEkM5ZjJC",
        "status": "CHARGED",
        "otherInfo": {
            "url": "https://api.juspay.in/end?status_id=21&status=CHARGED&order_id=hyperorder75189&signature=6O7eP9XnT0BVyaBgdjL92xSwBpeUjgs85VuxecfRd2c%3D&signature_algorithm=HMAC-SHA256",
            "realtime": {
            	"merchantId": "test_merchant",
            	"customerId": "balas0011@gmail.com",
            	"clientId": "test_merchant",
            	"environment": "production",
            	"merchantLoader": "false",
               "lastVisitedUrl": "https://test.payu.in/0f573e02a5c1ca13e6b0594af4252a1ca42e1602f8da237d0f9a15dc2802bcad/CommonPgResponseHandler.php"
            }
        },
        "orderId": "hyperorder1698417375765",
        "gatewayResponseMessage": "Your transaction is successful",
        "gatewayResponseCode": "00",
        "action": "cardTxn",
    },
    "errorMessage": "",
    "errorCode": "",
    "error": false
}

```




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

#### Request Code Snippet:

```request
{
    "service": "in.juspay.ec",
    "requestId": "e17ee878-d1d1-44fc-924a-73926e0268d1",
    "payload": {
        "merchant_key_id": "8321",
        "environment": "sandbox",
        "data": {
            "apps": [
                {
                    "mobile": "7224996066",
                    "gatewayReferenceId": null,
                    "checkType": [
                        "credInappOffer",
                        "credCreditCardOffer"
                    ]
                }
            ]
        },
        "clientAuthToken": "tkn_a8ebe4d5a8c54c648e4ac4f7869e7c1f",
        "amount": "1.00",
        "action": "eligibility"
    },
    "merchant_id": "test_merchant",
    "customer_id": "7224996066ffairha",
    "client_id": "test_merchant"
}

```

### Sample Eligibility Response:

#### Response:
```json
{
    "action": "eligibility",
    "apps": [
        {
            "paymentMethodsEligibility": [
                {
                    "paymentMethodType": "UPI",
                    "paymentMethod": "UPI",
                    "layout": {
                        "preActionNudge": "Get Upto ₹100 cashback on CRED app",
                        "postActionNudge": "Save Upto ₹100 on next order using CRED Pay"
                    },
                    "isEligible": true,
                    "flowType": "InApp",
                    "description": "Cred Inapp Offer"
                },
                {
                    "paymentMethodType": "CARD",
                    "layout": {
                        "preActionNudge": "Use credit card & get ₹10 cashback on CRED app",
                        "postActionNudge": "Claim your cashback on CRED app"
                    },
                    "isEligible": true,
                    "flowType": "Card",
                    "description": "Cred Card Offer"
                }
            ]
        } 
           ] 
}

```



---

## See Also

- [Loyalty Rewardz](https://juspay.io/in/docs/payment-method-integrations/express-checkout-sdk/reward-integration/loyalty-rewardz)
- [Qwikcilver Gift Cards](https://juspay.io/in/docs/payment-method-integrations/express-checkout-sdk/gift-card-integration/qwikcilver-gift-cards)
