LLMS_Order::record_transaction( array $data = array() )
Record a transaction for the order
Parameters Parameters
- $data
-
(array) (Optional) array of additional data to store for the transaction.
Default value: array()
Return Return
(LLMS_Transaction) Instance of LLMS_Transaction for the created transaction.
Source Source
File: includes/models/model.llms.order.php
$this->set_status( $current_rule['status'] );
$this->set( 'last_retry_rule', $current_rule_index );
$this->add_note(
sprintf(
// Translators: %s = next attempt date.
esc_html__( 'Automatic retry attempt scheduled for %s', 'lifterlms' ),
date( get_option( 'date_format' ) . ' ' . get_option( 'time_format' ), $timestamp )
)
);
// If notifications should be sent, trigger them.
if ( $current_rule['notifications'] ) {
/**
* Triggers the "Payment Retry Scheduled" notification.
*
* @since 3.10.0
*
* @param LLMS_Order $order The order object.
*/
do_action( 'llms_send_automatic_payment_retry_notification', $this );
}
/**
* Action triggered after a recurring payment retry is successfully scheduled.
*
* @since 3.10.0
*
* @param LLMS_Order $order The order object.
*/
do_action( 'llms_automatic_payment_retry_scheduled', $this );
return true;
}
/**
* Record a transaction for the order
*
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
| Version | Description |
|---|---|
| 3.0.0 | Introduced. |