Advertisement
Guest User

Untitled

a guest
Jun 24th, 2016
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.77 KB | None | 0 0
  1. <?php
  2. require_once("class.php");
  3. header('Content-Type: text/html; charset=utf-8');
  4.  
  5. $idealSEPA = new Ideal_SEPA();
  6.  
  7. $transactionID = $_GET["trxid"];
  8.  
  9. $requestTransactionStatus = $idealSEPA->requestTransactionStatus($transactionID);
  10.  
  11.  
  12. echo '<pre>';
  13.  
  14. var_dump($requestTransactionStatus);
  15. ?>
  16.  
  17. array(10) {
  18. ["result"]=>
  19. string(7) "Success"
  20. }
  21.  
  22. public function requestTransactionStatus($transactionID)
  23. {
  24.  
  25. if( $transactionID == "")
  26.  
  27. {
  28.  
  29. return false;
  30. }
  31.  
  32. try
  33.  
  34. {
  35.  
  36. $response = $this->iDEALConnector->getTransactionStatus($transactionID);
  37. $this->status = $response->getStatus();
  38. return array(
  39. 'status' => true,
  40.  
  41. 'result' => $this->status
  42.  
  43. );
  44.  
  45. }
  46.  
  47. catch (SerializationException $ex)
  48. {
  49.  
  50. return array(
  51.  
  52. 'status' => false,
  53. 'error_msg' => $ex->getMessage()
  54. );
  55.  
  56. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement