mirror of
https://github.com/anikeen-com/id.git
synced 2026-11-06 23:58:35 +00:00
Drop event ordering claim for full refunds
This commit is contained in:
3 files changed
+6
-4
No files matched your search
@@ -560,7 +560,8 @@ if ($event['type'] === EventType::SUBSCRIPTION_RENEWED) {
|
||||
|
||||
`order.refunded` (`EventType::ORDER_REFUNDED`) is sent when money was given back for an order (a
|
||||
refund or a partial cancellation, with a credit note); the order carries its `refunds` and
|
||||
`refunded_total`. A full refund also cancels the order, followed by `order.cancelled`.
|
||||
`refunded_total`. A full refund also cancels the order, so `order.cancelled` is sent too; don't rely on the
|
||||
order of the two events.
|
||||
|
||||
### Errors
|
||||
|
||||
|
||||
+2
-1
@@ -560,7 +560,8 @@ if ($event['type'] === EventType::SUBSCRIPTION_RENEWED) {
|
||||
|
||||
`order.refunded` (`EventType::ORDER_REFUNDED`) is sent when money was given back for an order (a
|
||||
refund or a partial cancellation, with a credit note); the order carries its `refunds` and
|
||||
`refunded_total`. A full refund also cancels the order, followed by `order.cancelled`.
|
||||
`refunded_total`. A full refund also cancels the order, so `order.cancelled` is sent too; don't rely on the
|
||||
order of the two events.
|
||||
|
||||
### Errors
|
||||
|
||||
|
||||
@@ -15,8 +15,8 @@ final class EventType
|
||||
public const ORDER_SHIPPED = 'order.shipped';
|
||||
/**
|
||||
* Money was given back for an order (a refund or a partial cancellation, with a credit note);
|
||||
* see the order's `refunds` and `refunded_total`. A full refund also cancels the order
|
||||
* (order.cancelled follows).
|
||||
* see the order's `refunds` and `refunded_total`. A full refund also cancels the order,
|
||||
* so order.cancelled is sent too; don't rely on the order of the two events.
|
||||
*/
|
||||
public const ORDER_REFUNDED = 'order.refunded';
|
||||
|
||||
|
||||
Reference in new issue
Block a user