[ic] credit card payments at undefined organization

Ed LaFrance interchange-users@icdevgroup.org
Sat Dec 14 13:00:03 2002


At 05:25 PM 12/14/2002 +0100, you wrote:
>Hi everybody,
>
>I am quite new to Interchange, and have some questions concerning credit
>card payments.
>
>Our shop has a deal with a company which is not "supported" by the modules
>(*.pm) in lib/Vend/Payment. The whole process is quite simple, we just send
>an ID, AMOUNT of money and DESCRIPTION to our merchant module (not an
>Interchange module) via POST, it does all the tricks including handling
>forms for credit card authorization and so on. In effect, when everything is
>ok, the merchant module runs an url with session ID and some extra
>parameters, saying if everything went ok.
>
>Can you guys tell me what is the best way to handle this in Interchange? Do
>I need to write a pm module on my own, or can I just handle it in
>"checkout.html" or "[process]".
>
>I'd be thankful for ANY advice or documentation hints. :)
>
>Michal Rogozinski
>mr@military.pl

The best way is to follow the example of the existing Interchange payment 
modules, such as AuthorizeNet.pm or iTransact.pm, which use the Perl LWP 
and SSL libraries to automatically post the required data to the bank's 
secure payment URL in the background, and parse the returned results page 
for the outcome. This makes the whole process fairly seamless and invisible 
to the customer, and eliminates the need to redirect them away from your 
site for payment. Not all gateways will work with this method, but it 
sounds like yours might.

The basic procedure is to make a copy of the existing module which most 
closely resembles what you need, give it a new filename, package name, and 
a new name for it's 'main' subroutine. Make coding changes as needed, then 
set up a payment route in catalog.cfg which passes it the needed info (such 
as account ID, password, payment URL, etc). Finally, set MV_PAYMENT_MODE to 
the name of it's main subroutine to force Interchange to pass credit card 
processing to it. Yes, that was a huge oversimplification, but that's it in 
a nutshell.

- Ed L.




_______________________________________________________________
«¤»¥«¤»§«¤»¥«¤»§«¤»¥«¤»§«¤»¥«¤»§«¤»¥«¤»§«¤»¥«¤»§«¤»¥«¤»§«¤»¥«¤»)
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
New Media E.M.S.              Technology Solutions for Business
463 Main St., Suite D         eCommerce | Consulting | Hosting
Placerville, CA  95667        edl@newmediaems.com
(530) 622-9421                http://www.newmediaems.com
(866) 519-4680 Toll-Free      (530) 622-9426 Fax
_______________________________________________________________
«¤»¥«¤»§«¤»¥«¤»§«¤»¥«¤»§«¤»¥«¤»§«¤»¥«¤»§«¤»¥«¤»§«¤»¥«¤»§«¤»¥«¤»)
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯