route.php 532 B

123456789101112131415161718192021222324252627
  1. <?php
  2. /**
  3. * @copyright Copyright PayFort 2012-2016
  4. */
  5. if(!isset($_REQUEST['r'])) {
  6. echo 'Page Not Found!';
  7. exit;
  8. }
  9. require_once 'PayfortIntegration.php';
  10. $objFort = new PayfortIntegration();
  11. if($_REQUEST['r'] == 'getPaymentPage') {
  12. $objFort->processRequest($_REQUEST['paymentMethod']);
  13. }
  14. elseif($_REQUEST['r'] == 'merchantPageReturn') {
  15. $objFort->processMerchantPageResponse();
  16. }
  17. elseif($_REQUEST['r'] == 'processResponse') {
  18. $objFort->processResponse();
  19. }
  20. else{
  21. echo 'Page Not Found!';
  22. exit;
  23. }
  24. ?>