@@ 1829-1839 (lines=11) @@ | ||
1826 | { |
|
1827 | switch ($payment instanceof EE_Payment) { |
|
1828 | // payment notifications |
|
1829 | case true : |
|
1830 | if ( |
|
1831 | isset( |
|
1832 | $this->_req_data['txn_payments'], |
|
1833 | $this->_req_data['txn_payments']['send_notifications'] |
|
1834 | ) && |
|
1835 | filter_var($this->_req_data['txn_payments']['send_notifications'], FILTER_VALIDATE_BOOLEAN) |
|
1836 | ) { |
|
1837 | $this->_process_payment_notification($payment); |
|
1838 | } |
|
1839 | break; |
|
1840 | // registration notifications |
|
1841 | case false : |
|
1842 | if ( |
|
@@ 1841-1851 (lines=11) @@ | ||
1838 | } |
|
1839 | break; |
|
1840 | // registration notifications |
|
1841 | case false : |
|
1842 | if ( |
|
1843 | isset( |
|
1844 | $this->_req_data['txn_reg_status_change'], |
|
1845 | $this->_req_data['txn_reg_status_change']['send_notifications'] |
|
1846 | ) && |
|
1847 | filter_var($this->_req_data['txn_reg_status_change']['send_notifications'], FILTER_VALIDATE_BOOLEAN) |
|
1848 | ) { |
|
1849 | add_filter('FHEE__EED_Messages___maybe_registration__deliver_notifications', '__return_true'); |
|
1850 | } |
|
1851 | break; |
|
1852 | } |
|
1853 | } |
|
1854 |