Credit Card

Call the Credit Card API to request payments via Credit Card.


POST /credit_card

Request

curl -v --location --request POST 'https://sandbox.smartfastpay.com/credit_card' \
    --header 'Content-Type: application/json' \
    --header 'Authorization: Bearer < Access-Token >' \
    --data-raw '{
        "customer_id": "58f0c005-3b7d-4c75-81f3-93b9a6fee864",
        "name": "Richard Roe",
        "email": "richard@roe.com",
        "document": "16972691419",
        "amount": 300,
        "currency": "BRL",
        "max_installments": 4,
        "callback": "http://mysite.com/api/notification",
        "transaction": {
            "id": "b08e3897-6505-4bb4-81a5-6e3a1d29e277"
            "redirect": {
                "url": "http://mysite.com/success_payment"
            }
        }
    }'

Parameters details

Response

{
    "requestId": "2840429ae5547ede3850f7464ec3a1cd\15166459175723748126;o=1",
    "data": {
        "id": "11acb6a4-ea1d-4bf6-a87d-3f7b5c0340f9",
        "status": "pending",
        "expires_in": 1681219918,
        "payment": {
            "method": "credit_card"
        },
        "values": {
            "total": "28.00",
            "subtotal": "28.00",
            "exchange": "1.00",
            "fee": 0
        },
        "credit_card": {
            "url": "https:\\app.credit-card.com\checkout\NjQzNTVhNDc3OWNiYzk0MTBjN2ViMWU2"
        }
    }
}

Response details

Last updated