Get Card Information API

Check isDomestic

The Get Card Information (Check is Domestic) API is used to get if the card (passed in cardBin info API) is domestic or international. This API returns the following parameters:

  • card_type
  • category
  • issuing_bank
  • is_atmpin_card

For this API, you need to set the following parameter in the payment params similar to the following code block:

Step 1: Create Post Request

MerchantWebService merchantWebService = new MerchantWebService();
merchantWebService.setKey(merchantKey); // Merchant key
merchantWebService.setCommand(PayuConstants.CHECK_IS_DOMESTIC);
merchantWebService.setVar1("<pass the card Bin number>")
merchantWebService.setHash(<Api Command Hash>) // Pass the Hash value, and use the below formula

Step 2: Get onGetCardInformationResponse

@Override
public void onGetCardInformationResponse(PayuResponse payuResponse) {
   Log.d(TAG, "onGetCardInformationResponse: " + payuResponse.getRawResponse());
}