Without User Interface

This article aims to explain which are the steps for Creating a Deposit with Card Token, the tools and Endpoints involved and how each one of them should be used.

Requirements:

In case of willing to implement this sort of integration, PCI AOC Certificate is not needed.

1. Generation of the card token

Putting it simple; our Cards SDK Without User Interface receives card details as input, and returns a card_token as an output.

Please make sure of:

  • saving that card_token for further usage in the following step.

  • not storing any card details on your backend.

This is key for remaining the deposit creation PCI Compliant. Just let the SDK handle the card details in the frontend.

The token created can be used within 10 minutes. After that, it is no longer valid.

2. Create the transaction

In order to create the transaction you should send the card_token generated with all the transaction details. Make sure of sending the generated token, as card_token.

Example request

{
    "invoice_id": "800000001",
    "amount": 1000,
    "country": "BR",
    "currency": "BRL",
    "payer": {
        "id": "11111",
        "document": "84932568207",
        "document_type": "CPF",
        "email": "johnSmith12@hotmail.com",
        "first_name": "John",
        "last_name": "Smith",
        "phone": "+233852662222",
        "birth_date": "19880910",
        "address": {
            "street": "Calle 13",
            "city": "bahia",
            "state": "SP",
            "zip_code": "12345-678"
        }
    },
    "card_token":"C4RD_T0K3N_G3N3R4T3D_W1TH_TH3_SDK",
    "description": "Test transaction",
    "client_ip": "123.123.123.123",
    "device_id": "knakvuejffkiebyab",
    "fee_on_payer": false
}

Last updated