[Typo3-dev] Payment gateways from OScommerce
Martin T. Kutschker
Martin.no5pam.Kutschker at blackbox.n0spam.net
Sun Mar 6 14:29:00 CET 2005
Robert Lemke wrote:
>
> I had a quick look into the code of some of these modules but I never used
> nor programmed OScommerce. Does any of you have enough experience to give a
> quick estimation if it's worth looking at this possibility or maybe the
> modules are too integrated in the whole framework that we'd have to create
> an emulator instead of a wrapper?
I've done a bit with osCommerce but not with the payment classes. The
parts of OSC I've touched used general functions of OSC (found in
<osc>/include/functions/), general classes (<osc>/include/classes/) and
global objects (some are even session objects).
With any luck only few functions and classes are needed.
A quick glance at some "payment modules" tell me that in OSC the classes
manage the configuration (OSC style in a global configuration table),
draw forms, etc. Besides makes use of the mentioned framwork they are
tied to OSC's session variables, defines and filesystem layout.
I don't know how Norman's payment API works, but you need a pretty good
wrapper around the OSC code. And there is actually little code in the
modules. Seems to me that the main logic is in the code that calls these
modules.
So I don't think it's worth the hassle. But the OSC "payment module" API
could be an inspiration for the TYPO3 payment service.
Masi
More information about the TYPO3-dev
mailing list