Wallet

Cómo utilizar Wallet para realizar un payin en México.

Payin por Wallet

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

Este endpoint te permite usar Wallet para realizar un payin en Mexico.

Headers

Request Body

{
    "code": "10000",
    "msg": "Success",
    "trade_no": "2022010110293900084",
    "out_trade_no": "202201010354004",
    "web_url": "",
    "trade_status": "PROCESSING"
}

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": "202201010354004",
    "method": "Wallet",
    "channel": "Todito",
    "order_amount": "12.01",
    "order_currency": "MXN",
    "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",
    "account_number": "2660893989", //for test environment
    "account_verification_code":"1303", //for test environment
    "customer" : {
        "identify": {
            "type": "RFC",
            "number": "MAMB780915969"
        },
        "name": "Test User Name",
        "email": "test@pagsmile.com",
        "phone": "523135759140"
    },
    "address" : {
        "zip_code": "37900",
    }'

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