dreamkas.php 447 B

123456789101112131415
  1. <?php
  2. // Dreamkas webhooks processing
  3. if ($_GET['action'] == 'dreamkas') {
  4. if ($ubillingConfig->getAlterParam('DREAMKAS_ENABLED')) {
  5. if (isset($HTTP_RAW_POST_DATA)) {
  6. $DreamKas = new DreamKas();
  7. $DreamKas->processWebhookRequest($HTTP_RAW_POST_DATA, $_GET['param']);
  8. } else {
  9. log_register('DREAMKAS WEBHOOK: empty $HTTP_RAW_POST_DATA - no data to process');
  10. }
  11. }
  12. }