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) »
  • DirectOne payment processor
Pages: [1]

Author Topic: DirectOne payment processor  (Read 1351 times)

tgv

  • Guest
DirectOne payment processor
April 14, 2009, 08:10:21 pm
Hi folks,

Just wanted to confirm some things.

I'm developing a payment processor to use with DirectOne, it's algorithm is fairly straightforward and I have already implemented this gateway for Joomla's Virtuemart, Magento and other systems I can't remember right now. It should send a post request to g/w via curl and receive status of transaction - not a rocket science.

So I used http://wiki.civicrm.org/confluence/display/CRMDOC/Creating+Additional+Payment+Processor+Plugins as a guide - and failed miserably because it has little to do with actual system and IMHO should be removed because it brings more confusion than help.

The configuration part is working ok (as it only uses db record), payment itself fails being unable to find a file to include.

I'd appreciate a lot if someone could explain the steps or just confirmed that:
- No, I don't really need to create files in /civicrm/packages/
- Instead, I need to create files with classes (that don't do anything useful) in each of /civicrm/CRM/.../Payment/ and a file with class (that actually contains logic) in /civicrm/CRM/Core/Payment/

Civicrm version is 2.2.2

Any help is appreciated.

p.s. I don't mind sharing the payment module when it's done

Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
Re: DirectOne payment processor
April 14, 2009, 09:28:13 pm
Quote
- No, I don't really need to create files in /civicrm/packages/
- Instead, I need to create files with classes (that don't do anything useful) in each of /civicrm/CRM/.../Payment/ and a file with class (that actually contains logic) in /civicrm/CRM/Core/Payment/

That is correct. Supporting classes might go in packages if you have them
Make today the day you step up to support CiviCRM and all the amazing organisations that are using it to improve our world - http://civicrm.org/contribute

tgv

  • Guest
Re: DirectOne payment processor
April 14, 2009, 09:29:00 pm
Update - no confirmation needed, the module communicates with the gateway without problems.

Now I'm dying to know what the bloody hell exactly Civicrm expects to be returned by doDirectPayment() method. "the result in an nice formatted array" as it's laid out in Payment.php comment doesn't make a lot of sense to me :)


Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
Re: DirectOne payment processor
April 14, 2009, 09:29:49 pm
If you are using 'button' method then no error is all that is required for it to be deemed a success
Make today the day you step up to support CiviCRM and all the amazing organisations that are using it to improve our world - http://civicrm.org/contribute

Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
Re: DirectOne payment processor
April 14, 2009, 09:30:12 pm
sorry - form method I meant (hosted within your page)
Make today the day you step up to support CiviCRM and all the amazing organisations that are using it to improve our world - http://civicrm.org/contribute

tgv

  • Guest
Re: DirectOne payment processor
April 14, 2009, 09:34:32 pm
Thanks heaps Eileen,

So just "return true" should be ok? (yes it's form method)

No need to pass transaction reference numbers etc.?

I've got quite a few here --

payment_number=100000
payment_reference=1d9d5e2431632c6c017dfd62b236caae
bank_reference=767799
summary_code=0
response_code=00
response_text=Approved or completed successfully

andrewcheetham

  • I’m new here
  • *
  • Posts: 2
  • Karma: 0
  • CiviCRM version: 3.3.5
  • CMS version: Drupal
  • MySQL version: 5
  • PHP version: 5
Re: DirectOne payment processor
May 22, 2011, 06:59:40 pm
Hi TGV

Did you ever get this working?

I have a client who would like to process using directone.

Cheers

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • DirectOne payment processor

This forum was archived on 2017-11-26.