( ! ) 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.23979229472wp( )...\wp-blog-header.php:16
40.23979229496WP->main( )...\functions.php:1334
50.23979229496WP->parse_request( )...\class-wp.php:780
60.24029256184do_action_ref_array( )...\class-wp.php:399
70.24029256184WP_Hook->do_action( )...\plugin.php:565
80.24029256184WP_Hook->apply_filters( )...\class-wp-hook.php:332
90.24029257200rest_api_loaded( )...\class-wp-hook.php:308
100.24039257232rest_get_server( )...\rest-api.php:403
110.24039260168do_action( )...\rest-api.php:577
120.24039260544WP_Hook->do_action( )...\plugin.php:517
130.24039260544WP_Hook->apply_filters( )...\class-wp-hook.php:332
140.24119299744Jetpack_Core_Json_Api_Endpoints::register_endpoints( )...\class-wp-hook.php:308
150.24149307736Jetpack::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.23979229472wp( )...\wp-blog-header.php:16
40.23979229496WP->main( )...\functions.php:1334
50.23979229496WP->parse_request( )...\class-wp.php:780
60.24029256184do_action_ref_array( )...\class-wp.php:399
70.24029256184WP_Hook->do_action( )...\plugin.php:565
80.24029256184WP_Hook->apply_filters( )...\class-wp-hook.php:332
90.24029257200rest_api_loaded( )...\class-wp-hook.php:308
100.303111048072WP_REST_Server->serve_request( )...\rest-api.php:410
110.303211047728WP_REST_Server->send_header( )...\class-wp-rest-server.php:310
120.303211048056header ( )...\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.23979229472wp( )...\wp-blog-header.php:16
40.23979229496WP->main( )...\functions.php:1334
50.23979229496WP->parse_request( )...\class-wp.php:780
60.24029256184do_action_ref_array( )...\class-wp.php:399
70.24029256184WP_Hook->do_action( )...\plugin.php:565
80.24029256184WP_Hook->apply_filters( )...\class-wp-hook.php:332
90.24029257200rest_api_loaded( )...\class-wp-hook.php:308
100.303111048072WP_REST_Server->serve_request( )...\rest-api.php:410
110.304411047672WP_REST_Server->send_header( )...\class-wp-rest-server.php:311
120.304411047992header ( )...\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.23979229472wp( )...\wp-blog-header.php:16
40.23979229496WP->main( )...\functions.php:1334
50.23979229496WP->parse_request( )...\class-wp.php:780
60.24029256184do_action_ref_array( )...\class-wp.php:399
70.24029256184WP_Hook->do_action( )...\plugin.php:565
80.24029256184WP_Hook->apply_filters( )...\class-wp-hook.php:332
90.24029257200rest_api_loaded( )...\class-wp-hook.php:308
100.303111048072WP_REST_Server->serve_request( )...\rest-api.php:410
110.305711047864WP_REST_Server->send_header( )...\class-wp-rest-server.php:315
120.305711048232header ( )...\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.23979229472wp( )...\wp-blog-header.php:16
40.23979229496WP->main( )...\functions.php:1334
50.23979229496WP->parse_request( )...\class-wp.php:780
60.24029256184do_action_ref_array( )...\class-wp.php:399
70.24029256184WP_Hook->do_action( )...\plugin.php:565
80.24029256184WP_Hook->apply_filters( )...\class-wp-hook.php:332
90.24029257200rest_api_loaded( )...\class-wp-hook.php:308
100.303111048072WP_REST_Server->serve_request( )...\rest-api.php:410
110.306611047752WP_REST_Server->send_header( )...\class-wp-rest-server.php:323
120.306611048072header ( )...\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.23979229472wp( )...\wp-blog-header.php:16
40.23979229496WP->main( )...\functions.php:1334
50.23979229496WP->parse_request( )...\class-wp.php:780
60.24029256184do_action_ref_array( )...\class-wp.php:399
70.24029256184WP_Hook->do_action( )...\plugin.php:565
80.24029256184WP_Hook->apply_filters( )...\class-wp-hook.php:332
90.24029257200rest_api_loaded( )...\class-wp-hook.php:308
100.303111048072WP_REST_Server->serve_request( )...\rest-api.php:410
110.307511047816WP_REST_Server->send_header( )...\class-wp-rest-server.php:335
120.307511048184header ( )...\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.23979229472wp( )...\wp-blog-header.php:16
40.23979229496WP->main( )...\functions.php:1334
50.23979229496WP->parse_request( )...\class-wp.php:780
60.24029256184do_action_ref_array( )...\class-wp.php:399
70.24029256184WP_Hook->do_action( )...\plugin.php:565
80.24029256184WP_Hook->apply_filters( )...\class-wp-hook.php:332
90.24029257200rest_api_loaded( )...\class-wp-hook.php:308
100.303111048072WP_REST_Server->serve_request( )...\rest-api.php:410
110.308311047864WP_REST_Server->send_header( )...\class-wp-rest-server.php:359
120.308311048232header ( )...\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.23979229472wp( )...\wp-blog-header.php:16
40.23979229496WP->main( )...\functions.php:1334
50.23979229496WP->parse_request( )...\class-wp.php:780
60.24029256184do_action_ref_array( )...\class-wp.php:399
70.24029256184WP_Hook->do_action( )...\plugin.php:565
80.24029256184WP_Hook->apply_filters( )...\class-wp-hook.php:332
90.24029257200rest_api_loaded( )...\class-wp-hook.php:308
100.303111048072WP_REST_Server->serve_request( )...\rest-api.php:410
110.375311358472WP_REST_Server->send_headers( )...\class-wp-rest-server.php:475
120.375311358472WP_REST_Server->send_header( )...\class-wp-rest-server.php:1774
130.375311359016header ( )...\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.23979229472wp( )...\wp-blog-header.php:16
40.23979229496WP->main( )...\functions.php:1334
50.23979229496WP->parse_request( )...\class-wp.php:780
60.24029256184do_action_ref_array( )...\class-wp.php:399
70.24029256184WP_Hook->do_action( )...\plugin.php:565
80.24029256184WP_Hook->apply_filters( )...\class-wp-hook.php:332
90.24029257200rest_api_loaded( )...\class-wp-hook.php:308
100.303111048072WP_REST_Server->serve_request( )...\rest-api.php:410
110.375311358472WP_REST_Server->send_headers( )...\class-wp-rest-server.php:475
120.376611358472WP_REST_Server->send_header( )...\class-wp-rest-server.php:1774
130.376611358792header ( )...\class-wp-rest-server.php:1762
{"id":1986,"date":"2017-09-12T12:11:15","date_gmt":"2017-09-12T12:11:15","guid":{"rendered":"http:\/\/sandbox.interswitchng.com\/docbase\/docs\/webpay\/new-webpay\/basic-redirect-implementation\/"},"modified":"2021-04-21T09:57:48","modified_gmt":"2021-04-21T09:57:48","slug":"basic-redirect-implementation","status":"publish","type":"docs","link":"https:\/\/sandbox.interswitchng.com\/docbase\/docs\/webpay\/new-webpay\/basic-redirect-implementation\/","title":{"rendered":"Redirect Implementation"},"content":{"rendered":"

Transaction Payment Leg<\/h4>\n

To make use of the new WebPAY payment page, kindly make use of the same request structure as the old WebPAY (for more details on payment POST request structure, click here<\/strong><\/em><\/a>).<\/p>\n

However, the only difference is that your request should be sent to below service URLs:-<\/p>\n

Payment URL for New WebPAY<\/h2>\n\n\n\n\n\t\n\n\t\n\t\n\t
TEST Payment URL<\/th>https:\/\/sandbox.interswitchng.com\/collections\/w\/pay<\/th>\n<\/tr>\n<\/thead>\n
TEST Query URL (JSON)<\/td>https:\/\/sandbox.interswitchng.com\/collections\/api\/v1\/gettransaction.json<\/td>\n<\/tr>\n
LIVE Payment URL<\/td>https:\/\/webpay.interswitchng.com\/collections\/w\/pay<\/td>\n<\/tr>\n
LIVE Query URL (JSON)<\/td>https:\/\/webpay.interswitchng.com\/collections\/api\/v1\/gettransaction.json<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\nPayment URL for New WebPAY<\/span>\n\n

 <\/p>\n

Test Merchant Details are also 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

All other details remain the same.<\/p>\n

<form name=\"form1\" action=\"https:\/\/sandbox.interswitchng.com\/collections\/w\/pay\" method=\"post\">\r\n<input name=\"product_id\" type=\"hidden\" value=\"1076\" \/>\r\n<input name=\"pay_item_id\" type=\"hidden\" value=\"101\" \/>\r\n<input name=\"amount\" type=\"hidden\" value=\"50000\" \/>\r\n<input name=\"currency\" type=\"hidden\" value=\"566\" \/>\r\n<input name=\"site_redirect_url\" type=\"hidden\" value=\"http:\/\/www.mycompany.com\/response\/\u201d\/>\r\n<input name=\"txn_ref\" type=\"hidden\" value=\"AB-12385_TT\" \/>\r\n<input name=\"cust_id\" type=\"hidden\" value=\"AD99\" >\r\n<input name=\"hash\" type=\"hidden\" value=\"62D36BDC4B7C805844E3E8C813166BD8B42F9D3E768F349EC4FB174084BC9C2027338DA875A460E843A68FA85C15FB1E0195F2B98ECC6F40D0408D719F9D7E5D\" \/>\r\n<\/form>\r\n<\/pre>\n

 <\/p>\n

Server Response – ResponseDescription<\/em> & ResponseCode<\/em> returned<\/h4>\n

After payment, details of the transaction are returned to the merchant website for processing.This is done in the form of a HTTP POST request sent to the site_redirect_url<\/em>.<\/p>\n

Array\r\n(\r\n    [txnref] => JB9445755\r\n    [resp] => Z1\r\n    [payRef] => JB9445755\r\n    [desc] => Customer cancellation\r\n    [retRef] => \r\n    [cardNum] => \r\n    [apprAmt] => 123400\r\n    [amount] => 123400\r\n    [mac] => \r\n)<\/pre>\n
Array\r\n(\r\n    [txnref] => JB1692583\r\n    [resp] => 00\r\n    [payRef] => ECO|WEB|WEBDEMO|12-09-2017|152610|128556\r\n    [desc] => Approved by Financial Institution\r\n    [retRef] => 000560296399\r\n    [cardNum] => \r\n    [apprAmt] => 66600\r\n    [amount] => 66600\r\n    [mac] => \r\n)<\/pre>\n

<\/h4>\n

Transaction Confirmation Leg<\/h4>\n

Transaction confirmation is done the same way as with old WebPAY\u00a0(for more details on transaction confirmation GET request structure, click here<\/strong><\/em><\/a>).<\/p>\n

Request URL<\/u>
\nHTTP GET -> https:\/\/sandbox.interswitchng.com\/collections\/api\/v1\/gettransaction.json?productid=1076&transactionreference=JB1692583&amount=66600<\/p>\n

Host<\/span>: sandbox.interswitchng.com<\/p>\n

Hash: 29EC8A9728F385672D1774B8860626C706E7B7E73C059C46AE4272E06AECEA2D4D1A417C37A303AA14767B082A0B8AF1D81895740B3442C732D4531D54E2474E<\/p>\n

Sample Responses:-<\/p>\n

Array\r\n(\r\n    [Amount] => 66600\r\n    [CardNumber] => \r\n    [MerchantReference] => JB1692583\r\n    [PaymentReference] => ECO|WEB|WEBDEMO|12-09-2017|152610|128556\r\n    [RetrievalReferenceNumber] => 000560296399\r\n    [SplitAccounts] => Array\r\n        (\r\n        )\r\n\r\n    [TransactionDate] => 2017-09-12T01:33:24\r\n    [ResponseCode] => 00\r\n    [ResponseDescription] => Approved by Financial Institution\r\n)<\/pre>\n
Array\r\n(\r\n    [Amount] => 123400\r\n    [CardNumber] => \r\n    [MerchantReference] => JB8577679\r\n    [PaymentReference] => FBN|WEB|WEBDEMO|12-09-2017|152611|107120\r\n    [RetrievalReferenceNumber] => 000560297572\r\n    [SplitAccounts] => Array\r\n        (\r\n        )\r\n\r\n    [TransactionDate] => 2017-09-12T01:40:06\r\n    [ResponseCode] => 61\r\n    [ResponseDescription] => Exceeds Withdrawal Limit\r\n)\r\n<\/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":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\/1986"}],"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=1986"}],"version-history":[{"count":3,"href":"https:\/\/sandbox.interswitchng.com\/docbase\/wp-json\/wp\/v2\/docs\/1986\/revisions"}],"predecessor-version":[{"id":2006,"href":"https:\/\/sandbox.interswitchng.com\/docbase\/wp-json\/wp\/v2\/docs\/1986\/revisions\/2006"}],"up":[{"embeddable":true,"href":"https:\/\/sandbox.interswitchng.com\/docbase\/wp-json\/wp\/v2\/docs\/1840"}],"next":[{"title":"Popup Implementation","link":"https:\/\/sandbox.interswitchng.com\/docbase\/docs\/webpay\/new-webpay\/popup-implementation\/","href":"https:\/\/sandbox.interswitchng.com\/docbase\/wp-json\/wp\/v2\/docs\/1987"}],"wp:attachment":[{"href":"https:\/\/sandbox.interswitchng.com\/docbase\/wp-json\/wp\/v2\/media?parent=1986"}],"wp:term":[{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/sandbox.interswitchng.com\/docbase\/wp-json\/wp\/v2\/doc_tag?post=1986"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}