Skip to main content
Skip table of contents

API de Autorización con Yape

Request

Objeto method_details para Yape 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

phone

Objeto que contiene información del titular de Yape

Objeto

SI

phone.country_code

Código del pais del teléfono

Cadena alfanumérica

String

SI

phone.subscriber

Numero del teléfono

Cadena numérica

String

SI

otp

Código OTP de la Billetera Yape

Cadena numérica

String

SI

Ejemplo

JSON
{
    "action": "authorize",
    "channel": "ecommerce",
    "merchant_code":"b0deb6f3-e51a-48a7-9268-f1441d46f7bd",
    "merchant_operation_number": "5974484",
    "payment_method": {
        "method_name": "YAPE",
        "method_details": {
            "callback_url": "https://pay-me.com/callback",
            "phone": {
                "country_code": "+51",
                "subscriber": "969929157"
            },
            "otp": "557454"
        }
    },
    "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 tarjetas que se encuentra dentro de la trama de respuesta: API de Autorizacion.

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

Ejemplo

JSON
{
    "success": "true",
    "action": "authorize",
    "merchant_code":"b0deb6f3-e51a-48a7-9268-f1441d46f7bd",
    "merchant_operation_number": "5974484",
    "transaction": {
        "transaction_id": "2be5s7xu4i6fzrmbvp167inb2",
        "state": "AUTORIZADO",
        "amount": "15000",
        "currency": "604",
        "redirect_url": null,
        "expiration": null,
        "processor_response": null
    },
    "meta": {
        "status": {
            "code": "00",
            "message_ilgn": [
                {
                    "locale": "es_PE",
                    "value": "Se proceso correctamente"
                }
            ]
        }
    }
}
JavaScript errors detected

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

If this problem persists, please contact our support.