CRED Reward Layer Integration

This document talks about CRED powered rewards and cashback on credit card transactions. The reward info is to be displayed beside credit card payment option and the cashback application has to be displayed on UI post successful credit card transaction.

Note

Since this is S2S integration, both pre and post nudge display needs to be handled by the merchant

Step 1 : Dashboard Enablement

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

PG Control Center
PG Control Center
Note

There is a backend config that Juspay needs to enable in order to facilitate this flow. Please get in touch with your Juspay POC for the same before you start testing the flows.

Step 2: Eligibility API Request and Response

This Eligibility API call is to be done while rendering the checkout screen so that the reward info can be readily fetched and shown. You can find the sample eligibility request and response on the right side of this page.

Sample cURL

Merchants can refer to the following sample cURL for the Eligibility API

Step 3: Transaction API

Note

credOfferData received in eligibility under payment method type CARD needs to be passed back in correct format in txns request for the reward allotment call to happen

cred_offer_data is being passed in metadata to hit reward allot call to CRED.

cred_user_id is passed when the CRED app is present in the device. Pass the cred_user_id only when customerPhone is not passed in order_create

Last updated 1 year ago