opayzsmsnotify.php 585 B

12345678910111213141516171819
  1. <?php
  2. if (ubRouting::get('action') == 'opayzsmsnotify') {
  3. global $ubillingConfig;
  4. if ($ubillingConfig->getAlterParam('OP_SMS_NOTIFY_ENABLED')) {
  5. if ($ubillingConfig->getAlterParam('SENDDOG_ENABLED')) {
  6. $openpayz = new OpenPayz();
  7. $openpayz->pullNotysPayments();
  8. $openpayz->processNotys();
  9. die('OPAZYSMSNOTIFY: FINISHED PROCESSING');
  10. } else {
  11. die('OPAZYSMSNOTIFY ERROR: SENDDOG IS DISABLED');
  12. }
  13. } else {
  14. die('OPAZYSMSNOTIFY ERROR: OPENPAZY SMS NOTIFICATION IS DISABLED');
  15. }
  16. }