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()


Top ↑

Return Return

(LLMS_Transaction) Instance of LLMS_Transaction for the created transaction.


Top ↑

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
	 *

Top ↑

Changelog Changelog

Changelog
Version Description
3.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.