| @@ 1663-1673 (lines=11) @@ | ||
| 1660 | 	protected function _maybe_send_notifications( $payment = null ) { | |
| 1661 | 		switch ( $payment instanceof EE_Payment ) { | |
| 1662 | // payment notifications | |
| 1663 | case true : | |
| 1664 | if ( | |
| 1665 | isset( | |
| 1666 | $this->_req_data[ 'txn_payments' ], | |
| 1667 | $this->_req_data[ 'txn_payments' ][ 'send_notifications' ] | |
| 1668 | ) && | |
| 1669 | filter_var( $this->_req_data[ 'txn_payments' ][ 'send_notifications' ], FILTER_VALIDATE_BOOLEAN ) | |
| 1670 | 				) { | |
| 1671 | $this->_process_payment_notification( $payment ); | |
| 1672 | } | |
| 1673 | break; | |
| 1674 | // registration notifications | |
| 1675 | case false : | |
| 1676 | if ( | |
| @@ 1675-1685 (lines=11) @@ | ||
| 1672 | } | |
| 1673 | break; | |
| 1674 | // registration notifications | |
| 1675 | case false : | |
| 1676 | if ( | |
| 1677 | isset( | |
| 1678 | $this->_req_data[ 'txn_reg_status_change' ], | |
| 1679 | $this->_req_data[ 'txn_reg_status_change' ][ 'send_notifications' ] | |
| 1680 | ) && | |
| 1681 | filter_var( $this->_req_data[ 'txn_reg_status_change' ][ 'send_notifications' ], FILTER_VALIDATE_BOOLEAN ) | |
| 1682 | 				) { | |
| 1683 | add_filter( 'FHEE__EED_Messages___maybe_registration__deliver_notifications', '__return_true' ); | |
| 1684 | } | |
| 1685 | break; | |
| 1686 | } | |
| 1687 | } | |
| 1688 | ||