Countries requiring the parameter | Value | Description |
---|---|---|
BR | first_name | First name |
BR | last_name | Last name |
BR | cpf_number | CPF - Cadastro de Pessoas Físicas (11 digits unformatted) |
curl --location --request POST 'https://merchant-api.stg.paypaga.com/payurl' \
--header 'Authorization;' \
--header 'Content-Type: application/json' \
--data-raw '{
"merchant_id": "00aa0bb0-0000-0000-00cc-0000dd0eee00",
"country_code": "MX",
"currency": "MXN",
"transaction_total": 10.26,
"merchant_transaction_reference": "custom-reference-45678",
"payment_method_codes": [
"BNKTR"
],
"payment_method_data": [
{
"payment_method_code": "BNKTR",
"transaction_fields": [
{
"name": "first_name",
"value": "Test"
},
{
"name": "last_name",
"value": "Person"
},
{
"name": "cpf_number",
"value": "12312312312"
}
]
}
]
}'
{
"transaction_id": "20240902-2222-3333-cccc-555555aa55a5",
"transaction_date": "2024-09-02",
"merchant_id": "00aa0bb0-0000-0000-00cc-0000dd0eee00",
"payurl_id": "330004d4-a55a-4b44-cc55-d2dddd2ddd22",
"message": "PayURL Created successfully",
"version": "0.1",
"pay_url": "https://payurl.dev.paypaga.com/payment?payurl_id=330004d4-a55a-4b44-cc55-d2dddd2ddd22"
}