( ! ) 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.0001402648{main}( )...\index.php:0
20.0001402928require( 'C:\wamp64_2\www\docbase\wp-blog-header.php' )...\index.php:17
30.23189232232wp( )...\wp-blog-header.php:16
40.23199232256WP->main( )...\functions.php:1334
50.23199232256WP->parse_request( )...\class-wp.php:780
60.23249258944do_action_ref_array( )...\class-wp.php:399
70.23249258944WP_Hook->do_action( )...\plugin.php:565
80.23249258944WP_Hook->apply_filters( )...\class-wp-hook.php:332
90.23249259960rest_api_loaded( )...\class-wp-hook.php:308
100.23249259992rest_get_server( )...\rest-api.php:403
110.23249262928do_action( )...\rest-api.php:577
120.23249263304WP_Hook->do_action( )...\plugin.php:517
130.23249263304WP_Hook->apply_filters( )...\class-wp-hook.php:332
140.23339302504Jetpack_Core_Json_Api_Endpoints::register_endpoints( )...\class-wp-hook.php:308
150.23359310496Jetpack::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.0001402648{main}( )...\index.php:0
20.0001402928require( 'C:\wamp64_2\www\docbase\wp-blog-header.php' )...\index.php:17
30.23189232232wp( )...\wp-blog-header.php:16
40.23199232256WP->main( )...\functions.php:1334
50.23199232256WP->parse_request( )...\class-wp.php:780
60.23249258944do_action_ref_array( )...\class-wp.php:399
70.23249258944WP_Hook->do_action( )...\plugin.php:565
80.23249258944WP_Hook->apply_filters( )...\class-wp-hook.php:332
90.23249259960rest_api_loaded( )...\class-wp-hook.php:308
100.290911050832WP_REST_Server->serve_request( )...\rest-api.php:410
110.291011050488WP_REST_Server->send_header( )...\class-wp-rest-server.php:310
120.291111050816header ( )...\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.0001402648{main}( )...\index.php:0
20.0001402928require( 'C:\wamp64_2\www\docbase\wp-blog-header.php' )...\index.php:17
30.23189232232wp( )...\wp-blog-header.php:16
40.23199232256WP->main( )...\functions.php:1334
50.23199232256WP->parse_request( )...\class-wp.php:780
60.23249258944do_action_ref_array( )...\class-wp.php:399
70.23249258944WP_Hook->do_action( )...\plugin.php:565
80.23249258944WP_Hook->apply_filters( )...\class-wp-hook.php:332
90.23249259960rest_api_loaded( )...\class-wp-hook.php:308
100.290911050832WP_REST_Server->serve_request( )...\rest-api.php:410
110.292011050432WP_REST_Server->send_header( )...\class-wp-rest-server.php:311
120.292011050752header ( )...\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.0001402648{main}( )...\index.php:0
20.0001402928require( 'C:\wamp64_2\www\docbase\wp-blog-header.php' )...\index.php:17
30.23189232232wp( )...\wp-blog-header.php:16
40.23199232256WP->main( )...\functions.php:1334
50.23199232256WP->parse_request( )...\class-wp.php:780
60.23249258944do_action_ref_array( )...\class-wp.php:399
70.23249258944WP_Hook->do_action( )...\plugin.php:565
80.23249258944WP_Hook->apply_filters( )...\class-wp-hook.php:332
90.23249259960rest_api_loaded( )...\class-wp-hook.php:308
100.290911050832WP_REST_Server->serve_request( )...\rest-api.php:410
110.293211050624WP_REST_Server->send_header( )...\class-wp-rest-server.php:315
120.293211050992header ( )...\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.0001402648{main}( )...\index.php:0
20.0001402928require( 'C:\wamp64_2\www\docbase\wp-blog-header.php' )...\index.php:17
30.23189232232wp( )...\wp-blog-header.php:16
40.23199232256WP->main( )...\functions.php:1334
50.23199232256WP->parse_request( )...\class-wp.php:780
60.23249258944do_action_ref_array( )...\class-wp.php:399
70.23249258944WP_Hook->do_action( )...\plugin.php:565
80.23249258944WP_Hook->apply_filters( )...\class-wp-hook.php:332
90.23249259960rest_api_loaded( )...\class-wp-hook.php:308
100.290911050832WP_REST_Server->serve_request( )...\rest-api.php:410
110.294211050512WP_REST_Server->send_header( )...\class-wp-rest-server.php:323
120.294211050832header ( )...\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.0001402648{main}( )...\index.php:0
20.0001402928require( 'C:\wamp64_2\www\docbase\wp-blog-header.php' )...\index.php:17
30.23189232232wp( )...\wp-blog-header.php:16
40.23199232256WP->main( )...\functions.php:1334
50.23199232256WP->parse_request( )...\class-wp.php:780
60.23249258944do_action_ref_array( )...\class-wp.php:399
70.23249258944WP_Hook->do_action( )...\plugin.php:565
80.23249258944WP_Hook->apply_filters( )...\class-wp-hook.php:332
90.23249259960rest_api_loaded( )...\class-wp-hook.php:308
100.290911050832WP_REST_Server->serve_request( )...\rest-api.php:410
110.294911050576WP_REST_Server->send_header( )...\class-wp-rest-server.php:335
120.294911050944header ( )...\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.0001402648{main}( )...\index.php:0
20.0001402928require( 'C:\wamp64_2\www\docbase\wp-blog-header.php' )...\index.php:17
30.23189232232wp( )...\wp-blog-header.php:16
40.23199232256WP->main( )...\functions.php:1334
50.23199232256WP->parse_request( )...\class-wp.php:780
60.23249258944do_action_ref_array( )...\class-wp.php:399
70.23249258944WP_Hook->do_action( )...\plugin.php:565
80.23249258944WP_Hook->apply_filters( )...\class-wp-hook.php:332
90.23249259960rest_api_loaded( )...\class-wp-hook.php:308
100.290911050832WP_REST_Server->serve_request( )...\rest-api.php:410
110.295711050624WP_REST_Server->send_header( )...\class-wp-rest-server.php:359
120.295711050992header ( )...\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.0001402648{main}( )...\index.php:0
20.0001402928require( 'C:\wamp64_2\www\docbase\wp-blog-header.php' )...\index.php:17
30.23189232232wp( )...\wp-blog-header.php:16
40.23199232256WP->main( )...\functions.php:1334
50.23199232256WP->parse_request( )...\class-wp.php:780
60.23249258944do_action_ref_array( )...\class-wp.php:399
70.23249258944WP_Hook->do_action( )...\plugin.php:565
80.23249258944WP_Hook->apply_filters( )...\class-wp-hook.php:332
90.23249259960rest_api_loaded( )...\class-wp-hook.php:308
100.290911050832WP_REST_Server->serve_request( )...\rest-api.php:410
110.327811269792WP_REST_Server->send_headers( )...\class-wp-rest-server.php:475
120.327811269792WP_REST_Server->send_header( )...\class-wp-rest-server.php:1774
130.327811270304header ( )...\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.0001402648{main}( )...\index.php:0
20.0001402928require( 'C:\wamp64_2\www\docbase\wp-blog-header.php' )...\index.php:17
30.23189232232wp( )...\wp-blog-header.php:16
40.23199232256WP->main( )...\functions.php:1334
50.23199232256WP->parse_request( )...\class-wp.php:780
60.23249258944do_action_ref_array( )...\class-wp.php:399
70.23249258944WP_Hook->do_action( )...\plugin.php:565
80.23249258944WP_Hook->apply_filters( )...\class-wp-hook.php:332
90.23249259960rest_api_loaded( )...\class-wp-hook.php:308
100.290911050832WP_REST_Server->serve_request( )...\rest-api.php:410
110.327811269792WP_REST_Server->send_headers( )...\class-wp-rest-server.php:475
120.328811269792WP_REST_Server->send_header( )...\class-wp-rest-server.php:1774
130.328811270112header ( )...\class-wp-rest-server.php:1762
{"id":2669,"date":"2018-04-13T13:19:52","date_gmt":"2018-04-13T13:19:52","guid":{"rendered":"http:\/\/sandbox.interswitchng.com\/docbase\/docs\/developer-console-guide\/samples\/"},"modified":"2018-08-10T13:51:45","modified_gmt":"2018-08-10T13:51:45","slug":"samples","status":"publish","type":"docs","link":"https:\/\/sandbox.interswitchng.com\/docbase\/docs\/developer-console-guide\/samples\/","title":{"rendered":"Request\/Response Samples"},"content":{"rendered":"

Sample Header for Balance Enquiry<\/u><\/h3>\n

Content Type<\/strong>:application\/json<\/p>\n

Authorization<\/strong>:InterswitchAuth SUifhfjdbxbkfhj132hdfhjshfjhsv<\/p>\n

Signature<\/strong>:kuTwggg\/3gdgdghs= Timestamp<\/strong>: 1434455667788<\/p>\n

Nonce<\/strong>:7333394444423754333<\/p>\n

SignatureMethod<\/strong>:SHA1<\/p>\n

AUTH_DATA<\/strong>:PojezOMUCQJogdxvkNEkIqmLqTIgalYX9N60jerdsdfgfghfft6zyef1+vuPzc0Tqpe RQ9LmVGTQ9hhlY8I5GvhN2qAuzpAMbDYMr1FM8QvVcihQjBhhNQx+cAJ638Iz+rCr6jsbILIDui2Q<\/p>\n

YAwTZBOfCmmqyQitPUwvRvUXlbWLmAZvxn\/xPmrlLKnuStlsIWB22yPWLMe3vX+AMvriNX9G9cgu5 2zI6vUPB2GIpaA1WTa6k0aSzPicNBBBvq08nWybA9NeBSTsLurY1OGgpR5OU4RyVCIN4vD07NAvdX<\/p>\n

WdGsvHobIM45p0ebvKKg1COYnWXA==<\/p>\n

PRODUCT_CODE:\u00a0AUTOPAY00000002<\/strong><\/p>\n

TERMINAL_ID<\/strong>:41TegWo2<\/p>\n

 <\/p>\n

Sample Response for successful Balance Enquiry <\/u><\/h3>\n

{<\/p>\n

“balance”:”100,000,000.00″<\/p>\n

}<\/p>\n

Sample Response for failed Balance Enquiry <\/u><\/h3>\n

{<\/p>\n

“errors”=>[<\/p>\n

{<\/p>\n

“code”=>”E38”,<\/p>\n

“message”=>”Request payload is invalid”}<\/p>\n

],<\/p>\n

 <\/p>\n

“error”=><\/p>\n

{<\/p>\n

“code”=>”E38”,<\/p>\n

“message”=>”Request payload is invalid”<\/p>\n

}<\/p>\n

}<\/p>\n

Sample Header for Pin Change <\/u><\/h3>\n

Content Type:application\/json<\/p>\n

Authorization:InterswitchAuth SUifhfjdbxbkfhj132hdfhjshfjhsv<\/p>\n

Signature:kuTwggg\/3gdgdghs=<\/p>\n

Timestamp: 1434455667788 Nonce:7333394444423754333<\/p>\n

SignatureMethod:SHA1\u00a0<\/strong><\/p>\n

PRODUCT_CODE:\u00a0AUTOPAY00000002<\/p>\n

Sample Request for Pin Change <\/u><\/h3>\n

{<\/p>\n

“oldAuthData”:”P+sCbEq1T4HvJgmabHd5O+yJKRW7aRewjucOa3TJsVCaAxuSzeFnkLGg4u8ambv7kanN9WO zmUFxYIGjN8LBuwu6hKpz9I2ivoZD9DKpM5npJeoV2uUwGU1cB8N604guQuaU1eeHFqIX2HLxyvYrKnLZCUeY6 aJg0XHffbEZXpegEjkfmcKpioHPXxa4msUTmEPl+tJsmdx5aUUph8k+yD+ddUJLPPo\/mknOW1OlCImhFJhRqEc 3kRM7jDuAfsOi\/k7p4dmzY25anigPqM9iWnxCx66I4y1xetxvnx5CX2aU21yjJdFmW+rXDumOL6QIzZhPnIP1b WAQnWmNLuDIig==”,<\/p>\n

“newAuthData”:”fPw\/wwq1ZOBsE4rsTmpA5ltlFbAkozO7KpABD3z\/7rVsMyoRFSMEzsGOzYh\/fDtJz8avy+z tknDP7YaQ6jCNAWh5QvJ\/9UaOakSrA+hj9PRpGsE7edWh9iSEa8FwOigRb+qdCFuM6Q3HvuGsfqCw56l0J\/iU9 wjUg8oB6RByHy54xqeQY8xNmnkelhSObyLrKgE245XuFrTvwImzGlkQvpL0liMLPNfzgEM\/TewAIkv6MeQXIMC 3xxJXyBKDKm1Nr5D\/VV3blcRrYooAFQIgiJAffIUXqZ\/aewS3+Yws0NxGJtQPLZnbtviLzXHXGg81aJ7ugLmkf k8hcSrNTBbHZw==”, “terminalId”:”4QTL0001″,<\/p>\n

“productCode”: “0123345”<\/p>\n

}<\/p>\n

Sample Response for successful Pin Change<\/u><\/h3>\n

204 HTTP response, no body returned.<\/p>\n

\u00a0<\/strong><\/p>\n

Sample Response for failed Pin Change <\/u><\/h3>\n

{<\/p>\n

 <\/p>\n

“errors”=>[<\/p>\n

{“code”=>”55”,<\/p>\n

“message”=>”Failed”,<\/p>\n

“statusCode”=>”55”,<\/p>\n

“statusMessage”=>”Failed”}],<\/p>\n

 <\/p>\n

“error”=><\/p>\n

{“code”=>”55”,<\/p>\n

“message”=>”Failed”,<\/p>\n

“statusCode”=>”55”,<\/p>\n

“statusMessage”=>”Failed”<\/p>\n

}<\/p>\n

}\u00a0<\/strong><\/p>\n

Sample Codes <\/u><\/h3>\n

\/\/ Timestamp<\/p>\n

TimeZone lagosTimeZone = TimeZone.getTimeZone(“Africa\/Lagos”);\u00a0 Calendar calendar = Calendar.getInstance(lagosTimeZone);\u00a0 long timestamp = calendar.getTimeInMillis() \/ 1000;<\/p>\n

 <\/p>\n

\/\/ Nonce<\/p>\n

UUID uuid = UUID.randomUUID();<\/p>\n

String nonce = uuid.toString().replaceAll(“-“, “”);<\/p>\n

 <\/p>\n

\/\/ Signature Method<\/p>\n

String signatureMethod = “SHA1”;<\/p>\n

 <\/p>\n

\/\/ Signature<\/p>\n

String httpMethod = “POST”; \/\/ HTTP Method of the resource that is being called<\/p>\n

String encodedResourceUrl = “RESOURCE_URL”; \/\/ put the resource URL here<\/p>\n

String clientId = “CLIENT_ID”; \/\/ put your client Id here<\/p>\n

String clientSecretKey = “CLIENT_SECRET_KEY”; \/\/ put your client secret here<\/p>\n

String signatureCipher = httpMethod + “&” + encodedResourceUrl + “&” + timestamp + “&” + nonce + “&” + clientId + “&” + clientSecretKey;<\/p>\n

MessageDigest messageDigest = MessageDigest.getInstance(signatureMethod);\u00a0 byte[] signatureBytes = messageDigest.digest(signatureCipher.getBytes());\u00a0 String signature = new String(Base64.encodeBase64(signatureBytes));<\/p>\n

 <\/p>\n

\/\/ Setting HTTP Header values<\/p>\n

String resourceUrl = “https:\/\/sandbox.interswitchng.com\/passport\/oauth\/token”;<\/p>\n

HttpPost post = new HttpPost(resourceUrl);\u00a0 post.setHeader(“TIMESTAMP”, timestamp);\u00a0 post.setHeader(“NONCE”, nonce);<\/p>\n

post.setHeader(“SIGNATURE_METHOD”, signatureMethod);\u00a0 post.setHeader(“SIGNATURE”, signature)<\/p>\n","protected":false},"author":169,"featured_media":0,"parent":2664,"menu_order":4,"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\/2669"}],"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\/169"}],"replies":[{"embeddable":true,"href":"https:\/\/sandbox.interswitchng.com\/docbase\/wp-json\/wp\/v2\/comments?post=2669"}],"version-history":[{"count":4,"href":"https:\/\/sandbox.interswitchng.com\/docbase\/wp-json\/wp\/v2\/docs\/2669\/revisions"}],"predecessor-version":[{"id":3048,"href":"https:\/\/sandbox.interswitchng.com\/docbase\/wp-json\/wp\/v2\/docs\/2669\/revisions\/3048"}],"up":[{"embeddable":true,"href":"https:\/\/sandbox.interswitchng.com\/docbase\/wp-json\/wp\/v2\/docs\/2664"}],"prev":[{"title":"Balance Enquiry\/Pin Change","link":"https:\/\/sandbox.interswitchng.com\/docbase\/docs\/developer-console-guide\/balance-enquirypin-change\/","href":"https:\/\/sandbox.interswitchng.com\/docbase\/wp-json\/wp\/v2\/docs\/2668"}],"wp:attachment":[{"href":"https:\/\/sandbox.interswitchng.com\/docbase\/wp-json\/wp\/v2\/media?parent=2669"}],"wp:term":[{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/sandbox.interswitchng.com\/docbase\/wp-json\/wp\/v2\/doc_tag?post=2669"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}