LLMS_Controller_Orders::transaction_succeeded( LLMS_Transaction $txn )
When a transaction succeeds, 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
*
* @param LLMS_Transaction $txn Instance of the LLMS_Transaction.
* @return void
*/
public function transaction_refunded( $txn ) {
$order = $txn->get_order();
// Halt if legacy.
if ( $order->is_legacy() ) {
return; }
$order->set( 'status', 'llms-refunded' );
}
/**
* When a transaction succeeds, update the parent order's status.
*
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
| Version | Description |
|---|---|
| 3.10.0 | Unknown. |
| 3.0.0 | Introduced. |