Refunding Payments
#
About this guideIn this guide, we will describe the step-by-step process for you to request refunds for payments generated by our logged-in payment solution.
#
Before StartingBefore processing online payments by our PicPay 1-Click solution, you must have a valid, non-expired access_token. You can check how to generate your tokens in this article.
#
How It works#
AuthenticationIn addition to the access_token
, generated dynamically, the payment end-point needs an Api-Key
that will be informed with your client_id
and client_secret
.
about the Api-Key
The Api-Key
must not be shared in any way and must be stored securely on their servers.
#
Requesting a refund of a charge to the user's walletThe refund request must be generated with the transaction_id
or reference_id
by the end-point v1/payments/refund
, indicating the amount to be refunded in the body of the request. In the example below, we are requesting a refund of BRL 3.00 in the user's wallet.
Information
The transaction_id
is generated when creating the payment.
If the request is successfully processed, it will return an HTTP code 200
#
How will the refund be made?The balance will be returned to the same place where the funds originated:
- If the transaction was made by credit card, it will be reversed on the card;
- If the transaction was made in the balance, the balance will return to the customer's wallet;
- If the transaction is mixed (Balance + Card), part will return as balance in the wallet and part will be reversed on the card;
#
Error messagesWe do not report error codes in the chargeback process. We only inform if the transaction was reversed or not. Example:
#
Next Steps#
Getting helpWe hope this article has helped! If you have any questions, you can consult our FAQ or contact us by email: relacionamento-negocios@picpay.com.