paid.php 1.0 KB

123456789101112131415161718
  1. <?php
  2. function exec_ogp_module()
  3. {
  4. if (isset($_POST['payment_status']) AND ($_POST['payment_status']=="Completed" OR $_POST['payment_status']=="Canceled_Reversal"))
  5. {
  6. echo "<html><head><title>Success</title></head><body><h4>Thank you for your order.</h4>";
  7. }
  8. else if (isset($_POST['payment_status']) AND ( $_POST['payment_status']=="Pending" OR $_POST['payment_status']=="In-Progress" OR $_POST['payment_status']=="Partially_Refunded" ) )
  9. {
  10. echo "<html><head><title>Pending</title></head><body><h4>Pending<br>Thank you for your order.</h4><br><p style='color:red'>Payment process is pending</p>";
  11. }
  12. else if (isset($_POST['payment_status']) AND ($_POST['payment_status']=="Reversed" OR $_POST['payment_status']=="Refunded" OR $_POST['payment_status']=="Denied" OR $_POST['payment_status']=="Expired" OR $_POST['payment_status']=="Failed" OR $_POST['payment_status']=="Voided"))
  13. {
  14. echo "<html><head><title>Reversed OR Refunded</title></head><body><h4>Reversed OR Refunded</h4>";
  15. }
  16. echo "<meta HTTP-EQUIV='REFRESH' content='2; url=?m=billing&p=cart'>";
  17. }
  18. ?>