Página Checkout

Cómo solicitar una página checkout.

This endpoint allows you to request a checkout page.

POST https://sandbox.transfersmile.com /api/checkout

Headers

Name
Type
Description

Content-Type*

String

application/json; charset=UTF-8

Authorization*

String

SHA256($sorted_params + $app_key)

AppId*

String

Su APP ID en la plataforma de payout

Request Body

Name
Type
Description

user_id*

String

ID de usuario

custom_code*

String

Payout ID de merchant

fee_bear*

String

Uno entre [beneficiario | merchant]

source_currency*

String

Moneda de cuenta de merchant

- Uno entre: USD, EUR, GBP, BRL -

payout_currency*

String

Payout/Moneda recibida

- Una entre: USD, BRL, MXN -

payout_amount*

String

Monto de Payout, Numérico

timeout

Integer

default & max 1800 segundos

notify_url*

String

Donde Pagsmile enviará la notificación

return_url*

String

Donde el usuario completa el payout, donde se regresará.

additional_remark*

String

Descripción de transacción

- Long debe ser menos de 40 -

country

String

BRA por Brasil

MEX por Mexico

GLOBAL por PayPal

method

String

Método de pago

- e.g. PIX, SPEI, PayPal,BANKTRANSFER -

{
    "code": 200,
    "msg": "success",
    "time": 1639473556,
    "data": {
        "checkout_url": "https://sandbox-payout.pagsmile.com/?t=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyX2lkIjoiMTAwMDEiLCJwYXlvdXRfaWQiOiJUUzIwMjExMjE0MDkxOTE2NHExNE4yVUhCVTVYQiIsImN1c3RvbV9jb2RlIjoiY2hlY2tvdXRfdGVzdF8xMDAwMDQiLCJmZWVfYmVhciI6Im1lcmNoYW50Iiwic291cmNlX2N1cnJlbmN5IjoiVVNEIiwicGF5b3V0X2N1cnJlbmN5IjoiVVNEIiwicGF5b3V0X2Ftb3VudCI6IjEwLjAxIiwibm90aWZ5X3VybCI6Imh0dHBzOi8vc2FuZGJveC50cmFuc2ZlcnNtaWxlLmNvbS9hcGkvbm90aWZ5L2RlbW8iLCJyZXR1cm5fdXJsIjoiaHR0cHM6Ly93d3cuYmFpZHUuY29tIiwiYWRkaXRpb25hbF9yZW1hcmsiOiJjaGVja291dCB0ZXN0IiwiY291bnRyeSI6IkJSQSIsInNlc3Npb25fdGltZW91dCI6MTgwMCwiY3JlYXRlZF9hdCI6MTYzOTQ3MzU1NiwiaXNzIjoiUGFnc21pbGUgLSBUcmFuc2ZlcnNtaWxlIiwiZXhwIjoxNjM5NDc1MzU2LCJqdGkiOiIzMiJ9.6Bmm2jrJUtlfWy9FrxPagsmilePayouttIwbhUx-OoCdU2aZMw"
    }
}

Ejemplo de Request

curl --location --request POST 'https://sandbox.transfersmile.com/api/checkout' \
--header 'AppId: 94FAC**********************68548' \
--header 'Authorization: d6181db0d6548b94b162e75d095b59147172d914699f83b2bd17951a671b6302' \
--header 'Content-Type: application/json' \
--data-raw '{
    "user_id": "10001",
    "custom_code": "my_checkout_test_10001",
    "source_currency": "USD",
    "payout_currency": "BRL",
    "fee_bear": "merchant",
    "payout_amount": "10.01",
    "notify_url": "https://sandbox.transfersmile.com/api/notify/demo",
    "return_url": "https://merchant.return.url",
    "additional_remark": "pagsmile checkout test",
    "country": "BRA"
}'   
Front End
Especificaciones

WEB

128px * 64px

H5

42px * 42px

Países Habilitados

Código de país
Método de Pago
Moneda Fuente
Moneda de Payout

BRA(Brasil)

PIX, Banktransfer

USD, BRL

BRL

MEX(Mexico)

SPEI

USD, MXN

MXN

GLOBAL

PayPal

USD

USD

Last updated