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) »
  • Support »
  • Using CiviCRM »
  • Using CiviContribute »
  • Community Contributed Payment Processors »
  • CyberSource SOP
Pages: [1]

Author Topic: CyberSource SOP  (Read 3630 times)

jyee

  • I’m new here
  • *
  • Posts: 19
  • Karma: 3
CyberSource SOP
September 17, 2010, 02:52:15 pm
I've developed a CyberSource SOP (Silent Order POST) payment processor.  I haven't done any extensive testing, but from minor testing, it appears to work fine.  This is only good for simple, one time transactions, so if you need anything else (recurring transactions, non-credit card payments, etc.), then this probably won't help... but of course, feel free to modify the code to add functionality.

Apparently i can't attach zip files to this forum, so the CyberSource.zip file can be downloaded from my DropBox.com account here:
http://dl.dropbox.com/u/1343592/cybersource.zip

In the zip file, you'll find a sql file to add the CyberSource processor to the civicrm_payment_processor_type table.
You'll also find some files to copy into various locations in the CiviCRM file structure.

After you've copied the files, you'll need to:

1. log into https://ebc.cybersource.com and go to Tools & Settings >> Hosted Order Page >> Security.  Generate the PHP security script (it'll give you a file called HOP.php).

2. If you're using Drupal, rename the L() function and all calls to the function to csL().  You can do a find and replace changing "L(" to "csL(".  At this time, there should be 4 replacements.

3 (optional). If you use the Drupal Devel module, you should also rename the dd() function to csdd().

4. Put the HOP.php file in the civicrm/packages/CyberSource directory.

5. In https://ebc.cybersource.com, go to Tools & Settings >> Hosted Order Page >> Settings.  Set the following items:

  • Receipt Response URL: http://www.yourdomain.com
  • Check "This URL is my custom receipt page"
  • Decline Response URL: http://www.yourdomain.com
  • Check "This URL is my custom receipt page"
  • Check "Merchant POST URL"
  • Enter "http://www.yourdomain.com" into the merchant post field
  • Click the Update button to save your changes

and of course, change www.yourdomain.com for whatever your actual domain is.  It's not critical, since the url is not used, but just in case some error occurs you don't want your user's transaction info sent to another domain.

Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
Re: CyberSource SOP
September 17, 2010, 02:57:09 pm
Well done! Karma +

These are the tests I normally run through on new payment processors - mainly testing odd characters don't break things & that they work in contribute and event

http://wiki.civicrm.org/confluence/display/CRMDOC32/Testing+Processor+Plugins

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

jyee

  • I’m new here
  • *
  • Posts: 19
  • Karma: 3
Re: CyberSource SOP
September 17, 2010, 03:47:21 pm
Thanks for the link.  The site I built it for is about to go into user testing, so i'll add the items from that wiki page to our testing process.

Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
Re: CyberSource SOP
September 17, 2010, 03:48:28 pm
Cool - once it is live tested you can create a JIRA issue & post it there
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

jyee

  • I’m new here
  • *
  • Posts: 19
  • Karma: 3
Re: CyberSource SOP
August 26, 2011, 02:00:58 pm
I accidentally deleted the zip from my dropbox, which made me realize that this code needed to go somewhere more permanent and accessible... even if only for posterity (since Civi has a newer payment processor system).

This code is now on github at: https://github.com/jyee/CiviCRM-CyberSource

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviContribute »
  • Community Contributed Payment Processors »
  • CyberSource SOP

This forum was archived on 2017-11-26.