Automatic and Multi Payment Refunds

Automatic refunds will allow Aurora to automatically refund orders with multiple payment transactions.

Please see the Aurora Multi-payment support article for more details.

Introduction

When using the Automatic refund type, Aurora will automatically attempt to identify the correct refund method according to the order of payment transactions. Where there is more than one payment transaction, Aurora will use the Automatic Refund Strategy as defined within the Store Settings, to establish how to attribute the total refund amount to each payment transaction respectively.

Where the selected Automatic Refund Strategy is unable to attribute the requested refund amount to the refundable payment transactions on an order, the refund will not be actioned and an error will be presented accordingly.

Automatic Refund Strategy

The Automatic Refund Strategy can be found within Store > Settings > Aurora > Refunds, which currently supports the following options:

  • Do not allow automatic refunds
    • When selected, the Automatic refund type will be hidden from the Aurora UI. The Aurora API AddRefund method will only attempt to refund the first (primary) payment transaction associated with the order.
  • Primary payment and the order as entered
    • When selected, the Automatic refund type will be available within the Aurora UI. The primary payment transaction (i.e. credit card) will always be refunded first, followed by any additional payment transactions (i.e. gift cards) as they were entered on the checkout, or created via the Aurora API.

For example:

Where an order has the following payment transactions:

PaymentAmount
Credit Card£20.00
Gift Card 1£8.00
Gift Card 2£15.00

The following refunds transactions would be created:

Where a single refund is issued for £10.00:

RefundAmount
Credit Card£10.00

Where a single refund is issued for £26.00:

RefundAmount
Credit Card£20.00
Gift Card 1£6.00

Where a single refund is issued for £43.00:

RefundAmount
Credit Card£20.00
Gift Card 1£8.00
Gift Card 2£15.00

Where the following multiple refunds are issued on a single order:

Refund 1 for £18.00:

RefundAmount
Credit Card£18.00

Refund 2 for £7.00:

RefundAmount
Credit Card£2.00
Gift Card 1£5.00

Refund 3 for £18.00:

RefundAmount
Gift Card 1£3.00
Gift Card 2£15.00

Rounding and Total Refund Amount Reconciliation

Depending on the selected Automatic Refund Strategy, Aurora may need to round calculated refund transaction amounts based on the currency of each payment transaction. This can in some cases result in a total refund amount that does not match the requested refund amount, and as such, Aurora implements a reconciliation process to ensure that the final overall refund amount across all refund transactions is equal to the requested refund amount.

The process used to reconcile the total refund amount is as follows:

  • All calculated refund transaction amounts are rounded using a mathematical floor operation to ensure that the overall refund amount across all refund transactions does not exceed the total requested refund amount.
  • Where this results in the overall refund amount being less than the total requested refund amount, Aurora will attempt to attribute the difference across the refund transactions based on the order of priority identified by the Automatic Refund Strategy whilst not exceeding the refundable amount identified for each payment transaction (this can be different to the original payment amount, depending on existing refunds associated with each payment transaction).

Where the reconciliation process is unable to attribute the difference across the refund transactions, the refund will not be actioned and an error will be presented accordingly. This scenario would normally be caused by requesting a total refund amount greater than the available refundable amounts across all payment transactions.

Rounding Example

Where a new refund for £33.40 has been requested and a Automatic Refund Strategy based on equal proportioned attribution has establish the following refund transaction amounts:

RefundAmount
Credit Card£11.1333333333
Gift Card 1£11.1333333333
Gift Card 2£11.1333333333

Aurora will round these values to £**11.13, which would result in an overall refund amount across all refund transactions of £33.39**.

Aurora will then reconcile the total refund amounts by attributing the difference to the first payment transaction in the order of priority established by the Automatic Refund Strategy, which would result in the following refund transactions:

RefundAmount
Credit Card£11.14
Gift Card 1£11.13
Gift Card 2£11.13

Unable to reconcile total refund amount example

Where an order has the following payment transactions:

PaymentAmount
Credit Card£20.00
Gift Card 1£8.00
Gift Card 2£15.00

And the order already contains the following refund:

RefundAmount
Credit Card£10.00

Where a new refund for £40.00 is then requested, Aurora will be unable to reconcile a refund amount of £7.00 against the order and the refund will be rejected accordingly.