@@ 2249-2259 (lines=11) @@ | ||
2246 | { |
|
2247 | switch ($payment instanceof EE_Payment) { |
|
2248 | // payment notifications |
|
2249 | case true : |
|
2250 | if ( |
|
2251 | isset( |
|
2252 | $this->_req_data['txn_payments'], |
|
2253 | $this->_req_data['txn_payments']['send_notifications'] |
|
2254 | ) && |
|
2255 | filter_var($this->_req_data['txn_payments']['send_notifications'], FILTER_VALIDATE_BOOLEAN) |
|
2256 | ) { |
|
2257 | $this->_process_payment_notification($payment); |
|
2258 | } |
|
2259 | break; |
|
2260 | // registration notifications |
|
2261 | case false : |
|
2262 | if ( |
|
@@ 2261-2271 (lines=11) @@ | ||
2258 | } |
|
2259 | break; |
|
2260 | // registration notifications |
|
2261 | case false : |
|
2262 | if ( |
|
2263 | isset( |
|
2264 | $this->_req_data['txn_reg_status_change'], |
|
2265 | $this->_req_data['txn_reg_status_change']['send_notifications'] |
|
2266 | ) && |
|
2267 | filter_var($this->_req_data['txn_reg_status_change']['send_notifications'], FILTER_VALIDATE_BOOLEAN) |
|
2268 | ) { |
|
2269 | add_filter('FHEE__EED_Messages___maybe_registration__deliver_notifications', '__return_true'); |
|
2270 | } |
|
2271 | break; |
|
2272 | } |
|
2273 | } |
|
2274 |