Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <head>
- <title>PHP Transaction Status Sample</title>
- </head>
- <body>
- <?php
- $order_number = $_REQUEST['TransactionReference']; //getting the transaction reference from the query string
- $request->orderID =$_REQUEST['OrderID']; //getting the order id from the query string
- $request->merchantID = "*****"; //replace ***** with your own merchant id
- $client = new SoapClient('https://firsteconnect.firstbanknigeria.com/webservice/transactionstatuscheck.svc?wsdl');
- $result = $client->__call("GetTransactionDetails", array($request)); //calling the FirsteConnect transaction status inquiry method
- $theResponse = $result->GetTransactionDetailsResult;
- //the variable: $theResponse contains a string (format can be found in integration guide).
- //The status of the transaction can be gotten with orderID = $_REQUEST['OrderID'] can be gotten by processing the string in $theResponse
- echo $theResponse;
- if (isset($theResponse) && $theResponse != '') {
- } else {
- }
- ?>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement