[ic] Custom Payment Gateway (Australia - Dialect)

Ryan Hunt interchange-users@icdevgroup.org
Sun Apr 27 05:14:00 2003


Dear list,
	Since I live in Australia things don't come easy to us down
here, I have to write a payment gateway module from scratch, but I'm
having some problems with it, and was wondering if anyone could help me
out. I've based the code on the OpenECHO code, and the code
Dialect/QSIPayments provided me.

A bit of background: The provider was originally called
'Safepay/Newsconnect' who got bought out by 'QSIPayments' who are now
owned by 'Dialect'. So if I refer to 'Dialect' or 'QSI' I am referring
to the same thing really. The library '.pm' I wrote is called QSI.pm and
the Payment code is called Dialect.pm

Since I copied OpenECHO, a lot of its code is still scattered through
mine, but that shouldn't be an issue, since I've coped the OpenECHO.pm
module into the correct location.

The problem I'm having is, I don't know if I have 'require'd/'use'd the
correct modules, and in the correct places. When I try to include
Vend::Payments::Dialect, I get this error message:

<paste>
Required Perl module Vend::Payment::Dialect not present. Aborting
catalog.
In line 0 of the configuration file 'interchange.cfg':
Require module Vend::Payment::Dialect

Required Perl module Vend::Payment::Dialect not present. Aborting
catalog.
In line 0 of the configuration file 'interchange.cfg':
Require module Vend::Payment::Dialect


Required Perl module Vend::Payment::Dialect not present. Aborting
catalog.
In line 0 of the configuration file 'interchange.cfg':
Require module Vend::Payment::Dialect
</paste>

In my QSI.pm code, I have this at the top of my code - but I'm not sure
if it works...

        use Switch;
        use Socket;
        use IO::Handle;

Throughout the code (in separate perl functions) I use Switch, Socket,
IO::Socket, and IO::Handle.

Does anyone know why it wouldn't be loading? QSI.pm should need these
modules, but since Dialect.pm simply calls functions in QSI, does it
need them? The code in QSI.pm works, I've tested in a separate .pl
script but I don't know enough about how .pm files work, or where or
what I should be including/using/requiring where.

Here are links to the files in question:

http://ryanhunt.net/interchange/pg/QSI.pm
http://ryanhunt.net/interchange/pg/Dialect.pm

I would like to be able to get these working, so I can send these
modules back into the Open Source community. 

I'd appreciate any help I can get, my client is expecting this site up
ASAP. :\

Thanks in advance,
	Ryan.