CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • TrustCommerce Payment Gateway Integration
Pages: [1]

Author Topic: TrustCommerce Payment Gateway Integration  (Read 3198 times)

wdrout

  • Guest
TrustCommerce Payment Gateway Integration
December 03, 2007, 08:17:12 am
I am getting ready to integrate the TrustCommerce payment gateway into CiviCRM.  This is my first attempt at open-source distributed software development, so please excuse the newbie questions.

The TrustCommerce gateway communicates via a shared object module (usually called "tclink.so") that must be compiled on the box on which it will execute.  The preferable option is to have the web hosting company copy include .so file as one of the modules globally accessible by PHP.  In the event that the web hosting company will not allow this, you can load the module temporarily when you make the call for the CC payment.  For this option, it would be important to have some field(s) on the payment processor configuration screen to specify the location of the .so file.  I am willing to make these changes, but how do I connect with the correct person to make changes to this part of CiviCRM?

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: TrustCommerce Payment Gateway Integration
December 03, 2007, 10:08:03 am

You might want to hack/hardcode the path and get this to work first. I suspect you can put this  type of information in the

civicrm_payment_processor_type

table and load as needed. We need to come up with a plan for how to integrate / deploy other payment processors. I suspect we'll ask folks to upload instructions and the needed files to the wiki rather than distributing all payment processors as part of the core code base.

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

wdrout

  • Guest
Re: TrustCommerce Payment Gateway Integration
December 03, 2007, 03:58:25 pm
Okay, I have hacked up the Authorize.Net code and I have TrustCommerce returning successful authorizations in test mode.  To do this, I created three files from their Authorize.Net equivalents:

CRM/Core/Payment/TrustCommerce.php
CRM/Contribute/Payment/TrustCommerce.php
CRM/Event/Payment/TrustCommerce.php

In the Core object I modified the constructor and doDirectPayment methods.  I have a new _getTrustCommerceFields from modified from it's Authorize.Net equivalent. 

TrustCommerce does offer a recurring payment, but it's an extra charge for the functionality.  I have not implemented that since I cannot test it.  My client has not elected to pay for that service.

I also discovered that you can load the tclink.so module via a custom php.ini in PHP4 and PHP5, so I may not need the path specification in the payment processor configuration page.

I know that I have a ton of code cleanup to do, but what kind of integration testing, documentation, and check-in do I need to complete to get this to a point where other people can review it?
« Last Edit: December 04, 2007, 06:21:00 am by wdrout »

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • TrustCommerce Payment Gateway Integration

This forum was archived on 2017-11-26.