Jmaes | 15 May 11:48

jpos inco-operated to a website

Hi guys, i am wondering if it is possible to use jpos an a website by
means of a shopping cart to handle the sales and validation of credit
cards, and if so could you please give me an idea of how its done. Thanx

------------------------------------

johnnyoverland | 19 May 20:10

Re: jpos inco-operated to a website

Yes, very possible and generally pretty simple.  The difficulty is in 
how are you securing the incoming (Web) information based on your 
server platform (jetty, jboss, jposEE). I have done this is by 
creating an XML message of the data (in jpos XML format) and then 
just hand it over to your processing piece.

private ISOMsg getMessageFromXML(String xmlMessage) throws 
    ISOException{ 

           byte [] msg = xmlMessage.getBytes(); 
           ISOMsg m = new ISOMsg(); 
           m.setPackager(new XMLPackager()); // set XMLPackager 
           m.unpack(msg);    // unpack with XMLPackager 
           // debug  
           m.dump(System.out, " - "); 
           return m; 
        } 

Or you can just create it on the fly and pass it along.

	ISOMsg m = new ISOMsg();
	m.setPackager (thePackage);
	m.setMTI ("1100");
	m.set(new ISOField (2, "xxxxxxxxxx"));
	m.set(new ISOField (3, "000000"));
        etc....

Hope this is what you were asking and that it helps.

-John
(Continue reading)


Gmane