
[Date Prev][Date Next][Thread Prev][Thread Next][Interchange by date
][Interchange by thread
]
Re: [ic] Payment Processor integration
On Tue, Oct 30, 2001 at 05:14:42PM -0600, fctmaillist wrote:
> hi all,
> i'm sending this mail again since i missed some details.
This should be a FAQ. Is it? :-)
Look back in mailing list archives maybe two weeks for discussion.
'use' and Safe do not play well together.
>
> i'm trying to integrate ic with a separate online payment processor.
> we've got some perl modules and a demo perl script. since these are thrid
> party modules we have put those modules in a separate directory as
> /opt/paygateway/perl. We tried to create a global subroutine in
> interchange.cfg as follows :
>
> GlobalSub <<EOR
> sub test {
>
> use lib '/opt/paygateway/perl';
> use SecureHttp;
> use TransactionResponse;
> use constants;
> use AdditionalField;
> use TransactionRequest;
> use TransactionClient;
> use CreditCardResponse;
> use CountryCodes;
> use CreditCardRequest;
>
> my $tranclient = new TransactionClient;
> my $ccreq = new CreditCardRequest;
>
> return 1;
> }
> EOR
>
> We tried to call this subroutine using the following code :
> <html>
> hello!
> [perl subs=1 interpolate=1]
> test();
> [/perl]
> goodbye!
> </html>
>
> The error.log says the following error :
>
> catalog/testsub.html Safe: Can't locate object method "new" via package
> "TransactionClient" at (eval 6) line 13.
> >
> >
> > test();
> >
> >
>
> If it is not integrated with IC, the same code works fine.
>
> Please help us to solve this problem.
> joy.
>
>
>
>
> _______________________________________________
> interchange-users mailing list
> interchange-users@interchange.redhat.com
> http://interchange.redhat.com/mailman/listinfo/interchange-users
--
Christopher F. Miller, Publisher cfm@maine.com
MaineStreet Communications, Inc 208 Portland Road, Gray, ME 04039
1.207.657.5078 http://www.maine.com/
Content/site management, online commerce, internet integration, Debian linux
_______________________________________________
interchange-users mailing list
interchange-users@interchange.redhat.com
http://interchange.redhat.com/mailman/listinfo/interchange-users