( ! ) 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.0001401504{main}( )...\index.php:0
20.0002401784require( 'C:\wamp64_2\www\docbase\wp-blog-header.php' )...\index.php:17
30.25229230712wp( )...\wp-blog-header.php:16
40.25239230736WP->main( )...\functions.php:1334
50.25239230736WP->parse_request( )...\class-wp.php:780
60.25289257424do_action_ref_array( )...\class-wp.php:399
70.25289257424WP_Hook->do_action( )...\plugin.php:565
80.25289257424WP_Hook->apply_filters( )...\class-wp-hook.php:332
90.25289258440rest_api_loaded( )...\class-wp-hook.php:308
100.25289258472rest_get_server( )...\rest-api.php:403
110.25289261408do_action( )...\rest-api.php:577
120.25289261784WP_Hook->do_action( )...\plugin.php:517
130.25289261784WP_Hook->apply_filters( )...\class-wp-hook.php:332
140.25379300984Jetpack_Core_Json_Api_Endpoints::register_endpoints( )...\class-wp-hook.php:308
150.25399308976Jetpack::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.0001401504{main}( )...\index.php:0
20.0002401784require( 'C:\wamp64_2\www\docbase\wp-blog-header.php' )...\index.php:17
30.25229230712wp( )...\wp-blog-header.php:16
40.25239230736WP->main( )...\functions.php:1334
50.25239230736WP->parse_request( )...\class-wp.php:780
60.25289257424do_action_ref_array( )...\class-wp.php:399
70.25289257424WP_Hook->do_action( )...\plugin.php:565
80.25289257424WP_Hook->apply_filters( )...\class-wp-hook.php:332
90.25289258440rest_api_loaded( )...\class-wp-hook.php:308
100.315911049312WP_REST_Server->serve_request( )...\rest-api.php:410
110.316011048968WP_REST_Server->send_header( )...\class-wp-rest-server.php:310
120.316011049296header ( )...\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.0001401504{main}( )...\index.php:0
20.0002401784require( 'C:\wamp64_2\www\docbase\wp-blog-header.php' )...\index.php:17
30.25229230712wp( )...\wp-blog-header.php:16
40.25239230736WP->main( )...\functions.php:1334
50.25239230736WP->parse_request( )...\class-wp.php:780
60.25289257424do_action_ref_array( )...\class-wp.php:399
70.25289257424WP_Hook->do_action( )...\plugin.php:565
80.25289257424WP_Hook->apply_filters( )...\class-wp-hook.php:332
90.25289258440rest_api_loaded( )...\class-wp-hook.php:308
100.315911049312WP_REST_Server->serve_request( )...\rest-api.php:410
110.317111048912WP_REST_Server->send_header( )...\class-wp-rest-server.php:311
120.317111049232header ( )...\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.0001401504{main}( )...\index.php:0
20.0002401784require( 'C:\wamp64_2\www\docbase\wp-blog-header.php' )...\index.php:17
30.25229230712wp( )...\wp-blog-header.php:16
40.25239230736WP->main( )...\functions.php:1334
50.25239230736WP->parse_request( )...\class-wp.php:780
60.25289257424do_action_ref_array( )...\class-wp.php:399
70.25289257424WP_Hook->do_action( )...\plugin.php:565
80.25289257424WP_Hook->apply_filters( )...\class-wp-hook.php:332
90.25289258440rest_api_loaded( )...\class-wp-hook.php:308
100.315911049312WP_REST_Server->serve_request( )...\rest-api.php:410
110.318511049104WP_REST_Server->send_header( )...\class-wp-rest-server.php:315
120.318511049472header ( )...\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.0001401504{main}( )...\index.php:0
20.0002401784require( 'C:\wamp64_2\www\docbase\wp-blog-header.php' )...\index.php:17
30.25229230712wp( )...\wp-blog-header.php:16
40.25239230736WP->main( )...\functions.php:1334
50.25239230736WP->parse_request( )...\class-wp.php:780
60.25289257424do_action_ref_array( )...\class-wp.php:399
70.25289257424WP_Hook->do_action( )...\plugin.php:565
80.25289257424WP_Hook->apply_filters( )...\class-wp-hook.php:332
90.25289258440rest_api_loaded( )...\class-wp-hook.php:308
100.315911049312WP_REST_Server->serve_request( )...\rest-api.php:410
110.319611048992WP_REST_Server->send_header( )...\class-wp-rest-server.php:323
120.319611049312header ( )...\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.0001401504{main}( )...\index.php:0
20.0002401784require( 'C:\wamp64_2\www\docbase\wp-blog-header.php' )...\index.php:17
30.25229230712wp( )...\wp-blog-header.php:16
40.25239230736WP->main( )...\functions.php:1334
50.25239230736WP->parse_request( )...\class-wp.php:780
60.25289257424do_action_ref_array( )...\class-wp.php:399
70.25289257424WP_Hook->do_action( )...\plugin.php:565
80.25289257424WP_Hook->apply_filters( )...\class-wp-hook.php:332
90.25289258440rest_api_loaded( )...\class-wp-hook.php:308
100.315911049312WP_REST_Server->serve_request( )...\rest-api.php:410
110.320411049056WP_REST_Server->send_header( )...\class-wp-rest-server.php:335
120.320411049424header ( )...\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.0001401504{main}( )...\index.php:0
20.0002401784require( 'C:\wamp64_2\www\docbase\wp-blog-header.php' )...\index.php:17
30.25229230712wp( )...\wp-blog-header.php:16
40.25239230736WP->main( )...\functions.php:1334
50.25239230736WP->parse_request( )...\class-wp.php:780
60.25289257424do_action_ref_array( )...\class-wp.php:399
70.25289257424WP_Hook->do_action( )...\plugin.php:565
80.25289257424WP_Hook->apply_filters( )...\class-wp-hook.php:332
90.25289258440rest_api_loaded( )...\class-wp-hook.php:308
100.315911049312WP_REST_Server->serve_request( )...\rest-api.php:410
110.321211049104WP_REST_Server->send_header( )...\class-wp-rest-server.php:359
120.321211049472header ( )...\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.0001401504{main}( )...\index.php:0
20.0002401784require( 'C:\wamp64_2\www\docbase\wp-blog-header.php' )...\index.php:17
30.25229230712wp( )...\wp-blog-header.php:16
40.25239230736WP->main( )...\functions.php:1334
50.25239230736WP->parse_request( )...\class-wp.php:780
60.25289257424do_action_ref_array( )...\class-wp.php:399
70.25289257424WP_Hook->do_action( )...\plugin.php:565
80.25289257424WP_Hook->apply_filters( )...\class-wp-hook.php:332
90.25289258440rest_api_loaded( )...\class-wp-hook.php:308
100.315911049312WP_REST_Server->serve_request( )...\rest-api.php:410
110.360411367584WP_REST_Server->send_headers( )...\class-wp-rest-server.php:475
120.360411367584WP_REST_Server->send_header( )...\class-wp-rest-server.php:1774
130.360411368128header ( )...\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.0001401504{main}( )...\index.php:0
20.0002401784require( 'C:\wamp64_2\www\docbase\wp-blog-header.php' )...\index.php:17
30.25229230712wp( )...\wp-blog-header.php:16
40.25239230736WP->main( )...\functions.php:1334
50.25239230736WP->parse_request( )...\class-wp.php:780
60.25289257424do_action_ref_array( )...\class-wp.php:399
70.25289257424WP_Hook->do_action( )...\plugin.php:565
80.25289257424WP_Hook->apply_filters( )...\class-wp-hook.php:332
90.25289258440rest_api_loaded( )...\class-wp-hook.php:308
100.315911049312WP_REST_Server->serve_request( )...\rest-api.php:410
110.360411367584WP_REST_Server->send_headers( )...\class-wp-rest-server.php:475
120.361711367584WP_REST_Server->send_header( )...\class-wp-rest-server.php:1774
130.361711367904header ( )...\class-wp-rest-server.php:1762
{"id":1987,"date":"2017-09-12T12:11:24","date_gmt":"2017-09-12T12:11:24","guid":{"rendered":"http:\/\/sandbox.interswitchng.com\/docbase\/docs\/webpay\/new-webpay\/popup-implementation\/"},"modified":"2021-04-21T09:57:48","modified_gmt":"2021-04-21T09:57:48","slug":"popup-implementation","status":"publish","type":"docs","link":"https:\/\/sandbox.interswitchng.com\/docbase\/docs\/webpay\/new-webpay\/popup-implementation\/","title":{"rendered":"Popup Implementation"},"content":{"rendered":"

New WebPAY Pop-Up Implementation
\n\"\"<\/a><\/h4>\n

This can be used by customers who want to keep the customer experience look and feel of their website intact.<\/p>\n

 <\/p>\n

Transaction Payment Leg<\/h4>\n

Payment leg is achieved via below script sent to service URL\u00a0http:\/\/sandbox.interswitchng.com\/collections\/public\/webpay.js.<\/p>\n

<html>\r\n<head>\r\n\u00a0 <script type=\"text\/javascript\" src=\"http:\/\/sandbox.interswitchng.com\/collections\/public\/webpay.js\"><\/script>\r\n<\/head><body onload=\"document.myform.submit()\">\r\n\u00a0 <script>\r\n\u00a0 $(document).ready(function (){\r\n\u00a0\u00a0\u00a0 var iswPay = new IswPay({\r\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 postUrl:\"https:\/\/sandbox.interswitchng.com\/collections\/w\/pay\",\r\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 amount: 10000,\r\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 productId: \"1076\",\r\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \u00a0\u00a0\u00a0transRef: \"4327408aaa\",\r\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 siteName: \"test merchant site\",\r\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 itemId: \"101\",\r\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 customerId: \"000001\",\r\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 siteRedirectUrl: \"http:\/\/localhost:8080\/webpopupnew.html\",\r\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 currency: \"NGN\",\r\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 hash: \"A6485CE39EAF476985A89FA74065A992279AB747A7B7FB4032CED18A92A4F0BA9E7C9BC81A6E5A1A469F\",\r\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 onComplete : function (paymentResponse){\r\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 console.log(paymentResponse);\r\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 }\r\n\u00a0\u00a0\u00a0\u00a0\u00a0 });\r\n\u00a0\u00a0\u00a0 });\r\n\u00a0\u00a0\u00a0\u00a0\u00a0 <\/script>\r\n<\/body>\r\n<\/html><\/pre>\n

Complete merchant details to use can be found below:<\/p>\n

1.5% Fee New WebPAY Details (NO SPLIT XML)<\/h2>\n1.5% to a cap of N2,000 Transaction Fee for New WebPAY Details (NO SPLIT XML)<\/span>\n\n\n\n\n\t\n\n\t\n\t\n\t
Field Name<\/th>Expected Value<\/th>Comments<\/th>\n<\/tr>\n<\/thead>\n
product_id<\/td>1076<\/td><\/td>\n<\/tr>\n
pay_item_id<\/td>101<\/td><\/td>\n<\/tr>\n
Mac Key<\/td>D3D1D05AFE42AD50818167EAC73C109168A0F108F32645C8B59E897FA930DA44F9230910DAC9E20641823799A107A02068F7BC0F4CC41D2952E249552255710F<\/td><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n\n

 <\/p>\n

Server Response – Object\u00a0paymentResponse<\/i><\/h4>\n

Aside the normal GET Transaction request to confirm transaction status (see here<\/strong><\/a> for more details) it is also possible to receive the results of a transaction from an object returned called\u00a0paymentResponse<\/strong>.<\/p>\n

var myObject = JSON.stringify(paymentResponse);\r\ndocument.getElementById(\"response\").innerHTML = myObject;\r\n\t\t\t  \r\ndocument.getElementById(\"ResponseDescription\").innerHTML = paymentResponse.desc;\r\ndocument.getElementById(\"ResponseCode\").innerHTML = paymentResponse.resp;\r\ndocument.getElementById(\"RedirectURL\").innerHTML = paymentResponse.url;\r\ndocument.getElementById(\"TransactionRef\").innerHTML = paymentResponse.txnref;\r\ndocument.getElementById(\"ApprovedAmount\").innerHTML = paymentResponse.apprAmt;\r\ndocument.getElementById(\"ReturnedReference\").innerHTML = paymentResponse.retRef;\r\ndocument.getElementById(\"CardNumber\").innerHTML = paymentResponse.cardNum;\r\ndocument.getElementById(\"MAC\").innerHTML = paymentResponse.mac;<\/pre>\n
{\"resp\":\"Z6\",\"url\":\"http:\/\/localhost\/NewWebPAYX\/popup\/index.php\",\"desc\":\"Customer cancellation\",\"payRef\":\"JB1944513\",\"retRef\":\"\",\"txnref\":\"JB1944513\",\"apprAmt\":123400,\"amount\":123400,\"cardNum\":\"\",\"mac\":\"\"}<\/pre>\n

You can find a complete working script in the Sample Code<\/a> section.<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":1840,"menu_order":1,"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\/1987"}],"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=1987"}],"version-history":[{"count":3,"href":"https:\/\/sandbox.interswitchng.com\/docbase\/wp-json\/wp\/v2\/docs\/1987\/revisions"}],"predecessor-version":[{"id":2001,"href":"https:\/\/sandbox.interswitchng.com\/docbase\/wp-json\/wp\/v2\/docs\/1987\/revisions\/2001"}],"up":[{"embeddable":true,"href":"https:\/\/sandbox.interswitchng.com\/docbase\/wp-json\/wp\/v2\/docs\/1840"}],"next":[{"title":"Split Payment","link":"https:\/\/sandbox.interswitchng.com\/docbase\/docs\/webpay\/new-webpay\/split-payment\/","href":"https:\/\/sandbox.interswitchng.com\/docbase\/wp-json\/wp\/v2\/docs\/3918"}],"prev":[{"title":"Redirect Implementation","link":"https:\/\/sandbox.interswitchng.com\/docbase\/docs\/webpay\/new-webpay\/basic-redirect-implementation\/","href":"https:\/\/sandbox.interswitchng.com\/docbase\/wp-json\/wp\/v2\/docs\/1986"}],"wp:attachment":[{"href":"https:\/\/sandbox.interswitchng.com\/docbase\/wp-json\/wp\/v2\/media?parent=1987"}],"wp:term":[{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/sandbox.interswitchng.com\/docbase\/wp-json\/wp\/v2\/doc_tag?post=1987"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}