Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Field

Description

Required

Length

secret

Secret phrase as defined in the PagBrasil Dashboard

Yes

128

pbtoken

Token assigned to your merchant account.
Your token is displayed at the PagBrasil Dashboard, menu Account > Settings.

Yes

32

order

Order number

Yes

64

amount_refunded

Amount requested to be refunded (Brazilian Real)

Yes

57.2

customer_bank

Only used when a refund is rejected. See note 6.2, item "c".

No

40

customer_branch

Only used when a refund is rejected. See note 6.2, item "c".

No

12

customer_account

Only used when a refund is rejected. See note 6.2, item "c".

No

12

...

Field

Description

Length

secret

Secret phrase as defined in the PagBrasil Dashboard

128

payment_method

Value "X". This value specifies that the data being posted is the response to a PagBrasil Pix refund request.

1

order

Order number

64

amount_brl

Amount in Brazilian Real

57.2

amount_refunded

Amount refunded (Brazilian Real)

57.2

payment_status

C = Chargeback See note "a"   
P = Refund Processed See note "b"   
J = Refund rejected See note "c"   

1

signature

HMAC-MD5 hash that authenticates the IPN.
See note "d"   

32

...

Anchor
6.2.c
6.2.c
c) The payment status is returned as "J" (Refund rejected) when the refund request was not accepted by the wallet/bank. In this case our system will also send a notification to the email address you registered at the PagBrasil Dashboard, and you may refund the transaction through PagBrasil via bank transfer, by including the following parameters when requesting the refund via API: /div

customer_bank = Customer's bank number (número do banco). Please find the bank numbers here (column "Número Código").
customer_branch = Branch number (agência).
customer_account = Account number (conta corrente). Must include the hyphen and the verification digit; for example: "12345-6".

...