Efectivo

Cómo utilizar efectivo para realizar un payin en Guatemala.

Payin en efectivo

POST https://gateway-test.pagsmile.com/trade/pay

Este endpoint te permite usar efectivo para realizar un payin en Guatemala.

Headers

Request Body

{
    "code": "10000",
    "msg": "Success",
    "trade_no": "2022010106532400030",
    "out_trade_no": "202201010354008",
    "web_url": "",
    "trade_status": "PROCESSING",
    "reference": "732987"
}

Ejemplo

curl --location --request POST 'https://gateway-test.pagsmile.com/trade/pay' \
--header 'Authorization: Basic MTYyNTgyOTIxNDUzMTY2Mzg6UGFnc21pbGVfc2tfZDUwMWQ1ZGNkNTI5OGQ5N2MwNmUzYjI4YjA2OWZjZmY3NDU5ZjY2NzNiMjFjMTFlYTY3NDM5MDgzOTZkOTYxNQ==' \
--header 'Content-Type: application/json' \
--data-raw '{
    "app_id": "162************38",
    "out_trade_no": "202201010354008",
    "method": "Cash",
    "order_amount": "12.01",
    "order_currency": "GTQ",
    "subject": "trade pay test",
    "content": "trade pay test conent",
    "notify_url": "http://merchant/callback/success",
    "return_url": "https://www.merchant.com",
    "buyer_id": "buyer_0101_0001",
    "timestamp": "2022-01-01 03:54:01",
    "timeout_express":"1c",
    "bank":"8404",
    "language_code":"ES",
    "customer" : {
        "identify": {
            "type": "DPI",
            "number": "567554554"
        },
        "name": "Test User Name",
        "email": "test@pagsmile.com",
        "phone": "50233211000"
    },
    "address" : {
    "zip_code": "01130",
    }'

Nota: 162************38 es el test ID de pagsmile para prueba en sandbox, y MTYyNTgyOTIxNDUzMTY2Mzg6UGFnc21pbGVfc2tfZDUwMWQ1ZGNkNTI5OGQ5N2MwNmUzYjI4YjA2OWZjZmY3NDU5ZjY2NzNiMjFjMTFlYTY3NDM5MDgzOTZkOTYxNQ== es el token de autorización asociado con el app ID de prueba.

Favor utilizar tu propio app_id y genera tu propio authorization token al realizar pruebas.

Last updated