Application PunchOut Code

Two main Struts action classes control the PunchOut process. They are PunchOutEntryAction.java and PunchOutCheckoutAction.java .

PunchOutEntryAction.java

It is called by the ERP system to start a KonaKart session for the corporate buyer. The customer credentials are validated and if required this action may be used to set the prices for the customer by configuring KKAppEng with a specific catalog id. Details of the PunchOut, such as the return URL are saved in a PunchOut object in KKAppEng.

PunchOutCheckoutAction.java

This action is called when the customer attempts to checkout. It calls the KonaKart engine to get the XML and together with data previously saved in the PunchOut object, it calls CatalogCheckoutPunchout.jsp to post the data back to the corporate buyer's ERP system.