| @@ 254-264 (lines=11) @@ | ||
| 251 | * @param int $TXN_ID |
|
| 252 | * @param int $PAY_ID |
|
| 253 | */ |
|
| 254 | public static function setup_update_for_transaction_with_payment($TXN_ID = 0, $PAY_ID = 0) |
|
| 255 | { |
|
| 256 | do_action('AHEE_log', __CLASS__, __FUNCTION__, $TXN_ID, '$TXN_ID'); |
|
| 257 | if (absint($TXN_ID)) { |
|
| 258 | self::$_update_transactions_with_payment[$TXN_ID] = $PAY_ID; |
|
| 259 | add_action( |
|
| 260 | 'shutdown', |
|
| 261 | array('EE_Cron_Tasks', 'update_transaction_with_payment'), |
|
| 262 | 5 |
|
| 263 | ); |
|
| 264 | } |
|
| 265 | } |
|
| 266 | ||
| 267 | ||
| @@ 376-386 (lines=11) @@ | ||
| 373 | * |
|
| 374 | * @param int $TXN_ID |
|
| 375 | */ |
|
| 376 | public static function check_for_abandoned_transactions($TXN_ID = 0) |
|
| 377 | { |
|
| 378 | do_action('AHEE_log', __CLASS__, __FUNCTION__, $TXN_ID, '$TXN_ID'); |
|
| 379 | if (absint($TXN_ID)) { |
|
| 380 | self::$_abandoned_transactions[] = $TXN_ID; |
|
| 381 | add_action( |
|
| 382 | 'shutdown', |
|
| 383 | array('EE_Cron_Tasks', 'finalize_abandoned_transactions'), |
|
| 384 | 5 |
|
| 385 | ); |
|
| 386 | } |
|
| 387 | } |
|
| 388 | ||
| 389 | ||