@@ 1654-1664 (lines=11) @@ | ||
1651 | protected function _maybe_send_notifications( $payment = null ) { |
|
1652 | switch ( $payment instanceof EE_Payment ) { |
|
1653 | // payment notifications |
|
1654 | case true : |
|
1655 | if ( |
|
1656 | isset( |
|
1657 | $this->_req_data[ 'txn_payments' ], |
|
1658 | $this->_req_data[ 'txn_payments' ][ 'send_notifications' ] |
|
1659 | ) && |
|
1660 | filter_var( $this->_req_data[ 'txn_payments' ][ 'send_notifications' ], FILTER_VALIDATE_BOOLEAN ) |
|
1661 | ) { |
|
1662 | $this->_process_payment_notification( $payment ); |
|
1663 | } |
|
1664 | break; |
|
1665 | // registration notifications |
|
1666 | case false : |
|
1667 | if ( |
|
@@ 1666-1676 (lines=11) @@ | ||
1663 | } |
|
1664 | break; |
|
1665 | // registration notifications |
|
1666 | case false : |
|
1667 | if ( |
|
1668 | isset( |
|
1669 | $this->_req_data[ 'txn_reg_status_change' ], |
|
1670 | $this->_req_data[ 'txn_reg_status_change' ][ 'send_notifications' ] |
|
1671 | ) && |
|
1672 | filter_var( $this->_req_data[ 'txn_reg_status_change' ][ 'send_notifications' ], FILTER_VALIDATE_BOOLEAN ) |
|
1673 | ) { |
|
1674 | add_filter( 'FHEE__EED_Messages___maybe_registration__deliver_notifications', '__return_true' ); |
|
1675 | } |
|
1676 | break; |
|
1677 | } |
|
1678 | } |
|
1679 |