Advertisement
Guest User

Akenzo

a guest
May 2nd, 2014
27
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.01 KB | None | 0 0
  1. <html>
  2. <head>
  3. <title>PHP Transaction Status Sample</title>
  4. </head>
  5. <body>
  6. <?php
  7. $order_number = $_REQUEST['TransactionReference']; //getting the transaction reference from the query string
  8. $request->orderID =$_REQUEST['OrderID']; //getting the order id from the query string
  9. $request->merchantID = "*****"; //replace ***** with your own merchant id
  10.  
  11. $client = new SoapClient('https://firsteconnect.firstbanknigeria.com/webservice/transactionstatuscheck.svc?wsdl');
  12.  
  13. $result = $client->__call("GetTransactionDetails", array($request)); //calling the FirsteConnect transaction status inquiry method
  14.  
  15. $theResponse = $result->GetTransactionDetailsResult;
  16.  
  17. //the variable: $theResponse contains a string (format can be found in integration guide).
  18. //The status of the transaction can be gotten with orderID = $_REQUEST['OrderID'] can be gotten by processing the string in $theResponse
  19. echo $theResponse;
  20.  
  21. if (isset($theResponse) && $theResponse != '') {
  22.  
  23. } else {
  24.  
  25. }
  26.  
  27. ?>
  28. </body>
  29. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement