Versions Compared

Key

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

...

Refund is basically payment resource related to specific order where sender and destination accounts are switched comparing to original payment created to collect money from the merchant’s customer (when merchant’s customer paid to merchant).

They can, similarly to payments, be processed by one of two flows:

  • Redirect flow

  • Embedded flow

A single order can have multiple refunds.

...

Refund processing

Refunds can be processed via:

...

by redirecting to the URL from the Refund initialization response

...

embedded flow - by calling the Process Refund endpoint with the ID of a refund retrieved from the Refund initialization response

. Processing of refunds is basically the same as processing of order’s payments.

For instructions how to use the embedded flow for refund processing, see https://everifin.atlassian.net/wiki/spaces/EPAD/pages/2467561560/Embedded+Flow#3.-Process-Order-Payment. There are two differences with the payment processing in the embedded flow:

  • endpoint Process Refund must be called

  • refund data can be enriched with recipientIban, if it’s not specified during refund initialization

In the Postman documentation, you can find various examples on how to use the Process Refund endpoint.

Error codes

In addition to error codes specified for the Process Order Payment endpoint, note also the following error codes:

...