...
Please note that this URL shall only be used for integration and testing procedures. Once the Payment Service Agreement is signed, you will receive the production environment's URL when you request your account to go live.
Request parameters:
Field | Description | Length |
---|---|---|
secret | Secret phrase as defined in the PagBrasil Dashboard | 128 |
pbtoken | Token assigned to your merchant account. Your token is displayed at the PagBrasil Dashboard, menu Account > Settings. | 32 |
order | Order number | 64 |
amount_refunded | Amount requested to be refunded (Brazilian Real) | 5.2 |
customer_bank | Only used when a refund is rejected. See note 6.2, item "b". | 40 |
customer_branch | Only used when a refund is rejected. See note 6.2, item "b". | 12 |
customer_account | Only used when a refund is rejected. See note 6.2, item "b". | 12 |
Note: A successful response for the refund request will be "Refund request received".
...
You need to login to the PagBrasil Dashboard and specify the URL you want PagBrasil to notify you when the refund is processed.
PagBrasil's POST:
Field | Description | Length |
---|---|---|
secret | Secret phrase as defined in the PagBrasil Dashboard | 128 |
payment_method | Value "D". This value specifies that the data being posted is the response to a debit card refund request. | 1 |
order | Order number | 64 |
amount_brl | Amount in Brazilian Real | 5.2 |
amount_refunded | Amount refunded (Brazilian Real) | 5.2 |
payment_status | P = Refund Processed See note "a" | 1 |
signature | HMAC-MD5 hash that authenticates the IPN. See note "c" | 32 |
Notes:
a) The payment status is returned as "P" (Refund Processed) when the refund request was accepted by the debit card issuing bank.
...
customer_bank = Customer's bank number (número do banco). Please find the bank numbers here (column "Número CódigoCOD COMPENSAÇÃO").
customer_branch = Branch number (agência).
customer_account = Account number (conta corrente). Must include the hyphen and the verification digit; for example: "12345-6".
...