Direct card payment

A direct card payment is a payment transaction in which your customer has authorized you to take money from their card using their full card details. However, the Card details are sent as an encrypted string.

Posting a direct card request is the same as posting a card payment however theencrypted_card parameter will have to be specified. By providing this field, kitegateway will know that the transaction is a direct card payment.

Providing encrypted_card

Encryption

1. Create JSON of the Card details

{
    "full_name": "Nakimbugwe Racheal",
    "card_number": "012345666777888999",
    "expiry_month": "02",
    "expiry_year": "24",
    "cvv": "111",
    "billing_address": "Some Street",
    "billing_city": "Some City",
    "billing_zip": "88653",
    "billing_state": "JK",
    "billing_country": "UK"
}

2. Downloading Public Key

3.Encryption Card

4. Set card_cipher parameter

From the step above, the resultant string after encryption is what we need to set as the encrypted_card and include it in the Post Collection Request when making a Card Collection Request

circle-info

When the encrypted_card the parameter is specified in the collection request body, Kitegateway will know that you want to make a direct card payment.

Since it's 3D processing, the response object will contain the bank authentication URL where you will redirect the customer to complete the payment.

Last updated