( ! ) 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.0001402616{main}( )...\index.php:0
20.0002402896require( 'C:\wamp64_2\www\docbase\wp-blog-header.php' )...\index.php:17
30.20639232200wp( )...\wp-blog-header.php:16
40.20639232224WP->main( )...\functions.php:1334
50.20639232224WP->parse_request( )...\class-wp.php:780
60.20689258904do_action_ref_array( )...\class-wp.php:399
70.20689258904WP_Hook->do_action( )...\plugin.php:565
80.20689258904WP_Hook->apply_filters( )...\class-wp-hook.php:332
90.20689259920rest_api_loaded( )...\class-wp-hook.php:308
100.20699259952rest_get_server( )...\rest-api.php:403
110.20699262888do_action( )...\rest-api.php:577
120.20699263264WP_Hook->do_action( )...\plugin.php:517
130.20699263264WP_Hook->apply_filters( )...\class-wp-hook.php:332
140.20779302464Jetpack_Core_Json_Api_Endpoints::register_endpoints( )...\class-wp-hook.php:308
150.20789310456Jetpack::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.0001402616{main}( )...\index.php:0
20.0002402896require( 'C:\wamp64_2\www\docbase\wp-blog-header.php' )...\index.php:17
30.20639232200wp( )...\wp-blog-header.php:16
40.20639232224WP->main( )...\functions.php:1334
50.20639232224WP->parse_request( )...\class-wp.php:780
60.20689258904do_action_ref_array( )...\class-wp.php:399
70.20689258904WP_Hook->do_action( )...\plugin.php:565
80.20689258904WP_Hook->apply_filters( )...\class-wp-hook.php:332
90.20689259920rest_api_loaded( )...\class-wp-hook.php:308
100.265511050792WP_REST_Server->serve_request( )...\rest-api.php:410
110.265611050448WP_REST_Server->send_header( )...\class-wp-rest-server.php:310
120.265611050776header ( )...\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.0001402616{main}( )...\index.php:0
20.0002402896require( 'C:\wamp64_2\www\docbase\wp-blog-header.php' )...\index.php:17
30.20639232200wp( )...\wp-blog-header.php:16
40.20639232224WP->main( )...\functions.php:1334
50.20639232224WP->parse_request( )...\class-wp.php:780
60.20689258904do_action_ref_array( )...\class-wp.php:399
70.20689258904WP_Hook->do_action( )...\plugin.php:565
80.20689258904WP_Hook->apply_filters( )...\class-wp-hook.php:332
90.20689259920rest_api_loaded( )...\class-wp-hook.php:308
100.265511050792WP_REST_Server->serve_request( )...\rest-api.php:410
110.266711050392WP_REST_Server->send_header( )...\class-wp-rest-server.php:311
120.266711050712header ( )...\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.0001402616{main}( )...\index.php:0
20.0002402896require( 'C:\wamp64_2\www\docbase\wp-blog-header.php' )...\index.php:17
30.20639232200wp( )...\wp-blog-header.php:16
40.20639232224WP->main( )...\functions.php:1334
50.20639232224WP->parse_request( )...\class-wp.php:780
60.20689258904do_action_ref_array( )...\class-wp.php:399
70.20689258904WP_Hook->do_action( )...\plugin.php:565
80.20689258904WP_Hook->apply_filters( )...\class-wp-hook.php:332
90.20689259920rest_api_loaded( )...\class-wp-hook.php:308
100.265511050792WP_REST_Server->serve_request( )...\rest-api.php:410
110.267711050584WP_REST_Server->send_header( )...\class-wp-rest-server.php:315
120.267811050952header ( )...\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.0001402616{main}( )...\index.php:0
20.0002402896require( 'C:\wamp64_2\www\docbase\wp-blog-header.php' )...\index.php:17
30.20639232200wp( )...\wp-blog-header.php:16
40.20639232224WP->main( )...\functions.php:1334
50.20639232224WP->parse_request( )...\class-wp.php:780
60.20689258904do_action_ref_array( )...\class-wp.php:399
70.20689258904WP_Hook->do_action( )...\plugin.php:565
80.20689258904WP_Hook->apply_filters( )...\class-wp-hook.php:332
90.20689259920rest_api_loaded( )...\class-wp-hook.php:308
100.265511050792WP_REST_Server->serve_request( )...\rest-api.php:410
110.268711050472WP_REST_Server->send_header( )...\class-wp-rest-server.php:323
120.268711050792header ( )...\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.0001402616{main}( )...\index.php:0
20.0002402896require( 'C:\wamp64_2\www\docbase\wp-blog-header.php' )...\index.php:17
30.20639232200wp( )...\wp-blog-header.php:16
40.20639232224WP->main( )...\functions.php:1334
50.20639232224WP->parse_request( )...\class-wp.php:780
60.20689258904do_action_ref_array( )...\class-wp.php:399
70.20689258904WP_Hook->do_action( )...\plugin.php:565
80.20689258904WP_Hook->apply_filters( )...\class-wp-hook.php:332
90.20689259920rest_api_loaded( )...\class-wp-hook.php:308
100.265511050792WP_REST_Server->serve_request( )...\rest-api.php:410
110.269411050536WP_REST_Server->send_header( )...\class-wp-rest-server.php:335
120.269411050904header ( )...\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.0001402616{main}( )...\index.php:0
20.0002402896require( 'C:\wamp64_2\www\docbase\wp-blog-header.php' )...\index.php:17
30.20639232200wp( )...\wp-blog-header.php:16
40.20639232224WP->main( )...\functions.php:1334
50.20639232224WP->parse_request( )...\class-wp.php:780
60.20689258904do_action_ref_array( )...\class-wp.php:399
70.20689258904WP_Hook->do_action( )...\plugin.php:565
80.20689258904WP_Hook->apply_filters( )...\class-wp-hook.php:332
90.20689259920rest_api_loaded( )...\class-wp-hook.php:308
100.265511050792WP_REST_Server->serve_request( )...\rest-api.php:410
110.270111050584WP_REST_Server->send_header( )...\class-wp-rest-server.php:359
120.270111050952header ( )...\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.0001402616{main}( )...\index.php:0
20.0002402896require( 'C:\wamp64_2\www\docbase\wp-blog-header.php' )...\index.php:17
30.20639232200wp( )...\wp-blog-header.php:16
40.20639232224WP->main( )...\functions.php:1334
50.20639232224WP->parse_request( )...\class-wp.php:780
60.20689258904do_action_ref_array( )...\class-wp.php:399
70.20689258904WP_Hook->do_action( )...\plugin.php:565
80.20689258904WP_Hook->apply_filters( )...\class-wp-hook.php:332
90.20689259920rest_api_loaded( )...\class-wp-hook.php:308
100.265511050792WP_REST_Server->serve_request( )...\rest-api.php:410
110.312411369256WP_REST_Server->send_headers( )...\class-wp-rest-server.php:475
120.312411369256WP_REST_Server->send_header( )...\class-wp-rest-server.php:1774
130.312411369832header ( )...\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.0001402616{main}( )...\index.php:0
20.0002402896require( 'C:\wamp64_2\www\docbase\wp-blog-header.php' )...\index.php:17
30.20639232200wp( )...\wp-blog-header.php:16
40.20639232224WP->main( )...\functions.php:1334
50.20639232224WP->parse_request( )...\class-wp.php:780
60.20689258904do_action_ref_array( )...\class-wp.php:399
70.20689258904WP_Hook->do_action( )...\plugin.php:565
80.20689258904WP_Hook->apply_filters( )...\class-wp-hook.php:332
90.20689259920rest_api_loaded( )...\class-wp-hook.php:308
100.265511050792WP_REST_Server->serve_request( )...\rest-api.php:410
110.312411369256WP_REST_Server->send_headers( )...\class-wp-rest-server.php:475
120.313311369256WP_REST_Server->send_header( )...\class-wp-rest-server.php:1774
130.313311369576header ( )...\class-wp-rest-server.php:1762
{"id":298,"date":"2017-06-20T06:58:22","date_gmt":"2017-06-20T06:58:22","guid":{"rendered":"https:\/\/sandbox.interswitchng.com\/docbase\/docs\/webpay\/transaction-confirmation-leg\/getting-transaction-status\/"},"modified":"2017-09-08T13:45:48","modified_gmt":"2017-09-08T13:45:48","slug":"getting-transaction-status","status":"publish","type":"docs","link":"https:\/\/sandbox.interswitchng.com\/docbase\/docs\/webpay\/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>=6205&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

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