( ! ) 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.0001401472{main}( )...\index.php:0
20.0001401752require( 'C:\wamp64_2\www\docbase\wp-blog-header.php' )...\index.php:17
31.24999305664wp( )...\wp-blog-header.php:16
41.24999305688WP->main( )...\functions.php:1334
51.25009305688WP->parse_request( )...\class-wp.php:780
61.25089332368do_action_ref_array( )...\class-wp.php:399
71.25089332368WP_Hook->do_action( )...\plugin.php:565
81.25089332368WP_Hook->apply_filters( )...\class-wp-hook.php:332
91.25089333384rest_api_loaded( )...\class-wp-hook.php:308
101.25089333416rest_get_server( )...\rest-api.php:403
111.25089336352do_action( )...\rest-api.php:577
121.25089336728WP_Hook->do_action( )...\plugin.php:517
131.25089336728WP_Hook->apply_filters( )...\class-wp-hook.php:332
141.25229375928Jetpack_Core_Json_Api_Endpoints::register_endpoints( )...\class-wp-hook.php:308
151.25259383920Jetpack::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.0001401472{main}( )...\index.php:0
20.0001401752require( 'C:\wamp64_2\www\docbase\wp-blog-header.php' )...\index.php:17
31.24999305664wp( )...\wp-blog-header.php:16
41.24999305688WP->main( )...\functions.php:1334
51.25009305688WP->parse_request( )...\class-wp.php:780
61.25089332368do_action_ref_array( )...\class-wp.php:399
71.25089332368WP_Hook->do_action( )...\plugin.php:565
81.25089332368WP_Hook->apply_filters( )...\class-wp-hook.php:332
91.25089333384rest_api_loaded( )...\class-wp-hook.php:308
101.326511124256WP_REST_Server->serve_request( )...\rest-api.php:410
111.326711123912WP_REST_Server->send_header( )...\class-wp-rest-server.php:310
121.326711124240header ( )...\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.0001401472{main}( )...\index.php:0
20.0001401752require( 'C:\wamp64_2\www\docbase\wp-blog-header.php' )...\index.php:17
31.24999305664wp( )...\wp-blog-header.php:16
41.24999305688WP->main( )...\functions.php:1334
51.25009305688WP->parse_request( )...\class-wp.php:780
61.25089332368do_action_ref_array( )...\class-wp.php:399
71.25089332368WP_Hook->do_action( )...\plugin.php:565
81.25089332368WP_Hook->apply_filters( )...\class-wp-hook.php:332
91.25089333384rest_api_loaded( )...\class-wp-hook.php:308
101.326511124256WP_REST_Server->serve_request( )...\rest-api.php:410
111.328011123856WP_REST_Server->send_header( )...\class-wp-rest-server.php:311
121.328011124176header ( )...\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.0001401472{main}( )...\index.php:0
20.0001401752require( 'C:\wamp64_2\www\docbase\wp-blog-header.php' )...\index.php:17
31.24999305664wp( )...\wp-blog-header.php:16
41.24999305688WP->main( )...\functions.php:1334
51.25009305688WP->parse_request( )...\class-wp.php:780
61.25089332368do_action_ref_array( )...\class-wp.php:399
71.25089332368WP_Hook->do_action( )...\plugin.php:565
81.25089332368WP_Hook->apply_filters( )...\class-wp-hook.php:332
91.25089333384rest_api_loaded( )...\class-wp-hook.php:308
101.326511124256WP_REST_Server->serve_request( )...\rest-api.php:410
111.329811124048WP_REST_Server->send_header( )...\class-wp-rest-server.php:315
121.329811124416header ( )...\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.0001401472{main}( )...\index.php:0
20.0001401752require( 'C:\wamp64_2\www\docbase\wp-blog-header.php' )...\index.php:17
31.24999305664wp( )...\wp-blog-header.php:16
41.24999305688WP->main( )...\functions.php:1334
51.25009305688WP->parse_request( )...\class-wp.php:780
61.25089332368do_action_ref_array( )...\class-wp.php:399
71.25089332368WP_Hook->do_action( )...\plugin.php:565
81.25089332368WP_Hook->apply_filters( )...\class-wp-hook.php:332
91.25089333384rest_api_loaded( )...\class-wp-hook.php:308
101.326511124256WP_REST_Server->serve_request( )...\rest-api.php:410
111.330811123936WP_REST_Server->send_header( )...\class-wp-rest-server.php:323
121.330811124256header ( )...\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.0001401472{main}( )...\index.php:0
20.0001401752require( 'C:\wamp64_2\www\docbase\wp-blog-header.php' )...\index.php:17
31.24999305664wp( )...\wp-blog-header.php:16
41.24999305688WP->main( )...\functions.php:1334
51.25009305688WP->parse_request( )...\class-wp.php:780
61.25089332368do_action_ref_array( )...\class-wp.php:399
71.25089332368WP_Hook->do_action( )...\plugin.php:565
81.25089332368WP_Hook->apply_filters( )...\class-wp-hook.php:332
91.25089333384rest_api_loaded( )...\class-wp-hook.php:308
101.326511124256WP_REST_Server->serve_request( )...\rest-api.php:410
111.331911124000WP_REST_Server->send_header( )...\class-wp-rest-server.php:335
121.331911124368header ( )...\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.0001401472{main}( )...\index.php:0
20.0001401752require( 'C:\wamp64_2\www\docbase\wp-blog-header.php' )...\index.php:17
31.24999305664wp( )...\wp-blog-header.php:16
41.24999305688WP->main( )...\functions.php:1334
51.25009305688WP->parse_request( )...\class-wp.php:780
61.25089332368do_action_ref_array( )...\class-wp.php:399
71.25089332368WP_Hook->do_action( )...\plugin.php:565
81.25089332368WP_Hook->apply_filters( )...\class-wp-hook.php:332
91.25089333384rest_api_loaded( )...\class-wp-hook.php:308
101.326511124256WP_REST_Server->serve_request( )...\rest-api.php:410
111.332911124048WP_REST_Server->send_header( )...\class-wp-rest-server.php:359
121.332911124416header ( )...\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.0001401472{main}( )...\index.php:0
20.0001401752require( 'C:\wamp64_2\www\docbase\wp-blog-header.php' )...\index.php:17
31.24999305664wp( )...\wp-blog-header.php:16
41.24999305688WP->main( )...\functions.php:1334
51.25009305688WP->parse_request( )...\class-wp.php:780
61.25089332368do_action_ref_array( )...\class-wp.php:399
71.25089332368WP_Hook->do_action( )...\plugin.php:565
81.25089332368WP_Hook->apply_filters( )...\class-wp-hook.php:332
91.25089333384rest_api_loaded( )...\class-wp-hook.php:308
101.326511124256WP_REST_Server->serve_request( )...\rest-api.php:410
111.431811366864WP_REST_Server->send_headers( )...\class-wp-rest-server.php:475
121.431811366864WP_REST_Server->send_header( )...\class-wp-rest-server.php:1774
131.431811367408header ( )...\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.0001401472{main}( )...\index.php:0
20.0001401752require( 'C:\wamp64_2\www\docbase\wp-blog-header.php' )...\index.php:17
31.24999305664wp( )...\wp-blog-header.php:16
41.24999305688WP->main( )...\functions.php:1334
51.25009305688WP->parse_request( )...\class-wp.php:780
61.25089332368do_action_ref_array( )...\class-wp.php:399
71.25089332368WP_Hook->do_action( )...\plugin.php:565
81.25089332368WP_Hook->apply_filters( )...\class-wp-hook.php:332
91.25089333384rest_api_loaded( )...\class-wp-hook.php:308
101.326511124256WP_REST_Server->serve_request( )...\rest-api.php:410
111.431811366864WP_REST_Server->send_headers( )...\class-wp-rest-server.php:475
121.433411366864WP_REST_Server->send_header( )...\class-wp-rest-server.php:1774
131.433411367184header ( )...\class-wp-rest-server.php:1762
{"id":569,"date":"2017-07-10T13:48:59","date_gmt":"2017-07-10T13:48:59","guid":{"rendered":"https:\/\/sandbox.interswitchng.com\/docbase\/docs\/paycode\/single-paycode\/generate-token\/"},"modified":"2017-08-17T08:58:07","modified_gmt":"2017-08-17T08:58:07","slug":"generate-token","status":"publish","type":"docs","link":"https:\/\/sandbox.interswitchng.com\/docbase\/docs\/paycode\/single-paycode\/generate-token\/","title":{"rendered":"Generate Token"},"content":{"rendered":"

A Generate Token message is a request to generate a one-time access code also known as token for a Paycode transaction at a merchant location. Please request the context URL from Interswitch.<\/p>\n

Generate Token Request (Sent from Third-party)<\/strong><\/h4>\n

The following describes the important element required to be sent for a Generate Token request.<\/p>\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
S\/N<\/strong><\/td>\nData Element (DE)<\/strong><\/td>\n\u00a0<\/strong><\/td>\nDescription<\/strong><\/td>\n<\/tr>\n
1<\/td>\nsubscriberId<\/td>\nMandatory<\/td>\nCustomer ID. E.g. 2348012233220<\/td>\n<\/tr>\n
2<\/td>\npaymentMethodTypeCode<\/td>\nMandatory<\/td>\nThe type of payment instrument e.g. MMO, QTA, VMP. See \u201cPayment Method Type Codes\u201d in Appendix B for more.<\/td>\n<\/tr>\n
3<\/td>\npaymentMethodCode<\/td>\nMandatory<\/td>\nA unique Identifier of payment instrument issuer e.g. GTMM, FBN. See Payment Methods in Appendix B<\/td>\n<\/tr>\n
4<\/td>\nfrontEndPartnerId<\/td>\nMandatory<\/td>\nA unique Identifier of App developer e.g. GTMM. See Front End Partners in Appendix B<\/td>\n<\/tr>\n
5<\/td>\ntokenLifeTimeInMinutes<\/td>\nOptional<\/td>\nThe time this Paycode token should expire<\/td>\n<\/tr>\n
6<\/td>\npayWithMobileChannel<\/td>\nMandatory<\/td>\nPaycode channel. This can either be ATM, \u00a0POS, Agent and WEB. See Paycode Channels in Appendix B<\/td>\n<\/tr>\n
7<\/td>\nproviderToken<\/td>\n+Conditional<\/td>\nMobile Money Transaction Authentication Token<\/td>\n<\/tr>\n
8<\/td>\namount<\/td>\nConditional<\/td>\nTransaction amount. \u00a0If payWithMobileChannel is ATM, this is Mandatory, if it is POS the purchase amount (the amount entered during transaction with Paycode) cannot be higher than this value<\/td>\n<\/tr>\n
9<\/td>\nttid<\/td>\nMandatory<\/td>\nTerminal Transaction ID. A unique generated id sent from the client application.<\/td>\n<\/tr>\n
10<\/td>\ncodeGenerationChannelProvider<\/td>\nOptional<\/td>\nThe Service Provider for the Code Generation Channel. If this value is not sent, the Front End Partner will be assumed to be the Code Generation Channel Provider. A value should be sent if the Code Generation Channel provider is different from the From End Partner.<\/td>\n<\/tr>\n
11<\/td>\noneTimePin<\/td>\nConditional<\/td>\nThe one time PIN to be used to cashout Paycode at ATM. This value is\u00a0 Mandatory for ATM Cashout<\/td>\n<\/tr>\n
12<\/td>\naccountNo<\/td>\nConditional<\/td>\nThis is the account no of the subscriber. This value is Mandatory if subscriber will be auto-enrolled if not existing. This is only for clients who wish to auto-enroll on Interswitch mPin platform during Paycode generation.<\/td>\n<\/tr>\n
13<\/td>\naccountType<\/td>\nConditional<\/td>\nThis is the account type of the subscriber. This value is Mandatory if subscriber will be auto-enrolled if not existing. This is only for clients who wish to auto-enroll on Interswitch mPin platform during Paycode generation. See account type codes in Appendix B.<\/td>\n<\/tr>\n
14<\/td>\ncodeGenerationChannel<\/td>\nMandatory<\/td>\nThis is used to indicate the channel where Paycode will be generated. See Appendix \u201cPaycode Code Generation Channels\u201d for valid channels.<\/td>\n<\/tr>\n
15<\/td>\nSecure<\/td>\nConditional<\/td>\nThis contains payment method code authorization information. This field is Mandatory if the payment method authenticated by PIN.<\/td>\n<\/tr>\n
16<\/td>\npinData<\/td>\nConditional<\/td>\nThis contains the encrypted payment method PIN. This field is Mandatory if the payment method is authenticated by PIN.<\/td>\n<\/tr>\n
17<\/td>\nmacData<\/td>\nConditional<\/td>\nThis contains the MAC of some sensitive data. This field is Mandatory if the payment method is authenticated by PIN.<\/td>\n<\/tr>\n
18<\/td>\nautoEnroll<\/td>\nConditional<\/td>\nThis holds a true or false value. \u201cTrue\u201d if an account holder is to be auto-enrolled if no mPin card is found, and \u201cfalse\u201d if the account holder is not to be auto-enrolled. This field defaults to \u201cfalse\u201d if no value is sent<\/td>\n<\/tr>\n
19<\/td>\ntransactionRef<\/td>\nConditional<\/td>\nUnique transaction reference. To be used as unique identifier in call to cancel token.<\/td>\n<\/tr>\n
20<\/td>\nbeneficiaryNumber<\/td>\nConditional<\/td>\nMobile number of token beneficiary<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n

 <\/p>\n

+ – If the Payment Method Issuer decides to use an OTP for authorization, the OTP value is sent in this field (ProviderToken).<\/strong><\/p>\n

NB: We recommend that the ttid and transactionRef have the same value.<\/strong><\/p>\n

Sample Request<\/strong><\/h5>\n\n\n\n
POST https:\/\/sandbox.interswitchng.com\/api\/v1\/pwm\/subscribers\/{subscriberId}\/tokens<\/p>\n

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

[Other Interswitch security headers]\u2026 Click on this link<\/a><\/p>\n

frontEndPartnerId: WEMA<\/p>\n

 <\/p>\n

{<\/p>\n

“ttid”: “12345”,<\/p>\n

“paymentMethodTypeCode”: “MMO”,<\/p>\n

“paymentMethodCode”: “WEMA”,<\/p>\n

“payWithMobileChannel”: “ATM”,<\/p>\n

“tokenLifeTimeInMinutes”: “60”,<\/p>\n

“amount”: “50000”,<\/p>\n

\u201coneTimePin\u201d:\u201d1234\u201d,<\/p>\n

“codeGenerationChannel”: “INTERNET_BANKING”,<\/p>\n

“codeGenerationChannelProvider”: “WEMA”,<\/p>\n

“accountNo”: “1234567890”,<\/p>\n

“accountType”: “10”,<\/p>\n

\u201cautoEnroll\u201d : \u201ctrue\u201d,<\/p>\n

\u201ctransactionRef\u201d:\u201d12345\u201d<\/p>\n

}<\/p>\n

 <\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n

 <\/p>\n

Generate Token Response (Sent from Interswitch)<\/strong><\/h4>\n

The following describes the important data element required for a Generate Token response.<\/p>\n\n\n\n\n\n\n
S\/N<\/strong><\/td>\nData Element (DE)<\/strong><\/td>\nDescription<\/strong><\/td>\n<\/tr>\n
1<\/td>\nsubscriberId<\/td>\nCustomer ID. E.g. 2348012233220<\/td>\n<\/tr>\n
2<\/td>\npayWithMobileToken<\/td>\nThis is the Paycode token.<\/td>\n<\/tr>\n
3<\/td>\ntokenLifeTimeInMinutes<\/td>\nThe time this Paycode token will expire<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n

 <\/p>\n

Successful Response<\/p>\n\n\n\n
\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \u00a0HTTP Status Code:\u00a0 200<\/p>\n

{<\/p>\n

“subscriberId”: “2348012233220”,<\/p>\n

“payWithMobileToken”: “57889026616”,<\/p>\n

“tokenLifeTimeInMinutes”: “60”<\/p>\n

}<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n

 <\/p>\n

Unsuccessful Response<\/p>\n\n\n\n
HTTP Status Code: 400<\/p>\n

 <\/p>\n

{<\/p>\n

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

{<\/p>\n

“code”: “10400”,<\/p>\n

“message”: “Bad request”<\/p>\n

}<\/p>\n

],<\/p>\n

“error”: {<\/p>\n

“code”: “10400”,<\/p>\n

“message”: “Bad request”<\/p>\n

}<\/p>\n

}<\/p>\n

 <\/p>\n

 <\/p>\n

 <\/p>\n

HTTP Status Code:\u00a0 403<\/p>\n

 <\/p>\n

{<\/p>\n

“error”: {<\/p>\n

“code”: “E24”,<\/p>\n

“message”: “Invalid authentication credentials: Timestamp out of window”<\/p>\n

},<\/p>\n

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

{<\/p>\n

“code”: “E24”,<\/p>\n

“message”: “Invalid authentication credentials: Timestamp out of window”<\/p>\n

}<\/p>\n

]<\/p>\n

}<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n","protected":false},"author":169,"featured_media":0,"parent":553,"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\/569"}],"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=569"}],"version-history":[{"count":7,"href":"https:\/\/sandbox.interswitchng.com\/docbase\/wp-json\/wp\/v2\/docs\/569\/revisions"}],"predecessor-version":[{"id":1099,"href":"https:\/\/sandbox.interswitchng.com\/docbase\/wp-json\/wp\/v2\/docs\/569\/revisions\/1099"}],"up":[{"embeddable":true,"href":"https:\/\/sandbox.interswitchng.com\/docbase\/wp-json\/wp\/v2\/docs\/553"}],"next":[{"title":"Cancel Token","link":"https:\/\/sandbox.interswitchng.com\/docbase\/docs\/paycode\/single-paycode\/cancel-token\/","href":"https:\/\/sandbox.interswitchng.com\/docbase\/wp-json\/wp\/v2\/docs\/570"}],"wp:attachment":[{"href":"https:\/\/sandbox.interswitchng.com\/docbase\/wp-json\/wp\/v2\/media?parent=569"}],"wp:term":[{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/sandbox.interswitchng.com\/docbase\/wp-json\/wp\/v2\/doc_tag?post=569"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}