| @@ 2328-2337 (lines=10) @@ | ||
| 2325 | { |
|
| 2326 | switch ($payment instanceof EE_Payment) { |
|
| 2327 | // payment notifications |
|
| 2328 | case true: |
|
| 2329 | if (isset($this->_req_data['txn_payments']['send_notifications']) |
|
| 2330 | && filter_var( |
|
| 2331 | $this->_req_data['txn_payments']['send_notifications'], |
|
| 2332 | FILTER_VALIDATE_BOOLEAN |
|
| 2333 | ) |
|
| 2334 | ) { |
|
| 2335 | $this->_process_payment_notification($payment); |
|
| 2336 | } |
|
| 2337 | break; |
|
| 2338 | // registration notifications |
|
| 2339 | case false: |
|
| 2340 | if (isset($this->_req_data['txn_reg_status_change']['send_notifications']) |
|
| @@ 2339-2348 (lines=10) @@ | ||
| 2336 | } |
|
| 2337 | break; |
|
| 2338 | // registration notifications |
|
| 2339 | case false: |
|
| 2340 | if (isset($this->_req_data['txn_reg_status_change']['send_notifications']) |
|
| 2341 | && filter_var( |
|
| 2342 | $this->_req_data['txn_reg_status_change']['send_notifications'], |
|
| 2343 | FILTER_VALIDATE_BOOLEAN |
|
| 2344 | ) |
|
| 2345 | ) { |
|
| 2346 | add_filter('FHEE__EED_Messages___maybe_registration__deliver_notifications', '__return_true'); |
|
| 2347 | } |
|
| 2348 | break; |
|
| 2349 | } |
|
| 2350 | } |
|
| 2351 | ||