( ! ) 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.0003401784require( 'C:\wamp64_2\www\docbase\wp-blog-header.php' )...\index.php:17
31.28629305696wp( )...\wp-blog-header.php:16
41.28629305720WP->main( )...\functions.php:1334
51.28629305720WP->parse_request( )...\class-wp.php:780
61.28719332408do_action_ref_array( )...\class-wp.php:399
71.28719332408WP_Hook->do_action( )...\plugin.php:565
81.28719332408WP_Hook->apply_filters( )...\class-wp-hook.php:332
91.28719333424rest_api_loaded( )...\class-wp-hook.php:308
101.28719333456rest_get_server( )...\rest-api.php:403
111.28719336392do_action( )...\rest-api.php:577
121.28719336768WP_Hook->do_action( )...\plugin.php:517
131.28719336768WP_Hook->apply_filters( )...\class-wp-hook.php:332
141.28849375968Jetpack_Core_Json_Api_Endpoints::register_endpoints( )...\class-wp-hook.php:308
151.28879383960Jetpack::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.0003401784require( 'C:\wamp64_2\www\docbase\wp-blog-header.php' )...\index.php:17
31.28629305696wp( )...\wp-blog-header.php:16
41.28629305720WP->main( )...\functions.php:1334
51.28629305720WP->parse_request( )...\class-wp.php:780
61.28719332408do_action_ref_array( )...\class-wp.php:399
71.28719332408WP_Hook->do_action( )...\plugin.php:565
81.28719332408WP_Hook->apply_filters( )...\class-wp-hook.php:332
91.28719333424rest_api_loaded( )...\class-wp-hook.php:308
101.354911124296WP_REST_Server->serve_request( )...\rest-api.php:410
111.355011123952WP_REST_Server->send_header( )...\class-wp-rest-server.php:310
121.355111124280header ( )...\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.0003401784require( 'C:\wamp64_2\www\docbase\wp-blog-header.php' )...\index.php:17
31.28629305696wp( )...\wp-blog-header.php:16
41.28629305720WP->main( )...\functions.php:1334
51.28629305720WP->parse_request( )...\class-wp.php:780
61.28719332408do_action_ref_array( )...\class-wp.php:399
71.28719332408WP_Hook->do_action( )...\plugin.php:565
81.28719332408WP_Hook->apply_filters( )...\class-wp-hook.php:332
91.28719333424rest_api_loaded( )...\class-wp-hook.php:308
101.354911124296WP_REST_Server->serve_request( )...\rest-api.php:410
111.356511123896WP_REST_Server->send_header( )...\class-wp-rest-server.php:311
121.356511124216header ( )...\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.0003401784require( 'C:\wamp64_2\www\docbase\wp-blog-header.php' )...\index.php:17
31.28629305696wp( )...\wp-blog-header.php:16
41.28629305720WP->main( )...\functions.php:1334
51.28629305720WP->parse_request( )...\class-wp.php:780
61.28719332408do_action_ref_array( )...\class-wp.php:399
71.28719332408WP_Hook->do_action( )...\plugin.php:565
81.28719332408WP_Hook->apply_filters( )...\class-wp-hook.php:332
91.28719333424rest_api_loaded( )...\class-wp-hook.php:308
101.354911124296WP_REST_Server->serve_request( )...\rest-api.php:410
111.358211124088WP_REST_Server->send_header( )...\class-wp-rest-server.php:315
121.358211124456header ( )...\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.0003401784require( 'C:\wamp64_2\www\docbase\wp-blog-header.php' )...\index.php:17
31.28629305696wp( )...\wp-blog-header.php:16
41.28629305720WP->main( )...\functions.php:1334
51.28629305720WP->parse_request( )...\class-wp.php:780
61.28719332408do_action_ref_array( )...\class-wp.php:399
71.28719332408WP_Hook->do_action( )...\plugin.php:565
81.28719332408WP_Hook->apply_filters( )...\class-wp-hook.php:332
91.28719333424rest_api_loaded( )...\class-wp-hook.php:308
101.354911124296WP_REST_Server->serve_request( )...\rest-api.php:410
111.359411123976WP_REST_Server->send_header( )...\class-wp-rest-server.php:323
121.359411124296header ( )...\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.0003401784require( 'C:\wamp64_2\www\docbase\wp-blog-header.php' )...\index.php:17
31.28629305696wp( )...\wp-blog-header.php:16
41.28629305720WP->main( )...\functions.php:1334
51.28629305720WP->parse_request( )...\class-wp.php:780
61.28719332408do_action_ref_array( )...\class-wp.php:399
71.28719332408WP_Hook->do_action( )...\plugin.php:565
81.28719332408WP_Hook->apply_filters( )...\class-wp-hook.php:332
91.28719333424rest_api_loaded( )...\class-wp-hook.php:308
101.354911124296WP_REST_Server->serve_request( )...\rest-api.php:410
111.360511124040WP_REST_Server->send_header( )...\class-wp-rest-server.php:335
121.360511124408header ( )...\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.0003401784require( 'C:\wamp64_2\www\docbase\wp-blog-header.php' )...\index.php:17
31.28629305696wp( )...\wp-blog-header.php:16
41.28629305720WP->main( )...\functions.php:1334
51.28629305720WP->parse_request( )...\class-wp.php:780
61.28719332408do_action_ref_array( )...\class-wp.php:399
71.28719332408WP_Hook->do_action( )...\plugin.php:565
81.28719332408WP_Hook->apply_filters( )...\class-wp-hook.php:332
91.28719333424rest_api_loaded( )...\class-wp-hook.php:308
101.354911124296WP_REST_Server->serve_request( )...\rest-api.php:410
111.361711124088WP_REST_Server->send_header( )...\class-wp-rest-server.php:359
121.361711124456header ( )...\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.0003401784require( 'C:\wamp64_2\www\docbase\wp-blog-header.php' )...\index.php:17
31.28629305696wp( )...\wp-blog-header.php:16
41.28629305720WP->main( )...\functions.php:1334
51.28629305720WP->parse_request( )...\class-wp.php:780
61.28719332408do_action_ref_array( )...\class-wp.php:399
71.28719332408WP_Hook->do_action( )...\plugin.php:565
81.28719332408WP_Hook->apply_filters( )...\class-wp-hook.php:332
91.28719333424rest_api_loaded( )...\class-wp-hook.php:308
101.354911124296WP_REST_Server->serve_request( )...\rest-api.php:410
111.416311360216WP_REST_Server->send_headers( )...\class-wp-rest-server.php:475
121.416311360216WP_REST_Server->send_header( )...\class-wp-rest-server.php:1774
131.416411360728header ( )...\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.0003401784require( 'C:\wamp64_2\www\docbase\wp-blog-header.php' )...\index.php:17
31.28629305696wp( )...\wp-blog-header.php:16
41.28629305720WP->main( )...\functions.php:1334
51.28629305720WP->parse_request( )...\class-wp.php:780
61.28719332408do_action_ref_array( )...\class-wp.php:399
71.28719332408WP_Hook->do_action( )...\plugin.php:565
81.28719332408WP_Hook->apply_filters( )...\class-wp-hook.php:332
91.28719333424rest_api_loaded( )...\class-wp-hook.php:308
101.354911124296WP_REST_Server->serve_request( )...\rest-api.php:410
111.416311360216WP_REST_Server->send_headers( )...\class-wp-rest-server.php:475
121.417511360216WP_REST_Server->send_header( )...\class-wp-rest-server.php:1774
131.417511360536header ( )...\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":5,"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}]}}