Skip to main content
Skip table of contents

API de Autorización con QR

Request

Objeto method_details para QR que se encuentra dentro de la trama de autorización: API de Autorizacion.

Field

Description

Accepted Value

Type

Obligatorio

callback_url

URL donde se realizará la notificacion host to host (server to server)

Cadena alfanumérica

String

NO

Ejemplo

JSON
{
    "action": "authorize",
    "channel": "ecommerce",
    "merchant_code":"b0deb6f3-e51a-48a7-9268-f1441d46f7bd",
    "merchant_operation_number": "5733813",
    "payment_method": {
        "method_name": "QR",
        "method_details": {
            "callback_url": "https://pay-me.com/callback"
        }
    },
    "payment_details": {
        "amount": "15000",
        "currency": "604",
        "billing": {
            "first_name": "Pedro",
            "last_name": "Miranda",
            "email": "pedro@pay-me.com",
            "phone": {
                "country_code": "+51",
                "subscriber": "999835685"
            },
            "location": {
                "line_1": "Av. Casimiro Ulloa 333",
                "line_2": "Miraflores",
                "city": "Lima",
                "state": "Lima",
                "country": "Peru"
            }
        },
        "shipping": {
            "first_name": "Pedro",
            "last_name": "Miranda",
            "email": "pedro@pay-me.com",
            "phone": {
                "country_code": "+51",
                "subscriber": "999835685"
            },
            "location": {
                "line_1": "Av. Casimiro Ulloa 333",
                "line_2": "Miraflores",
                "city": "Lima",
                "state": "Lima",
                "country": "Peru"
            }
        },
        "customer": {
            "first_name": "Pedro",
            "last_name": "Miranda",
            "email": "pedro@pay-me.com",
            "phone": {
                "country_code": "+51",
                "subscriber": "999835685"
            },
            "location": {
                "line_1": "Av. Casimiro Ulloa 333",
                "line_2": "Miraflores",
                "city": "Lima",
                "state": "Lima",
                "country": "Peru"
            }
        },
        "product_details": []
        }
    }
}

Response

Objeto processor_response para pagos con QR que se encuentra dentro de la trama de respuesta: API de Autorizacion.

Este campo es variable y modificable en el tiempo, tomarlo como referencial.

Field

Description

Accepted Value

Type

date

Fecha y hora en la que se generó el QR.

Fecha y Hora

String

qr_image

Imagen de QR en Base 64

Cadena alfanumérica

String

result_message

Objeto con información del resultado de la autorización

 

Object

result_message.code

Código del resultado de la generación del QR

Cadena numérica

String

result_message.description

Descripción del resultado de la generación del QR

Cadena alfanumérica

String

Ejemplo

JSON
{
    "success": "true",
    "action": "authorize",
    "merchant_code": "b0deb6f3-e51a-48a7-9268-f1441d46f7bd",
    "merchant_operation_number": "5733813",
    "transaction": {
        "transaction_id": "6swlm813vr99wn1pxo1bg55hi",
        "amount": "15000",
        "currency": "604",
        "state": "PENDIENTE",
        "redirect_url": null,
        "expiration": {
            "date": {
                "day": "2024-02-01",
                "time": "17:33:41",
                "timezone": "America/Lima"
            },
            "unix_time": 1706826821
        },
        "processor_response": {
            "date": "2024-01-31 17:33:44.271175",
            "qr_image": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAV4AAAFeAQAAAADlUEq3AAAFbElEQVR42u2bPY7rSAyEaThQ6CPoJvbFBEiALmbfREdwqEAwl/WxW36TPGywCbEzgSBD5QHU/CsWafN//3fYL/j/BX6b2eVt436/LXGx2ePjNO52O8b9Egi73+JiNlcFz+4v980e8Y14EHd66p/bYvvjfd3c47txKQuebHgJZ7d1i4u76Uj2y/vqcULr5q8AxwmVBvuij2Y82HUu+G/czdvwDMNXB8uqn7A0hvdneK9/bJIrrx5+MJUG48/x5mbXuFPoEqa6xMewedz9dP5iYDLSNA6vv1x+pq9aYP4UsGFQ2XyJp3EQBPH+0MPn7WcBqgcOg/q2K2DxbL26RXVpf3HHkcxVwes2eLitTsMHuffwxLP1b1RYVFNMR1IUrGT0jCISRtbXPFIQNCAKi/5L4ML6qjiFwb02XnUA66ZKotw0Ke/qcCIXD5+M7opgGEAUFtXGsOqSECMDY30+3suCw5aDMlL47qpzCdpzCZKQWUpFU37graZUBCtWG6XTg/hIEcGVdxECeft2+nM9MG8efyoiYnhi5paenXSB7/b0VRCsMOV9idpnMvOoJBaeHa5M5TzoScqCM7PGg0mULliBolZ5d4TMWvI6rwrW3UlcdQYj1ADGE+VzgsIqpueqYKwqj7U4l1cWTd/wbJ1GVtPoP6qClW2fNwjeoW9I2jBRWLtml4XwEedSFdxfH6YKAY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8yVddWU/Br+jHtbXXBT2tCG25KJ3LvvS7VxTWGw2Xd6mE9zw/S2tl/NSD4e/vixYTHw789Ff8H/Afgfme4+liG9sdEAAAAASUVORK5CYII=",
            "result_message": {
                "code": 0,
                "description": "Exito"
            }
        }
    },
    "meta": {
        "status": {
            "code": "00",
            "message_ilgn": [
                {
                    "locale": "es_PE",
                    "value": "Se genero el qr correctamente"
                }
            ]
        }
    }
}
JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.