[ic] TrustCommerce payment module working

Dan Helfman interchange-users@interchange.redhat.com
Mon May 13 13:09:00 2002


Thanks for the help everyone. I finally got the TrustCommerce payment
module playing nicely with Interchange. The problem was that Interchange
wasn't setting MV_PAYMENT_MODE to "trustcommerce", even though it was
defined in many configuration files. Also, for some reason my modified
Admin Wizard doesn't set TRUSTCOMMERCE_ID, although it does set
TRUSTCOMMERCE_SECRET. Anyway, I went into the Tables, setting those
values manually, and now the Trustcommerce module works.

I'm supplying the first version of the module with the hopes that it
will be integrated into Interchange proper. If there is a preferred
method of submitting new code, please let me know. This version of the
module assumes a sale transaction (as opposed to an auth/capture pair),
and assumes AVS should be enabled. I will make these options
configurable as soon as I figure out how to get the Admin Wizard to set
values properly, rather than requiring the admin to modify the tables
manually.

The module can be found for the time being at:
http://torsion.org/witten/TCLink.pm

I would appreciate any and all feedback.

-- 
Dan Helfman
Software Engineer, TrustCommerce
dan@trustcommerce.com
http://www.trustcommerce.com