PSE

Call the Payments API to request payments via PSE on Colombia


POST /v2/transaction/checkout

Request

curl -v --location --request POST 'https://sandbox.smartfastpay.com/v2/transaction/checkout' \
    --header 'Content-Type: application/json' \
    --header 'Authorization: Bearer <Access-Token>' \
    --data-raw '{
        "customer": {
            "id": "2663ded1-874a-480a-8b0e-8f6117415a70",
            "name": "John Doe",
            "email": "john.doe@teste.com",
            "document": {
                "type": "CC",
                "number": "12345678"
            },
            "phone": "+573051000002",
            "address": {
                "address_1": "Dare Groves",
                "address_2": null,
                "number": "130",
                "neighborhood": "Courtney Jacobi",
                "city": "East Savionbury",
                "state": "CUN",
                "postal_code": "757126",
                "country_code": "COL"
            }
        },
        "country": "COL",
        "payment_method": ["pse"],
        "notification_url": "https://annalise.net",
        "transaction": {
            "id": "37e9d594-630c-412c-b8d0-9a7e00cb5b14",
            "currency": "COP",
            "amount": 34.74,
            "redirect_url": "https://www.smartfastpay.com/"
        }
    }'

Parameters details

Response (URL)

{
	"requestId": "885b5a8b3b6d618fc00af18acfc6398e\/5600721297656558446;o=1",
	"data": {
		"url": "https:\/\/sandbox-checkout.smartfastpay.com\/v1\/67407dc8-594d-4bcd-ba31-asdf\/cHNl\/eyJkb2N1bWVudCI6eyJ0eXBlIjoiQ0MiLCJudW1iZXIiOiIxMjM0NTY3OCJ9LCJwaG9uZSI6Iis1NzMwNTEwMDAwMDIiLCJhZGRyZXNzIjp7ImFkZHJlc3NfMSI6IkRhcmUgR3JvdmVzIiwiYWRkcmVzc18yIjpudWxsLCJudW1iZXIiOiIxMzAiLCJuZWlnaGJvcmhvb2QiOiJDb3VydG5leSBKYWNvYmkiLCJjaXR5IjoiRWFzdCBTYXZpb25idXJ5Iiwic3RhdGUiOiJDVU4iLCJwb3N0YWxfY29kZSI6Ijc1NzEyNiIsImNvdW50cnlfY29kZSI6IkNPTCJ9LCJleHRyYSI6eyJiYW5rX2NvZGUiOiIxMDIy9999",
		"transaction_id": "67407dc8-594d-4bcd-ba31-ab5ff17ddfdd",
		"expires_in": 1727202935
	}
}

Response details following the link: overview

Response (HTML)

Last updated