Hi Bruce,
In KonaKart there are two styles of payment module that you can add. One sounds similar to your first example - eg. paypal, and the other sounds similar to your second.
The former style directs the user to the payment gateway for capturing the credit card information whereas the latter style just sends the credit card information to the payment gateway.
The easiest way to create additional payment gateway modules is to copy existing examples - for which you have full source. Choose one that matches the style you require (of the two styles mentioned above) and choose one with similar parameters if possible.
A guide:
If you use the Authorize.Net example you will use the style of gateway under com.konakart.actions.gateways.
Copy either Authorize.Net or USAePay as your starting points... inherit from BaseGatewayAction.
Your call to the payment gateway will need to go in your implementation in com.konakart.actions.gateways
Also, you need to code your versions of either Authorize.Net or USAePay in com.konakart.bl.modules.payment.
Also, you need to code your versions of either Authorize.Net or USAePay in com.konakartadmin.modules.payment (these are so that the module can be set up and configured using the KonaKart Admin App).
You have to add your gateway to the admin properties file: (or equivalent under Linux/Unix)
C:\Program Files\KonaKart\webapps\konakartadmin\WEB-INF\classes\konakartadmin.properties
Add to this section:
# -----------------------------------------------------------------------------------
# Set the class names of the various modules you would like to make available.
# The administrator can still choose to enable or disable these.
#
# Note that if you remove a module from the definitions below that has already been
# set up in the database the users may still have access to the modules in the
# konakart application. Hence, it is advisable to remove the modules before they
# are removed from these definitions.
# Make these space or semi-colon-separated class names - they have implied prefixes
# of:
# com.konakartadmin.modules.payment.{lower case module name}.
# com.konakartadmin.modules.shipping.{lower case module name}.
# com.konakartadmin.modules.orderTotal.{lower case module name}.
konakart.modules.payment=Paypal Chronopay Epaybg Cod Worldpay Authorizenet Usaepay YourNewOne
konakart.modules.shipping=Flat Item Table Zones Free
konakart.modules.ordertotal=Shipping SubTotal Tax Total ProductDiscount TotalDiscount
# -----------------------------------------------------------------------------------
Finally you should be able to use the Admin App to install and enable your gateway.
Brian