( ! ) 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.0002401504{main}( )...\index.php:0
20.0002401784require( 'C:\wamp64_2\www\docbase\wp-blog-header.php' )...\index.php:17
30.25719229472wp( )...\wp-blog-header.php:16
40.25719229496WP->main( )...\functions.php:1334
50.25719229496WP->parse_request( )...\class-wp.php:780
60.25789256184do_action_ref_array( )...\class-wp.php:399
70.25789256184WP_Hook->do_action( )...\plugin.php:565
80.25789256184WP_Hook->apply_filters( )...\class-wp-hook.php:332
90.25789257200rest_api_loaded( )...\class-wp-hook.php:308
100.25789257232rest_get_server( )...\rest-api.php:403
110.25789260168do_action( )...\rest-api.php:577
120.25789260544WP_Hook->do_action( )...\plugin.php:517
130.25789260544WP_Hook->apply_filters( )...\class-wp-hook.php:332
140.25889299744Jetpack_Core_Json_Api_Endpoints::register_endpoints( )...\class-wp-hook.php:308
150.25919307736Jetpack::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.0002401504{main}( )...\index.php:0
20.0002401784require( 'C:\wamp64_2\www\docbase\wp-blog-header.php' )...\index.php:17
30.25719229472wp( )...\wp-blog-header.php:16
40.25719229496WP->main( )...\functions.php:1334
50.25719229496WP->parse_request( )...\class-wp.php:780
60.25789256184do_action_ref_array( )...\class-wp.php:399
70.25789256184WP_Hook->do_action( )...\plugin.php:565
80.25789256184WP_Hook->apply_filters( )...\class-wp-hook.php:332
90.25789257200rest_api_loaded( )...\class-wp-hook.php:308
100.325311048072WP_REST_Server->serve_request( )...\rest-api.php:410
110.325511047728WP_REST_Server->send_header( )...\class-wp-rest-server.php:310
120.325511048056header ( )...\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.0002401504{main}( )...\index.php:0
20.0002401784require( 'C:\wamp64_2\www\docbase\wp-blog-header.php' )...\index.php:17
30.25719229472wp( )...\wp-blog-header.php:16
40.25719229496WP->main( )...\functions.php:1334
50.25719229496WP->parse_request( )...\class-wp.php:780
60.25789256184do_action_ref_array( )...\class-wp.php:399
70.25789256184WP_Hook->do_action( )...\plugin.php:565
80.25789256184WP_Hook->apply_filters( )...\class-wp-hook.php:332
90.25789257200rest_api_loaded( )...\class-wp-hook.php:308
100.325311048072WP_REST_Server->serve_request( )...\rest-api.php:410
110.326611047672WP_REST_Server->send_header( )...\class-wp-rest-server.php:311
120.326711047992header ( )...\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.0002401504{main}( )...\index.php:0
20.0002401784require( 'C:\wamp64_2\www\docbase\wp-blog-header.php' )...\index.php:17
30.25719229472wp( )...\wp-blog-header.php:16
40.25719229496WP->main( )...\functions.php:1334
50.25719229496WP->parse_request( )...\class-wp.php:780
60.25789256184do_action_ref_array( )...\class-wp.php:399
70.25789256184WP_Hook->do_action( )...\plugin.php:565
80.25789256184WP_Hook->apply_filters( )...\class-wp-hook.php:332
90.25789257200rest_api_loaded( )...\class-wp-hook.php:308
100.325311048072WP_REST_Server->serve_request( )...\rest-api.php:410
110.327911047864WP_REST_Server->send_header( )...\class-wp-rest-server.php:315
120.327911048232header ( )...\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.0002401504{main}( )...\index.php:0
20.0002401784require( 'C:\wamp64_2\www\docbase\wp-blog-header.php' )...\index.php:17
30.25719229472wp( )...\wp-blog-header.php:16
40.25719229496WP->main( )...\functions.php:1334
50.25719229496WP->parse_request( )...\class-wp.php:780
60.25789256184do_action_ref_array( )...\class-wp.php:399
70.25789256184WP_Hook->do_action( )...\plugin.php:565
80.25789256184WP_Hook->apply_filters( )...\class-wp-hook.php:332
90.25789257200rest_api_loaded( )...\class-wp-hook.php:308
100.325311048072WP_REST_Server->serve_request( )...\rest-api.php:410
110.328811047752WP_REST_Server->send_header( )...\class-wp-rest-server.php:323
120.328811048072header ( )...\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.0002401504{main}( )...\index.php:0
20.0002401784require( 'C:\wamp64_2\www\docbase\wp-blog-header.php' )...\index.php:17
30.25719229472wp( )...\wp-blog-header.php:16
40.25719229496WP->main( )...\functions.php:1334
50.25719229496WP->parse_request( )...\class-wp.php:780
60.25789256184do_action_ref_array( )...\class-wp.php:399
70.25789256184WP_Hook->do_action( )...\plugin.php:565
80.25789256184WP_Hook->apply_filters( )...\class-wp-hook.php:332
90.25789257200rest_api_loaded( )...\class-wp-hook.php:308
100.325311048072WP_REST_Server->serve_request( )...\rest-api.php:410
110.329611047816WP_REST_Server->send_header( )...\class-wp-rest-server.php:335
120.329611048184header ( )...\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.0002401504{main}( )...\index.php:0
20.0002401784require( 'C:\wamp64_2\www\docbase\wp-blog-header.php' )...\index.php:17
30.25719229472wp( )...\wp-blog-header.php:16
40.25719229496WP->main( )...\functions.php:1334
50.25719229496WP->parse_request( )...\class-wp.php:780
60.25789256184do_action_ref_array( )...\class-wp.php:399
70.25789256184WP_Hook->do_action( )...\plugin.php:565
80.25789256184WP_Hook->apply_filters( )...\class-wp-hook.php:332
90.25789257200rest_api_loaded( )...\class-wp-hook.php:308
100.325311048072WP_REST_Server->serve_request( )...\rest-api.php:410
110.330511047864WP_REST_Server->send_header( )...\class-wp-rest-server.php:359
120.330511048232header ( )...\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.0002401504{main}( )...\index.php:0
20.0002401784require( 'C:\wamp64_2\www\docbase\wp-blog-header.php' )...\index.php:17
30.25719229472wp( )...\wp-blog-header.php:16
40.25719229496WP->main( )...\functions.php:1334
50.25719229496WP->parse_request( )...\class-wp.php:780
60.25789256184do_action_ref_array( )...\class-wp.php:399
70.25789256184WP_Hook->do_action( )...\plugin.php:565
80.25789256184WP_Hook->apply_filters( )...\class-wp-hook.php:332
90.25789257200rest_api_loaded( )...\class-wp-hook.php:308
100.325311048072WP_REST_Server->serve_request( )...\rest-api.php:410
110.382211364976WP_REST_Server->send_headers( )...\class-wp-rest-server.php:475
120.382211364976WP_REST_Server->send_header( )...\class-wp-rest-server.php:1774
130.382311365616header ( )...\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.0002401504{main}( )...\index.php:0
20.0002401784require( 'C:\wamp64_2\www\docbase\wp-blog-header.php' )...\index.php:17
30.25719229472wp( )...\wp-blog-header.php:16
40.25719229496WP->main( )...\functions.php:1334
50.25719229496WP->parse_request( )...\class-wp.php:780
60.25789256184do_action_ref_array( )...\class-wp.php:399
70.25789256184WP_Hook->do_action( )...\plugin.php:565
80.25789256184WP_Hook->apply_filters( )...\class-wp-hook.php:332
90.25789257200rest_api_loaded( )...\class-wp-hook.php:308
100.325311048072WP_REST_Server->serve_request( )...\rest-api.php:410
110.382211364976WP_REST_Server->send_headers( )...\class-wp-rest-server.php:475
120.383511364976WP_REST_Server->send_header( )...\class-wp-rest-server.php:1774
130.383511365296header ( )...\class-wp-rest-server.php:1762
{"id":1884,"date":"2017-09-08T14:59:51","date_gmt":"2017-09-08T14:59:51","guid":{"rendered":"http:\/\/sandbox.interswitchng.com\/docbase\/docs\/webpay-direct-paydirect-web\/transaction-confirmation-leg\/getting-transaction-status\/"},"modified":"2017-09-08T15:34:46","modified_gmt":"2017-09-08T15:34:46","slug":"getting-transaction-status","status":"publish","type":"docs","link":"https:\/\/sandbox.interswitchng.com\/docbase\/docs\/webpay-direct-paydirect-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>=6204&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

7CB3D3F18FD14DA47ADE05DB3F2E7B7DA506E8E6063ED6644441088D5FA9BC9F8C2E72407ED58469962BD78A8C4279CD71EDC8A8FB853992C19ED0F895D15491<\/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":1882,"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\/1884"}],"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=1884"}],"version-history":[{"count":2,"href":"https:\/\/sandbox.interswitchng.com\/docbase\/wp-json\/wp\/v2\/docs\/1884\/revisions"}],"predecessor-version":[{"id":1893,"href":"https:\/\/sandbox.interswitchng.com\/docbase\/wp-json\/wp\/v2\/docs\/1884\/revisions\/1893"}],"up":[{"embeddable":true,"href":"https:\/\/sandbox.interswitchng.com\/docbase\/wp-json\/wp\/v2\/docs\/1882"}],"next":[{"title":"Hash Computation","link":"https:\/\/sandbox.interswitchng.com\/docbase\/docs\/webpay-direct-paydirect-web\/transaction-confirmation-leg\/hash-computation\/","href":"https:\/\/sandbox.interswitchng.com\/docbase\/wp-json\/wp\/v2\/docs\/1885"}],"wp:attachment":[{"href":"https:\/\/sandbox.interswitchng.com\/docbase\/wp-json\/wp\/v2\/media?parent=1884"}],"wp:term":[{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/sandbox.interswitchng.com\/docbase\/wp-json\/wp\/v2\/doc_tag?post=1884"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}