Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / NewStats: 3,165,728 members, 7,862,345 topics. Date: Sunday, 16 June 2024 at 02:23 PM |
Nairaland Forum / Eawagu's Profile / Eawagu's Posts
(1) (of 1 pages)
Webmasters / Re: Interswitch Webpay Integration - Anyone? by eawagu: 12:08pm On Dec 11, 2012 |
@bakenda It would be easier for you to use their REST service, it is a lot easier than SOAP. Here's a sample request Sample Request (JSON) GET Http://testwebpay.interswitchng.com/test_paydirect/api/v1/gettransaction.json?productid=21&transactionreference=8421941122&amount=300000 HTTP/1.1 UserAgent: Mozilla/4.0 (compatible; MSIE 6.0; MS Web Services Client Protocol 4.0.30319.239) Hash: F6FF2E22F99D93DDDA52D71811FD92B3A71FA1968A66216E0D310DAD Sample Response (JSON)[/font] HTTP/1.0 200 OK Date: Tue, 30 Oct 2012 16:12:17 GMT Content-Type: application/json; charset=utf-8 Content-Length: 333 {"Amount":300000,"CardNumber":"6055","MerchantReference":"8421941122","PaymentReference":"ZIB|WEB|VNA|15-10-2012|015933", "RetrievalReferenceNumber":"000000538268", "LeadBankCbnCode":null, "LeadBankName":null, "SplitAccounts":[],"TransactionDate":"2012-10-15T11:07:54.547","ResponseCode":"00","ResponseDescription":"Approved Successful"} Sample Request (XML)[font=Lucida Sans Unicode] GET Http://testwebpay.interswitchng.com/test_paydirect/api/v1/gettransaction.xml?productid=21&transactionreference=8421941122&amount=300000 HTTP/1.1 UserAgent: Mozilla/4.0 (compatible; MSIE 6.0; MS Web Services Client Protocol 4.0.30319.239) Hash: F6FF2E22F99D93DDDA52D71811FD92B3A71FA1968A66216E0D310DAD Sample Response (XML)[font=Lucida Sans Unicode][/font] HTTP/1.0 200 OK Date: Tue, 30 Oct 2012 16:20:56 GMT Content-Type: application/xml; charset=utf-8 Content-Length: 552 <TransactionQueryResponse xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><ResponseCode>00</ResponseCode><ResponseDescription>Approved Successful</ResponseDescription><Amount>300000</Amount><CardNumber>6055</CardNumber><MerchantReference>8421941122</MerchantReference><PaymentReference>ZIB|WEB|VNA|15-10-2012|015933</PaymentReference><RetrievalReferenceNumber>000000538268</RetrievalReferenceNumber><SplitAccounts /><TransactionDate>2012-10-15T11:07:54.547</TransactionDate></TransactionQueryResponse> |
(1) (of 1 pages)
(Go Up)
Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health religion celebs tv-movies music-radio literature webmasters programming techmarket Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10) Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 8 |