@@ 172-182 (lines=11) @@ | ||
169 | * @param int $TXN_ID |
|
170 | * @param int $PAY_ID |
|
171 | */ |
|
172 | public static function setup_update_for_transaction_with_payment( $TXN_ID = 0, $PAY_ID = 0 ) { |
|
173 | do_action( 'AHEE_log', __CLASS__, __FUNCTION__, $TXN_ID, '$TXN_ID' ); |
|
174 | if ( absint( $TXN_ID )) { |
|
175 | self::$_update_transactions_with_payment[ $TXN_ID ] = $PAY_ID; |
|
176 | add_action( |
|
177 | 'shutdown', |
|
178 | array( 'EE_Cron_Tasks', 'update_transaction_with_payment' ), |
|
179 | 5 |
|
180 | ); |
|
181 | } |
|
182 | } |
|
183 | ||
184 | ||
185 | ||
@@ 290-300 (lines=11) @@ | ||
287 | * |
|
288 | * @param int $TXN_ID |
|
289 | */ |
|
290 | public static function check_for_abandoned_transactions( $TXN_ID = 0 ) { |
|
291 | do_action( 'AHEE_log', __CLASS__, __FUNCTION__, $TXN_ID, '$TXN_ID' ); |
|
292 | if ( absint( $TXN_ID )) { |
|
293 | self::$_abandoned_transactions[] = $TXN_ID; |
|
294 | add_action( |
|
295 | 'shutdown', |
|
296 | array( 'EE_Cron_Tasks', 'finalize_abandoned_transactions' ), |
|
297 | 5 |
|
298 | ); |
|
299 | } |
|
300 | } |
|
301 | ||
302 | ||
303 |