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
1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 | $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. |