---
page_source: https://juspay.io/sea/docs/express-checkout-sdk-global/capacitor/mandates/cardpayments
page_title: Card-Payments
---


# Credit / Debit Card transaction




### Step 1.1. Card - Info


This operation helps to get Card details using card bin (First 6 digits of the card). You can also use this operation to check if a card is eligible for ATM PIN payments.Use the following `optional`parameters to check card eligibility for -

1. Mandates - `"checkMandateSupport":true`(Mandatory to pass for Mandate Payments)

2. Tokenization - `"checkTokenizeSupport":true`




### Step 1.1. Card payment


Refer below details to create Process Payload for Card Txns.


### Payload
- **RequestId**:
  - Description: Unique uuid-v4 string
    
    Example: abcd-12345-abcd-12345
  - Value: value
  - Tags: String, Mandatory
- **Service**:
  - Description: Value: in.juspay.hyperapi
  - Tags: String, Mandatory
- **Payload**:
  - Description: Parameters required to call Hyper SDK API
  - Value:
    - **Action**:
      - Description: Must be cardTxn for Card Process calls.
      - Tags: String, Mandatory
    - **OrderId**:
      - Description: order id pertaining to the order for which the payment is started.
      - Tags: String, Mandatory
    - **CardNumber**:
      - Description: A valid credit/debit card number entered by the user.
      - Tags: String, Mandatory
    - **CardExpMonth**:
      - Description: Represent the expiry month of the card as MM (two digits only)
      - Tags: String, Mandatory
    - **CardExpYear**:
      - Description: Represent the expiry year of the card as YY (two digits only)
      - Tags: String, Mandatory
    - **CardSecurityCode**:
      - Description: CVV of the card. Usually three digits. Optional for all VISA saved cards, PLUXEE | SODEXO saved cards, and saved cards of select issuing banks of MASTERCARD
      - Tags: String, Mandatory
    - **ClientAuthToken**:
      - Description: Required for client side authentication
      - Tags: String, Mandatory
    - **Tokenize**:
      - Description: This is a boolean variable and accepts true/false. If set to true, then the card will be tokenised when the transaction is successful. Else, the card will not be saved.
      - Tags: boolean
    - **NameOnCard**:
      - Description: Card holder name. Should contain alphabetical characters only.
      - Tags: String
    - **PaymentMethod**:
      - Description: This is network of the card number provided. One of VISA/MASTERCARD/MAESTRO/AMEX/RUPAY. Mandatory for AMEX to verify the input of 4 digit CVV.
      - Tags: String
    - **Offers**:
      - Description: The key offers should be passed only when juspay offers are being used. The value for this key can set as the offerID which is received from /v1/offers/list api
      - Tags: Array of Strings
    - ** authType**:
      - Description: THREE_DS/OTP/VISA_CHECKOUT
      - Tags: String
    - **ShouldCreateMandate**:
      - Description: This is a customer’s consent flag. This should be always **TRUE**  in case of a mandate transaction.
      - Tags: Boolean, Mandatory
  - Tags: JSON, Mandatory




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

#### Card Mandate Code Snippet:

```card mandate
{
    "requestId": "9ce6c34b-d200-4222-a2d7-13d683ac4a4d",
    "service": "in.juspay.hyperapi",
    "payload": {
      "clientAuthToken": "tkn_997d200379944f8fa0c21c6b8dad8221",
      "action": "cardTxn",
      "orderId": "hyperorder79736",
      "paymentMethod": "VISA",
      "cardNumber": "4**************4",
      "cardExpMonth": "04",
      "cardExpYear": "26",
      "cardSecurityCode": "***",
      "shouldCreateMandate": true,
      "saveToLocker": true,
      "merchantId": "picasso"
    }
}
```

#### Card Info Code Snippet:

```card info
{
    "requestId": "4d73cc62-538a-45f1-9c9e-5f002a65e89c",
    "service": "in.juspay.hyperapi",
    "payload": {
        "action": "cardInfo",
        "cardBin": "459162",
        "checkMandateSupport":true,        // Optional parameter to check Mandates Eligibility
        "checkTokenizeSupport":true,       // Optional parameter to check Tokenization Eligibility
        "clientAuthToken": "tkn_0e37edc631d647fdb606ab48ccfc4213"
    }
}
```

### Sample Response:

#### Card Mandate:
```json
{
    "requestId": "eee6f65e-23dc-42e1-ad7c-ec3cddd64ac9",
    "service": "in.juspay.hyperapi",
    "error": false,
    "payload": {
        "orderId": "hyperorder45314",
        "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": {
                "requestId": "d5de7279-7eff-4ebb-9510-54053298f723",
                "merchantId": "picasso",
                "customerId": "balas0011@gmail.com",
                "clientId": "picasso_android",
                "environment": "production",
                "merchantLoader": "false",
                "isWrapper": "false",
                "lastVisitedUrl": "https://test.payu.in/0f573e02a5c1ca13e6b0594af4252a1ca42e1602f8da237d0f9a15dc2802bcad/CommonPgResponseHandler.php"
            }
        }
    },
    "errorCode": "",
    "errorMessage": ""
}
```

#### Card Info:
```plaintext
{
    "service": "in.juspay.hyperapi",
    "requestId": "eee6f65e-23dc-42e1-ad7c-ec3cddd64ac9",
    "payload": {
        "action": "cardInfo",
        "type": "CREDIT",
        "object": "cardbin",
        "id": "512345",
        "country": "INDIA",
        "brand": "MASTERCARD",
        "bank": "HDFC Bank"
    },
    "errorMessage": "",
    "errorCode": "",
    "error": false
}

```

