| @@ 538-547 (lines=10) @@ | ||
| 535 | * @deprecated |
|
| 536 | * @return boolean |
|
| 537 | */ |
|
| 538 | public function update_based_on_payments(){ |
|
| 539 | EE_Error::doing_it_wrong( |
|
| 540 | __CLASS__ . '::' . __FUNCTION__, |
|
| 541 | sprintf( __( 'This method is deprecated. Please use "%s" instead', 'event_espresso' ), 'EE_Transaction_Processor::update_transaction_and_registrations_after_checkout_or_payment()' ), |
|
| 542 | '4.6.0' |
|
| 543 | ); |
|
| 544 | /** @type EE_Transaction_Processor $transaction_processor */ |
|
| 545 | $transaction_processor = EE_Registry::instance()->load_class( 'Transaction_Processor' ); |
|
| 546 | return $transaction_processor->update_transaction_and_registrations_after_checkout_or_payment( $this ); |
|
| 547 | } |
|
| 548 | ||
| 549 | ||
| 550 | ||
| @@ 203-212 (lines=10) @@ | ||
| 200 | * @param boolean $save_txn whether or not to save the transaction during this function call |
|
| 201 | * @return boolean |
|
| 202 | */ |
|
| 203 | public function update_based_on_payments( $transaction_obj_or_id, $save_txn = TRUE ){ |
|
| 204 | EE_Error::doing_it_wrong( |
|
| 205 | __CLASS__ . '::' . __FUNCTION__, |
|
| 206 | sprintf( __( 'This method is deprecated. Please use "%s" instead', 'event_espresso' ), 'EE_Transaction_Processor::update_transaction_and_registrations_after_checkout_or_payment()' ), |
|
| 207 | '4.6.0' |
|
| 208 | ); |
|
| 209 | /** @type EE_Transaction_Processor $transaction_processor */ |
|
| 210 | $transaction_processor = EE_Registry::instance()->load_class( 'Transaction_Processor' ); |
|
| 211 | return $transaction_processor->update_transaction_and_registrations_after_checkout_or_payment( $this->ensure_is_obj( $transaction_obj_or_id )); |
|
| 212 | } |
|
| 213 | ||
| 214 | /** |
|
| 215 | * Deletes "junk" transactions that were probably added by bots. There might be TONS |
|