This is the initial upload of the CyberSource module. It includes integration of the Silent Order POST method, which requires you to do a couple things in your account.
In Tools & Settings, there is a Hosted Order Page section. You need to go the security section and download the security script it offers for PHP. You'll place this in your uc_cybersource directory. The file contains a function that conflicts with a Drupal function. I'll probably make a script to fix this, but for now just open the file and do a find/replace to change all instances of L( to csL(.
You must also adjust the Hosted Order Page settings. Specifically you need set the Receipt Response URL and Decline Response URL to http://www.example.com/cs/receipt and check the box beneath both those textfields. This really just reports to a dummy URL defined by the module, but you have to check the checkboxes so the module can receive the transaction results and act on them. Use the same URL as your Merchant POST URL.
Once you've done these things, you should be ready to test it out! When testing with CyberSource's Silent Order POST service, you can't process anything over $1,000. This limitation will not apply in production mode.
Future plans include adding Simple Order API integration to this module.
| Attachment | Size |
|---|---|
| uc_cybersource.tar.gz | 7.91 KB |


Update from cybersource
My company is talking to cybersource, and they've informed us that the $1000 limit is only applicable in test accounts; real (active) accounts are not limited.
Re: Update from cybersource
Excellent news! Thanks a lot for posting.
Apparently incorrect card_cardType codes
It seems like the card types being sent by the module do not work at Cybersource. The module sends strings like MasterCard, Visa, but they seem to want '001', '002', etc, as per
http://apps.cybersource.com/library/documentation/dev_guides/HOP_UG/html...
When I modified the code around line 135, in ubercart/uc_cybersource/uc_cybersource.module, to use the codes, payments worked. Do you know if this is due to the fact that I'm using a test account? Or has the PHP fallen behind Cybersource's choice of credit card codes?
Thanks!!
Re: Apparently incorrect card_cardType codes
You're correct, and those strings are adjusted in the latest Bazaar version... don't know that I updated this contrib.
But bazaar version is dev, right?
Is there a release candidate with this fix that we can use instead of the bazaar/dev version?
Re: But bazaar version is dev, right?
Not quite... downloading the zip from the top of the Bazaar page is really the latest official code. All our releases move from their to the Drupal CVS server.
UK Payments
Anyone know if this will work if I'm based in the UK?