LLMS_Controller_Orders::transaction_refunded( LLMS_Transaction $txn )
When a transaction is refunded, update the parent order’s status.
Parameters Parameters
- $txn
-
(LLMS_Transaction) (Required) Instance of the LLMS_Transaction.
Return Return
(void)
Source Source
File: includes/controllers/class.llms.controller.orders.php
// Halt if legacy.
if ( $order->is_legacy() ) {
return;
}
if ( $order->can_be_retried() ) {
$order->maybe_schedule_retry();
} else {
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
| Version | Description |
|---|---|
| 3.0.0 | Introduced. |