Forums / Addon Payment Modules / CyberSource Help!

CyberSource Help!

Locked

Views: 10,433

Results 21 to 28 of 28
This thread is locked. New replies are disabled.
10 Oct 2007, 11:25 PM
#21
deb avatar

deb

New Zenner

Join Date:
Jul 2006
Posts:
72
Plugin Contributions:
0

CyberSource Help!

Hi deBeajeu,

Thanks. Everything was working fine prior to the Cybersource code change. Authorizations go through but no admin email or orders appearing in the Zencart admin section.

Since I wasn't sure how long it would be before this would be fixed and I wasn't the only Cybersource customer to have this problem with Zencart, see Buster's response. I went ahead and got a new payment gateway/merchant account.

We installed it and now orders are going through. I'll give your response to my programmer and see if it clears up the Cybersource/Zencart problem.

14 Oct 2007, 3:53 AM
#22
debeaujeu avatar

debeaujeu

New Zenner

Join Date:
Aug 2006
Location:
Kirkland, WA
Posts:
82
Plugin Contributions:
1

Re: CyberSource Help!

deb:

Hi deBeajeu,

Thanks. Everything was working fine prior to the Cybersource code change. Authorizations go through but no admin email or orders appearing in the Zencart admin section.

Since I wasn't sure how long it would be before this would be fixed and I wasn't the only Cybersource customer to have this problem with Zencart, see Buster's response. I went ahead and got a new payment gateway/merchant account.

We installed it and now orders are going through. I'll give your response to my programmer and see if it clears up the Cybersource/Zencart problem.

I have reviewed and fine tuned the CyberSource Payment Module on Buster's Web site and he has confirmed that the credit card transactions are processed as expected, both on the ZC host and on the CyberSource Business Center.

deBeaujeu

17 Oct 2007, 7:24 PM
#23
deb avatar

deb

New Zenner

Join Date:
Jul 2006
Posts:
72
Plugin Contributions:
0

Re: CyberSource Help!

Thanks deBeaujeu.

Things are going through now but a new wrinkle. After the order has been processed using IE (for the browser), we get this error message: https://www.cropaddict.com/shop/cybersource.php?result=true

cannot find server

Yet when we refresh the page the IE browser clears and you get the order confirmation page plus the email confirmation is sent.

This doesn't happen in Netscape or Firefox, just IE. Any thoughts?

Also, how do we tell if the cybersource.php file is corrupted? It opens fine.

thks :)

17 Oct 2007, 10:07 PM
#24
Join Date:
Mar 2007
Posts:
7
Plugin Contributions:
0

Re: CyberSource Help!

I don't think this is related to the problems outlined in this thread so far - but I found a bug in the cs.php file in includes->modules->payment while helping fix someone's site.

They've been using Cybersource for about a year without a problem, however one thing that was updated was that billTo_state and shipTo_state are now required fields.

In many cases, this will not cause a problem, however there is a bug in the code so that if you use the state dropdown (instead of having the full state name) the cybersource code sends a blank billTo_state and shipTo_state, which is now causing the transaction to fail.

Here are the culprits:

one line 320 is:
zen_draw_hidden_field('billTo_state',$states[strtoupper($order->billing['state'])]) ."\n".

and 330 is:
zen_draw_hidden_field('shipTo_state',$states[strtoupper($order->delivery['state'])]) ."\n".

All I did was add the following above these lines (308 or so)

if(strlen($order->billing['state']) > 2)
{
$billstate = $states[strtoupper($order->billing['state'])];
}
else
{
$billstate = $order->billing['state'];
}

if(strlen($order->delivery['state']) > 2)
{
    $shipstate = $states[strtoupper($order->delivery['state'])];
}
else
{
    $shipstate = $order->delivery['state'];    
}

and change the offending lines to:

zen_draw_hidden_field('billTo_state', $billstate) ."\n".

and

zen_draw_hidden_field('shipTo_state', $shipstate) ."\n".

This fixed the problem we were having.. it may help someone else.. or deBeaujeu perhaps you'd like to fix it and repackage it maybe with less of a hacked solution :)

17 Oct 2007, 10:25 PM
#25
deb avatar

deb

New Zenner

Join Date:
Jul 2006
Posts:
72
Plugin Contributions:
0

Re: CyberSource Help!

Thanks aerodynamic_elephant. I've passed this along to my programmer for her to take a look at it. :)

19 Oct 2007, 1:00 AM
#26
debeaujeu avatar

debeaujeu

New Zenner

Join Date:
Aug 2006
Location:
Kirkland, WA
Posts:
82
Plugin Contributions:
1

Re: CyberSource Help!

deb:

Thanks deBeaujeu.

Things are going through now but a new wrinkle. After the order has been processed using IE (for the browser), we get this error message: https://www.cropaddict.com/shop/cybersource.php?result=true

cannot find server

Yet when we refresh the page the IE browser clears and you get the order confirmation page plus the email confirmation is sent.

This doesn't happen in Netscape or Firefox, just IE. Any thoughts?

Also, how do we tell if the cybersource.php file is corrupted? It opens fine.

thks :)

To hopefully reach full compatibility with IE (prior to IE7), you can add the code provided to your (store root directory) .htaccess file:

## Add these to your .htaccess file so that only one way to your site exists, either http://yoursite.com and http://www.yoursite.com ... preferably the same as your SSL Certificate ... the following adds the www if it's missing:

RewriteEngine On
RewriteCond %{HTTP_HOST} ^yoursite.com$ [NC]
RewriteRule ^(.*)$ http://www.yoursite.com/$1 [R=301,L]

If you'd like your site to go to http://mysite.com instead of http://www.mysite.com, add these changes instead:

##RewriteEngine On
##RewriteCond %{HTTP_HOST} ^www.yoursite.com$ [NC]
##RewriteRule ^(.*)$ http://yoursite.com/$1 [R=301,L]

the following makes sure the correct mime type is sent for the .htc file

AddType text/x-component .htc


These .htaccess (Apache Server) files are distributed configuration files used to provide a way to make configuration changes on a per-directory basis. A file, containing one or more configuration directives, is placed in a particular document directory, and the directives apply to that directory, and all its subdirectories.

For more info, please review: http://httpd.apache.org/docs/2.0/howto/htaccess.html

For the cybersource.php file, the easiest way is to upload to your ZC store host a fresh copy of that file, obtained from the original CyberSource Payment Module 1.04 contribution package.

deBeaujeu

19 Oct 2007, 2:41 AM
#27
deb avatar

deb

New Zenner

Join Date:
Jul 2006
Posts:
72
Plugin Contributions:
0

Re: CyberSource Help!

Thanks deBeaujeu. I've forwarded this to my programmer. We had deleted and reinstalled Cybersource but maybe it was a new fresh install? How do we completely delete it?

tks

19 Oct 2007, 5:49 AM
#28
debeaujeu avatar

debeaujeu

New Zenner

Join Date:
Aug 2006
Location:
Kirkland, WA
Posts:
82
Plugin Contributions:
1

Re: CyberSource Help!

aerodynamic_elephant:

I don't think this is related to the problems outlined in this thread so far - but I found a bug in the cs.php file in includes->modules->payment while helping fix someone's site.

They've been using Cybersource for about a year without a problem, however one thing that was updated was that billTo_state and shipTo_state are now required fields.

In many cases, this will not cause a problem, however there is a bug in the code so that if you use the state dropdown (instead of having the full state name) the cybersource code sends a blank billTo_state and shipTo_state, which is now causing the transaction to fail.

Thanks for providing this information. I will be looking into this situation ASAP.

Can you send a copy of the message or ticket post you have received from CyberSource on the subject.

deBeaujeu