| field | validation |
|---|---|
| first_name | required, min length 2, max length 50, regexp ^\p{L}*(?:[ '-]\p{L}+)*$ |
| last_name | required, min length 2, max length 50, regexp ^\p{L}*(?:[ '-]\p{L}+)*$ |
| document_number | required, regexp ^(20|23|24|25|26|27|30|33|34)(-?\d{8}-?\d|\d{8}\d)$ |
curl --location --request POST 'https://api.v2.stg.paypaga.com/payment' \
--header 'Authorization;' \
--header 'Content-Type: application/json' \
--data-raw '{
"transaction_id": "20251028-1319-425e-b6e6-6ef9eb963110",
"payment_method_code": "cvu",
"country_code": "AR",
"currency": "ARS",
"transaction_total": 1000,
"merchant_transaction_reference": "abc4561698162696828",
"transaction_fields": [
{
"name": "first_name",
"value": "Barão"
},
{
"name": "last_name",
"value": "Praça"
},
{
"name": "document_number",
"value": "20084908488"
}
]
}'{
"transaction_id": "20251028-1319-425e-b6e6-6ef9eb963110",
"transaction_payment_mode": "ASYNCHRONOUS",
"payment_method_reference": "129916",
"message": "Transaction Successfully",
"version": "0.1",
"next_steps_detail_instructions": [
{
"type": "label",
"key": "payment_method",
"label": "Payment Method",
"description": "cvu"
},
{
"type": "label",
"key": "main_instructions",
"label": "Instrucciones",
"description": "Transfiere el monto exacto al CVU proporcionado para completar tu pago."
},
{
"type": "label",
"key": "bank_account",
"label": "Número CVU",
"description": "50053763000179"
}
]
}