( ! ) Warning: Declaration of Jetpack_IXR_Client::query() should be compatible with IXR_Client::query(...$args) in C:\wamp64_2\www\docbase\wp-content\plugins\jetpack\class.jetpack-ixr-client.php on line 0
Call Stack
#TimeMemoryFunctionLocation
10.0001401504{main}( )...\index.php:0
20.0001401784require( 'C:\wamp64_2\www\docbase\wp-blog-header.php' )...\index.php:17
30.23769229472wp( )...\wp-blog-header.php:16
40.23769229496WP->main( )...\functions.php:1334
50.23769229496WP->parse_request( )...\class-wp.php:780
60.23819256184do_action_ref_array( )...\class-wp.php:399
70.23819256184WP_Hook->do_action( )...\plugin.php:565
80.23819256184WP_Hook->apply_filters( )...\class-wp-hook.php:332
90.23829257200rest_api_loaded( )...\class-wp-hook.php:308
100.23829257232rest_get_server( )...\rest-api.php:403
110.23829260168do_action( )...\rest-api.php:577
120.23829260544WP_Hook->do_action( )...\plugin.php:517
130.23829260544WP_Hook->apply_filters( )...\class-wp-hook.php:332
140.23919299744Jetpack_Core_Json_Api_Endpoints::register_endpoints( )...\class-wp-hook.php:308
150.23939307736Jetpack::load_xml_rpc_client( )...\class.core-rest-api-endpoints.php:64

( ! ) Warning: Cannot modify header information - headers already sent by (output started at C:\wamp64_2\www\docbase\wp-content\plugins\jetpack\class.jetpack-ixr-client.php:0) in C:\wamp64_2\www\docbase\wp-includes\rest-api\class-wp-rest-server.php on line 1762
Call Stack
#TimeMemoryFunctionLocation
10.0001401504{main}( )...\index.php:0
20.0001401784require( 'C:\wamp64_2\www\docbase\wp-blog-header.php' )...\index.php:17
30.23769229472wp( )...\wp-blog-header.php:16
40.23769229496WP->main( )...\functions.php:1334
50.23769229496WP->parse_request( )...\class-wp.php:780
60.23819256184do_action_ref_array( )...\class-wp.php:399
70.23819256184WP_Hook->do_action( )...\plugin.php:565
80.23819256184WP_Hook->apply_filters( )...\class-wp-hook.php:332
90.23829257200rest_api_loaded( )...\class-wp-hook.php:308
100.296811048072WP_REST_Server->serve_request( )...\rest-api.php:410
110.296911047728WP_REST_Server->send_header( )...\class-wp-rest-server.php:310
120.296911048056header ( )...\class-wp-rest-server.php:1762

( ! ) Warning: Cannot modify header information - headers already sent by (output started at C:\wamp64_2\www\docbase\wp-content\plugins\jetpack\class.jetpack-ixr-client.php:0) in C:\wamp64_2\www\docbase\wp-includes\rest-api\class-wp-rest-server.php on line 1762
Call Stack
#TimeMemoryFunctionLocation
10.0001401504{main}( )...\index.php:0
20.0001401784require( 'C:\wamp64_2\www\docbase\wp-blog-header.php' )...\index.php:17
30.23769229472wp( )...\wp-blog-header.php:16
40.23769229496WP->main( )...\functions.php:1334
50.23769229496WP->parse_request( )...\class-wp.php:780
60.23819256184do_action_ref_array( )...\class-wp.php:399
70.23819256184WP_Hook->do_action( )...\plugin.php:565
80.23819256184WP_Hook->apply_filters( )...\class-wp-hook.php:332
90.23829257200rest_api_loaded( )...\class-wp-hook.php:308
100.296811048072WP_REST_Server->serve_request( )...\rest-api.php:410
110.297911047672WP_REST_Server->send_header( )...\class-wp-rest-server.php:311
120.297911047992header ( )...\class-wp-rest-server.php:1762

( ! ) Warning: Cannot modify header information - headers already sent by (output started at C:\wamp64_2\www\docbase\wp-content\plugins\jetpack\class.jetpack-ixr-client.php:0) in C:\wamp64_2\www\docbase\wp-includes\rest-api\class-wp-rest-server.php on line 1762
Call Stack
#TimeMemoryFunctionLocation
10.0001401504{main}( )...\index.php:0
20.0001401784require( 'C:\wamp64_2\www\docbase\wp-blog-header.php' )...\index.php:17
30.23769229472wp( )...\wp-blog-header.php:16
40.23769229496WP->main( )...\functions.php:1334
50.23769229496WP->parse_request( )...\class-wp.php:780
60.23819256184do_action_ref_array( )...\class-wp.php:399
70.23819256184WP_Hook->do_action( )...\plugin.php:565
80.23819256184WP_Hook->apply_filters( )...\class-wp-hook.php:332
90.23829257200rest_api_loaded( )...\class-wp-hook.php:308
100.296811048072WP_REST_Server->serve_request( )...\rest-api.php:410
110.299111047864WP_REST_Server->send_header( )...\class-wp-rest-server.php:315
120.299111048232header ( )...\class-wp-rest-server.php:1762

( ! ) Warning: Cannot modify header information - headers already sent by (output started at C:\wamp64_2\www\docbase\wp-content\plugins\jetpack\class.jetpack-ixr-client.php:0) in C:\wamp64_2\www\docbase\wp-includes\rest-api\class-wp-rest-server.php on line 1762
Call Stack
#TimeMemoryFunctionLocation
10.0001401504{main}( )...\index.php:0
20.0001401784require( 'C:\wamp64_2\www\docbase\wp-blog-header.php' )...\index.php:17
30.23769229472wp( )...\wp-blog-header.php:16
40.23769229496WP->main( )...\functions.php:1334
50.23769229496WP->parse_request( )...\class-wp.php:780
60.23819256184do_action_ref_array( )...\class-wp.php:399
70.23819256184WP_Hook->do_action( )...\plugin.php:565
80.23819256184WP_Hook->apply_filters( )...\class-wp-hook.php:332
90.23829257200rest_api_loaded( )...\class-wp-hook.php:308
100.296811048072WP_REST_Server->serve_request( )...\rest-api.php:410
110.299911047752WP_REST_Server->send_header( )...\class-wp-rest-server.php:323
120.299911048072header ( )...\class-wp-rest-server.php:1762

( ! ) Warning: Cannot modify header information - headers already sent by (output started at C:\wamp64_2\www\docbase\wp-content\plugins\jetpack\class.jetpack-ixr-client.php:0) in C:\wamp64_2\www\docbase\wp-includes\rest-api\class-wp-rest-server.php on line 1762
Call Stack
#TimeMemoryFunctionLocation
10.0001401504{main}( )...\index.php:0
20.0001401784require( 'C:\wamp64_2\www\docbase\wp-blog-header.php' )...\index.php:17
30.23769229472wp( )...\wp-blog-header.php:16
40.23769229496WP->main( )...\functions.php:1334
50.23769229496WP->parse_request( )...\class-wp.php:780
60.23819256184do_action_ref_array( )...\class-wp.php:399
70.23819256184WP_Hook->do_action( )...\plugin.php:565
80.23819256184WP_Hook->apply_filters( )...\class-wp-hook.php:332
90.23829257200rest_api_loaded( )...\class-wp-hook.php:308
100.296811048072WP_REST_Server->serve_request( )...\rest-api.php:410
110.300611047816WP_REST_Server->send_header( )...\class-wp-rest-server.php:335
120.300611048184header ( )...\class-wp-rest-server.php:1762

( ! ) Warning: Cannot modify header information - headers already sent by (output started at C:\wamp64_2\www\docbase\wp-content\plugins\jetpack\class.jetpack-ixr-client.php:0) in C:\wamp64_2\www\docbase\wp-includes\rest-api\class-wp-rest-server.php on line 1762
Call Stack
#TimeMemoryFunctionLocation
10.0001401504{main}( )...\index.php:0
20.0001401784require( 'C:\wamp64_2\www\docbase\wp-blog-header.php' )...\index.php:17
30.23769229472wp( )...\wp-blog-header.php:16
40.23769229496WP->main( )...\functions.php:1334
50.23769229496WP->parse_request( )...\class-wp.php:780
60.23819256184do_action_ref_array( )...\class-wp.php:399
70.23819256184WP_Hook->do_action( )...\plugin.php:565
80.23819256184WP_Hook->apply_filters( )...\class-wp-hook.php:332
90.23829257200rest_api_loaded( )...\class-wp-hook.php:308
100.296811048072WP_REST_Server->serve_request( )...\rest-api.php:410
110.301411047864WP_REST_Server->send_header( )...\class-wp-rest-server.php:359
120.301411048232header ( )...\class-wp-rest-server.php:1762

( ! ) Warning: Cannot modify header information - headers already sent by (output started at C:\wamp64_2\www\docbase\wp-content\plugins\jetpack\class.jetpack-ixr-client.php:0) in C:\wamp64_2\www\docbase\wp-includes\rest-api\class-wp-rest-server.php on line 1762
Call Stack
#TimeMemoryFunctionLocation
10.0001401504{main}( )...\index.php:0
20.0001401784require( 'C:\wamp64_2\www\docbase\wp-blog-header.php' )...\index.php:17
30.23769229472wp( )...\wp-blog-header.php:16
40.23769229496WP->main( )...\functions.php:1334
50.23769229496WP->parse_request( )...\class-wp.php:780
60.23819256184do_action_ref_array( )...\class-wp.php:399
70.23819256184WP_Hook->do_action( )...\plugin.php:565
80.23819256184WP_Hook->apply_filters( )...\class-wp-hook.php:332
90.23829257200rest_api_loaded( )...\class-wp-hook.php:308
100.296811048072WP_REST_Server->serve_request( )...\rest-api.php:410
110.352611366768WP_REST_Server->send_headers( )...\class-wp-rest-server.php:475
120.352611366768WP_REST_Server->send_header( )...\class-wp-rest-server.php:1774
130.352611367408header ( )...\class-wp-rest-server.php:1762

( ! ) Warning: Cannot modify header information - headers already sent by (output started at C:\wamp64_2\www\docbase\wp-content\plugins\jetpack\class.jetpack-ixr-client.php:0) in C:\wamp64_2\www\docbase\wp-includes\rest-api\class-wp-rest-server.php on line 1762
Call Stack
#TimeMemoryFunctionLocation
10.0001401504{main}( )...\index.php:0
20.0001401784require( 'C:\wamp64_2\www\docbase\wp-blog-header.php' )...\index.php:17
30.23769229472wp( )...\wp-blog-header.php:16
40.23769229496WP->main( )...\functions.php:1334
50.23769229496WP->parse_request( )...\class-wp.php:780
60.23819256184do_action_ref_array( )...\class-wp.php:399
70.23819256184WP_Hook->do_action( )...\plugin.php:565
80.23819256184WP_Hook->apply_filters( )...\class-wp-hook.php:332
90.23829257200rest_api_loaded( )...\class-wp-hook.php:308
100.296811048072WP_REST_Server->serve_request( )...\rest-api.php:410
110.352611366768WP_REST_Server->send_headers( )...\class-wp-rest-server.php:475
120.354011366768WP_REST_Server->send_header( )...\class-wp-rest-server.php:1774
130.354011367088header ( )...\class-wp-rest-server.php:1762
{"id":1178,"date":"2017-08-24T11:49:02","date_gmt":"2017-08-24T11:49:02","guid":{"rendered":"http:\/\/sandbox.interswitchng.com\/docbase\/docs\/collegepay-web\/transaction-confirmation-leg\/getting-transaction-status\/"},"modified":"2017-09-08T13:45:42","modified_gmt":"2017-09-08T13:45:42","slug":"getting-transaction-status","status":"publish","type":"docs","link":"https:\/\/sandbox.interswitchng.com\/docbase\/docs\/collegepay-web\/transaction-confirmation-leg\/getting-transaction-status\/","title":{"rendered":"Getting Transaction Status"},"content":{"rendered":"

Getting Transaction Status by Querying the WebService\u00a0 <\/strong><\/h4>\n

This service URL can be used to get the status of a transaction. Below are the HTTP request method and parameters to be used.<\/p>\n

 <\/p>\n

GetTransactionData\u00a0<\/em><\/p>\n

GE<\/strong>T<\/strong><\/a> https:\/\/sandbox.interswitchng.com\/webpay\/api\/v1\/gettransaction.json<\/a><\/p>\n

GET<\/strong> https:\/\/sandbox.interswitchng.com\/webpay\/api\/v1\/gettransaction.xml<\/a><\/p>\n

 <\/p>\n

Request Parameters<\/span><\/p>\n\n\n\n\n\t\n\n\t\n\t\n\t
Request Body Parameter<\/th>Description<\/th>Format<\/th>\n<\/tr>\n<\/thead>\n
productid<\/td>Merchant Product Identifier on WebPAY. Same used in Payment leg<\/td>Numeric<\/td>\n<\/tr>\n
amount<\/td>Original transaction reference sent in the original request\u00a0 (transaction reference you generated for this\t<\/td>Numeric<\/td>\n<\/tr>\n
transactionreference<\/td>Original amount sent in the transaction, in lower denomination
\n
\ni.e kobo value. Same value sent in 2.4 above<\/td>
Alphanumeric<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n\n

 <\/p>\n

Security Parameters<\/span><\/p>\n\n\n\n\n\t\n\n\t
Request Body Parameter<\/th>Description<\/th>Format<\/th>\n<\/tr>\n<\/thead>\n
hash<\/td>SHA512 hash of productid, transactionreference and your MAC key . same way you computed your hash in 2.3 above but different parameters this time .<\/td>This should be sent in the header of the request as Hash<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n\n

NOTE: – <\/u><\/strong>The value of the hash is passed in the header<\/strong> of the GET request as Hash<\/strong><\/p>\n

 <\/p>\n

Request Submission<\/strong><\/span><\/h4>\n

The amount, transaction reference and product id are sent in a HTTP GET request to the service URL with the calculated hash in the header of the request.<\/p>\n

<?php\r\n\r\n\t$parameters = array(\r\n        \"productid\"=>$subpdtid,\r\n        \"transactionreference\"=>$submittedref,\r\n        \"amount\"=>$submittedamt\r\n\t\t); \r\n\t\r\n\t$ponmo = http_build_query($parameters) . \"\\n\";\r\n\t\t\r\n\t$url = urlencode(\"https:\/\/sandbox.interswitchng.com\/test_paydirect\/api\/v1\/gettransaction.json \" . $ponmo); \/\/ json\r\n\r\n\t\/\/note the variables appended to the url as get values for these parameters\r\n\t$headers = array(\r\n\t\t\t\"GET \/HTTP\/1.1\",\r\n\t\t\t\"User-Agent: Mozilla\/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.1) Gecko\/2008070208 Firefox\/3.0.1\",\r\n\t\t\t\"Accept: text\/html,application\/xhtml+xml,application\/xml;q=0.9,*\/*;q=0.8\", \r\n\t\t\t\"Accept-Language: en-us,en;q=0.5\",\r\n\t\t\t\"Keep-Alive: 300\",      \r\n\t\t\t\"Connection: keep-alive\",\r\n\t\t\t\"Hash: \" . $thash \r\n\t\t\t\t\t);\r\n\t\t\r\n\t$ch = curl_init(); \r\n\t\t\r\n\tcurl_setopt($ch, CURLOPT_URL, $url);\r\n\tcurl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);\r\n\tcurl_setopt($ch, CURLOPT_TIMEOUT, 60); \r\n\tcurl_setopt($ch, CURLOPT_HTTPHEADER, $headers);\r\n\tcurl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);\r\n\tcurl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 2); \r\n\tcurl_setopt($ch, CURLOPT_POST, false );\r\n \r\n\tcurl_exec($ch);\r\n?><\/pre>\n

Request String:-<\/p>\n

GET<\/strong>: https:\/\/sandbox.interswitchng.com\/webpay\/api\/v1\/gettransaction.json?p<\/strong>roductId<\/strong>=6207&transactionreference<\/strong>=001211343476456&amount<\/strong>=304500<\/p>\n

Headers:-<\/p>\n

Connection<\/strong>: Keep-Alive<\/p>\n

Host<\/strong>: sandbox.interswitchng.com<\/p>\n

Hash<\/strong>:<\/p>\n

2F398AF4D166F7F80225C127F47BDEEB8A4509DCD420F3E04197E7ADA3B29ACD34A11FD966F6F26E741108A86A4BB89D9357BD71F54093599FEB415F8CAC9C76<\/p>\n

Find below a sample POSTMan screen grab showing request and response structure. (click image to expand<\/strong>)<\/p>\n

 <\/p>\n

\"\"<\/a> \"\"<\/a><\/p>\n

 <\/p>\n

 <\/p>\n

 <\/p>\n","protected":false},"author":1,"featured_media":0,"parent":1177,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"spay_email":""},"doc_tag":[],"_links":{"self":[{"href":"https:\/\/sandbox.interswitchng.com\/docbase\/wp-json\/wp\/v2\/docs\/1178"}],"collection":[{"href":"https:\/\/sandbox.interswitchng.com\/docbase\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/sandbox.interswitchng.com\/docbase\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/sandbox.interswitchng.com\/docbase\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/sandbox.interswitchng.com\/docbase\/wp-json\/wp\/v2\/comments?post=1178"}],"version-history":[{"count":10,"href":"https:\/\/sandbox.interswitchng.com\/docbase\/wp-json\/wp\/v2\/docs\/1178\/revisions"}],"predecessor-version":[{"id":1826,"href":"https:\/\/sandbox.interswitchng.com\/docbase\/wp-json\/wp\/v2\/docs\/1178\/revisions\/1826"}],"up":[{"embeddable":true,"href":"https:\/\/sandbox.interswitchng.com\/docbase\/wp-json\/wp\/v2\/docs\/1177"}],"next":[{"title":"Hash Computation","link":"https:\/\/sandbox.interswitchng.com\/docbase\/docs\/collegepay-web\/transaction-confirmation-leg\/hash-computation\/","href":"https:\/\/sandbox.interswitchng.com\/docbase\/wp-json\/wp\/v2\/docs\/1179"}],"wp:attachment":[{"href":"https:\/\/sandbox.interswitchng.com\/docbase\/wp-json\/wp\/v2\/media?parent=1178"}],"wp:term":[{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/sandbox.interswitchng.com\/docbase\/wp-json\/wp\/v2\/doc_tag?post=1178"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}