( ! ) 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 | ||||
# | Time | Memory | Function | Location |
1 | 0.0001 | 402616 | {main}( ) | ...\index.php:0 |
2 | 0.0002 | 402896 | require( 'C:\wamp64_2\www\docbase\wp-blog-header.php' ) | ...\index.php:17 |
3 | 0.2063 | 9232200 | wp( ) | ...\wp-blog-header.php:16 |
4 | 0.2063 | 9232224 | WP->main( ) | ...\functions.php:1334 |
5 | 0.2063 | 9232224 | WP->parse_request( ) | ...\class-wp.php:780 |
6 | 0.2068 | 9258904 | do_action_ref_array( ) | ...\class-wp.php:399 |
7 | 0.2068 | 9258904 | WP_Hook->do_action( ) | ...\plugin.php:565 |
8 | 0.2068 | 9258904 | WP_Hook->apply_filters( ) | ...\class-wp-hook.php:332 |
9 | 0.2068 | 9259920 | rest_api_loaded( ) | ...\class-wp-hook.php:308 |
10 | 0.2069 | 9259952 | rest_get_server( ) | ...\rest-api.php:403 |
11 | 0.2069 | 9262888 | do_action( ) | ...\rest-api.php:577 |
12 | 0.2069 | 9263264 | WP_Hook->do_action( ) | ...\plugin.php:517 |
13 | 0.2069 | 9263264 | WP_Hook->apply_filters( ) | ...\class-wp-hook.php:332 |
14 | 0.2077 | 9302464 | Jetpack_Core_Json_Api_Endpoints::register_endpoints( ) | ...\class-wp-hook.php:308 |
15 | 0.2078 | 9310456 | Jetpack::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 | ||||
# | Time | Memory | Function | Location |
1 | 0.0001 | 402616 | {main}( ) | ...\index.php:0 |
2 | 0.0002 | 402896 | require( 'C:\wamp64_2\www\docbase\wp-blog-header.php' ) | ...\index.php:17 |
3 | 0.2063 | 9232200 | wp( ) | ...\wp-blog-header.php:16 |
4 | 0.2063 | 9232224 | WP->main( ) | ...\functions.php:1334 |
5 | 0.2063 | 9232224 | WP->parse_request( ) | ...\class-wp.php:780 |
6 | 0.2068 | 9258904 | do_action_ref_array( ) | ...\class-wp.php:399 |
7 | 0.2068 | 9258904 | WP_Hook->do_action( ) | ...\plugin.php:565 |
8 | 0.2068 | 9258904 | WP_Hook->apply_filters( ) | ...\class-wp-hook.php:332 |
9 | 0.2068 | 9259920 | rest_api_loaded( ) | ...\class-wp-hook.php:308 |
10 | 0.2655 | 11050792 | WP_REST_Server->serve_request( ) | ...\rest-api.php:410 |
11 | 0.2656 | 11050448 | WP_REST_Server->send_header( ) | ...\class-wp-rest-server.php:310 |
12 | 0.2656 | 11050776 | header ( ) | ...\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 | ||||
# | Time | Memory | Function | Location |
1 | 0.0001 | 402616 | {main}( ) | ...\index.php:0 |
2 | 0.0002 | 402896 | require( 'C:\wamp64_2\www\docbase\wp-blog-header.php' ) | ...\index.php:17 |
3 | 0.2063 | 9232200 | wp( ) | ...\wp-blog-header.php:16 |
4 | 0.2063 | 9232224 | WP->main( ) | ...\functions.php:1334 |
5 | 0.2063 | 9232224 | WP->parse_request( ) | ...\class-wp.php:780 |
6 | 0.2068 | 9258904 | do_action_ref_array( ) | ...\class-wp.php:399 |
7 | 0.2068 | 9258904 | WP_Hook->do_action( ) | ...\plugin.php:565 |
8 | 0.2068 | 9258904 | WP_Hook->apply_filters( ) | ...\class-wp-hook.php:332 |
9 | 0.2068 | 9259920 | rest_api_loaded( ) | ...\class-wp-hook.php:308 |
10 | 0.2655 | 11050792 | WP_REST_Server->serve_request( ) | ...\rest-api.php:410 |
11 | 0.2667 | 11050392 | WP_REST_Server->send_header( ) | ...\class-wp-rest-server.php:311 |
12 | 0.2667 | 11050712 | header ( ) | ...\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 | ||||
# | Time | Memory | Function | Location |
1 | 0.0001 | 402616 | {main}( ) | ...\index.php:0 |
2 | 0.0002 | 402896 | require( 'C:\wamp64_2\www\docbase\wp-blog-header.php' ) | ...\index.php:17 |
3 | 0.2063 | 9232200 | wp( ) | ...\wp-blog-header.php:16 |
4 | 0.2063 | 9232224 | WP->main( ) | ...\functions.php:1334 |
5 | 0.2063 | 9232224 | WP->parse_request( ) | ...\class-wp.php:780 |
6 | 0.2068 | 9258904 | do_action_ref_array( ) | ...\class-wp.php:399 |
7 | 0.2068 | 9258904 | WP_Hook->do_action( ) | ...\plugin.php:565 |
8 | 0.2068 | 9258904 | WP_Hook->apply_filters( ) | ...\class-wp-hook.php:332 |
9 | 0.2068 | 9259920 | rest_api_loaded( ) | ...\class-wp-hook.php:308 |
10 | 0.2655 | 11050792 | WP_REST_Server->serve_request( ) | ...\rest-api.php:410 |
11 | 0.2677 | 11050584 | WP_REST_Server->send_header( ) | ...\class-wp-rest-server.php:315 |
12 | 0.2678 | 11050952 | header ( ) | ...\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 | ||||
# | Time | Memory | Function | Location |
1 | 0.0001 | 402616 | {main}( ) | ...\index.php:0 |
2 | 0.0002 | 402896 | require( 'C:\wamp64_2\www\docbase\wp-blog-header.php' ) | ...\index.php:17 |
3 | 0.2063 | 9232200 | wp( ) | ...\wp-blog-header.php:16 |
4 | 0.2063 | 9232224 | WP->main( ) | ...\functions.php:1334 |
5 | 0.2063 | 9232224 | WP->parse_request( ) | ...\class-wp.php:780 |
6 | 0.2068 | 9258904 | do_action_ref_array( ) | ...\class-wp.php:399 |
7 | 0.2068 | 9258904 | WP_Hook->do_action( ) | ...\plugin.php:565 |
8 | 0.2068 | 9258904 | WP_Hook->apply_filters( ) | ...\class-wp-hook.php:332 |
9 | 0.2068 | 9259920 | rest_api_loaded( ) | ...\class-wp-hook.php:308 |
10 | 0.2655 | 11050792 | WP_REST_Server->serve_request( ) | ...\rest-api.php:410 |
11 | 0.2687 | 11050472 | WP_REST_Server->send_header( ) | ...\class-wp-rest-server.php:323 |
12 | 0.2687 | 11050792 | header ( ) | ...\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 | ||||
# | Time | Memory | Function | Location |
1 | 0.0001 | 402616 | {main}( ) | ...\index.php:0 |
2 | 0.0002 | 402896 | require( 'C:\wamp64_2\www\docbase\wp-blog-header.php' ) | ...\index.php:17 |
3 | 0.2063 | 9232200 | wp( ) | ...\wp-blog-header.php:16 |
4 | 0.2063 | 9232224 | WP->main( ) | ...\functions.php:1334 |
5 | 0.2063 | 9232224 | WP->parse_request( ) | ...\class-wp.php:780 |
6 | 0.2068 | 9258904 | do_action_ref_array( ) | ...\class-wp.php:399 |
7 | 0.2068 | 9258904 | WP_Hook->do_action( ) | ...\plugin.php:565 |
8 | 0.2068 | 9258904 | WP_Hook->apply_filters( ) | ...\class-wp-hook.php:332 |
9 | 0.2068 | 9259920 | rest_api_loaded( ) | ...\class-wp-hook.php:308 |
10 | 0.2655 | 11050792 | WP_REST_Server->serve_request( ) | ...\rest-api.php:410 |
11 | 0.2694 | 11050536 | WP_REST_Server->send_header( ) | ...\class-wp-rest-server.php:335 |
12 | 0.2694 | 11050904 | header ( ) | ...\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 | ||||
# | Time | Memory | Function | Location |
1 | 0.0001 | 402616 | {main}( ) | ...\index.php:0 |
2 | 0.0002 | 402896 | require( 'C:\wamp64_2\www\docbase\wp-blog-header.php' ) | ...\index.php:17 |
3 | 0.2063 | 9232200 | wp( ) | ...\wp-blog-header.php:16 |
4 | 0.2063 | 9232224 | WP->main( ) | ...\functions.php:1334 |
5 | 0.2063 | 9232224 | WP->parse_request( ) | ...\class-wp.php:780 |
6 | 0.2068 | 9258904 | do_action_ref_array( ) | ...\class-wp.php:399 |
7 | 0.2068 | 9258904 | WP_Hook->do_action( ) | ...\plugin.php:565 |
8 | 0.2068 | 9258904 | WP_Hook->apply_filters( ) | ...\class-wp-hook.php:332 |
9 | 0.2068 | 9259920 | rest_api_loaded( ) | ...\class-wp-hook.php:308 |
10 | 0.2655 | 11050792 | WP_REST_Server->serve_request( ) | ...\rest-api.php:410 |
11 | 0.2701 | 11050584 | WP_REST_Server->send_header( ) | ...\class-wp-rest-server.php:359 |
12 | 0.2701 | 11050952 | header ( ) | ...\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 | ||||
# | Time | Memory | Function | Location |
1 | 0.0001 | 402616 | {main}( ) | ...\index.php:0 |
2 | 0.0002 | 402896 | require( 'C:\wamp64_2\www\docbase\wp-blog-header.php' ) | ...\index.php:17 |
3 | 0.2063 | 9232200 | wp( ) | ...\wp-blog-header.php:16 |
4 | 0.2063 | 9232224 | WP->main( ) | ...\functions.php:1334 |
5 | 0.2063 | 9232224 | WP->parse_request( ) | ...\class-wp.php:780 |
6 | 0.2068 | 9258904 | do_action_ref_array( ) | ...\class-wp.php:399 |
7 | 0.2068 | 9258904 | WP_Hook->do_action( ) | ...\plugin.php:565 |
8 | 0.2068 | 9258904 | WP_Hook->apply_filters( ) | ...\class-wp-hook.php:332 |
9 | 0.2068 | 9259920 | rest_api_loaded( ) | ...\class-wp-hook.php:308 |
10 | 0.2655 | 11050792 | WP_REST_Server->serve_request( ) | ...\rest-api.php:410 |
11 | 0.3124 | 11369256 | WP_REST_Server->send_headers( ) | ...\class-wp-rest-server.php:475 |
12 | 0.3124 | 11369256 | WP_REST_Server->send_header( ) | ...\class-wp-rest-server.php:1774 |
13 | 0.3124 | 11369832 | header ( ) | ...\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 | ||||
# | Time | Memory | Function | Location |
1 | 0.0001 | 402616 | {main}( ) | ...\index.php:0 |
2 | 0.0002 | 402896 | require( 'C:\wamp64_2\www\docbase\wp-blog-header.php' ) | ...\index.php:17 |
3 | 0.2063 | 9232200 | wp( ) | ...\wp-blog-header.php:16 |
4 | 0.2063 | 9232224 | WP->main( ) | ...\functions.php:1334 |
5 | 0.2063 | 9232224 | WP->parse_request( ) | ...\class-wp.php:780 |
6 | 0.2068 | 9258904 | do_action_ref_array( ) | ...\class-wp.php:399 |
7 | 0.2068 | 9258904 | WP_Hook->do_action( ) | ...\plugin.php:565 |
8 | 0.2068 | 9258904 | WP_Hook->apply_filters( ) | ...\class-wp-hook.php:332 |
9 | 0.2068 | 9259920 | rest_api_loaded( ) | ...\class-wp-hook.php:308 |
10 | 0.2655 | 11050792 | WP_REST_Server->serve_request( ) | ...\rest-api.php:410 |
11 | 0.3124 | 11369256 | WP_REST_Server->send_headers( ) | ...\class-wp-rest-server.php:475 |
12 | 0.3133 | 11369256 | WP_REST_Server->send_header( ) | ...\class-wp-rest-server.php:1774 |
13 | 0.3133 | 11369576 | header ( ) | ...\class-wp-rest-server.php:1762 |
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 <\/p>\n Security Parameters<\/span><\/p>\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 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 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}]}}\n\n
\n\t \nRequest Body Parameter<\/th> Description<\/th> Format<\/th>\n<\/tr>\n<\/thead>\n \n\t productid<\/td> Merchant Product Identifier on WebPAY. Same used in Payment leg<\/td> Numeric<\/td>\n<\/tr>\n \n\t amount<\/td> Original transaction reference sent in the original request\u00a0 (transaction reference you generated for this\t<\/td> Numeric<\/td>\n<\/tr>\n \n\t 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 \n\n
\n\t \nRequest Body Parameter<\/th> Description<\/th> Format<\/th>\n<\/tr>\n<\/thead>\n \n\t 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 Request Submission<\/strong><\/span><\/h4>\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