14 replies [Last post]
setfree's picture
Offline
Uber Donor
Joined: 12/16/2007
Juice: 436
Was this information Helpful?

I am using the Authorize.net gateway. All transactions fail at checkout with:

"We were unable to process your credit card payment. Please verify your card details and try again. If the problem persists, contact us to complete your order."

However the transactions do show up on Authorize.net. The status on Authorize.net shows "Captured/Pending Settlement".

Watchdog shows a generic: "Payment failed: Credit card payment declined:"

Authorize.net says everything is setup correctly on their end. Any ideas why UC shows as failing? I have tried resetting and re-entering the credentials. Other than that I am at a loss Sad

setfree's picture
Offline
Uber Donor
Joined: 12/16/2007
Juice: 436
Their rep

I spoke with an Authorize.net rep and he said:

Rep: Captured pending settlement is what you want to see in the gateway. It indicates the transaction was approved and is set up to settle.
Rep: The reason your shopping cart is having trouble seems to be it is not registering or recognizing our response on your transactions.

Complete Computer Care | The Cosmic Gift | Team Hope Evangelism

setfree's picture
Offline
Uber Donor
Joined: 12/16/2007
Juice: 436
Tried...

I tried changing the Response Delimiter in the Authorize.net module admin section to a pipe character (|) because I saw that referenced in a forum post - no change in the results though.

Complete Computer Care | The Cosmic Gift | Team Hope Evangelism

setfree's picture
Offline
Uber Donor
Joined: 12/16/2007
Juice: 436
Okay, I think it's working now.

ON the third time that I implemented this patch, the payments started completing.

I had even set up the encapsulation and delimiters in the transaction uploads and then tried the patch and it still failed. But the third time it started working.

Not sure what, if anything, I had done different but it's working now.

Complete Computer Care | The Cosmic Gift | Team Hope Evangelism

schaub123's picture
Offline
Bug FinderGetting busy with the Ubercode.PayPal Hero
Joined: 10/08/2007
Juice: 458
Re: Authorize.net payments failing

Just curious. What version of php are you using? Also, do you have the php variable magic_quotes_gpc turned on or off?

Christopher Schaub

setfree's picture
Offline
Uber Donor
Joined: 12/16/2007
Juice: 436
More info

Php version: 5.2.6.
I forget off hand what the magic_quotes settings is.

After making that last post last night I remembered that I did make one change to the patch on my last attempt. It was very late and I had been working on this most of the day. I had changed the hard coded comma to a hard coded pipe:

curl_close($ch);

// JRW - Changed to make use of field encapsulation character to "
// hardcoded field separation character.
$authorize=substr($authorize,1);
$authorize=$authorize.",\"";;

$response=explode('"|"', $authorize);
// $response = explode(variable_get('authnet_aim_delimiter', ','), $authorize);
$x_response_code = $response[0];
$x_response_text = $response[3];
$x_approval_code = $response[4];

...and that seems to have done the trick.

Complete Computer Care | The Cosmic Gift | Team Hope Evangelism

Ryan's picture
Offline
Joined: 08/07/2007
Juice: 15438
Re: More info

One of the changes I made in the Auth.Net module recently was to specify in the request itself what to use for the delimiter and encapsulator. This should clear up any messes like this.

torgosPizza's picture
Offline
Bug FinderEarly adopter... addicted to alphas.Getting busy with the Ubercode.
Joined: 08/14/2007
Juice: 4110
Re: Re: More info

When you say specifying the delimeter, is that a setting we need to check in the store admin? You say it's specified in the request.. just curious since I want to update our modules asap.

--
Help directly fund development: Donate via PayPal!

Ryan's picture
Offline
Joined: 08/07/2007
Juice: 15438
Re: Re: Re: More info

It just means the module specifies a single delimiter for that request, so there won't be any setting or need to sync it up with your existing Auth.Net settings. This has been possible all along in the API, it just wasn't used in the old version. It's an override much like the IPN URL for PayPal.

torgosPizza's picture
Offline
Bug FinderEarly adopter... addicted to alphas.Getting busy with the Ubercode.
Joined: 08/14/2007
Juice: 4110
Re: Re: Re: Re: More info

Sweet. I'll look into upgrading our modules today... now to double-check my patches...

--
Help directly fund development: Donate via PayPal!

schaub123's picture
Offline
Bug FinderGetting busy with the Ubercode.PayPal Hero
Joined: 10/08/2007
Juice: 458
Re: Authorize.net payments failing

Ryan, can we just update the uc_authorizenet directory, just the authnet module? Do we have to grab the whole bazaar or payment? Also, our cards aren't failing -- is this an intermittent type of problem? We haven't seen any errors yet.

Thanks for any info.

Christopher Schaub

torgosPizza's picture
Offline
Bug FinderEarly adopter... addicted to alphas.Getting busy with the Ubercode.
Joined: 08/14/2007
Juice: 4110
Re: Re: Authorize.net payments failing

I'll speak for myself, but for us this is an intermittent problem - by no means a showstopper, although I'd hate to see a whole lot of angry customers come back at us for having been charged 2 or 3 (sometimes more) times. Most of our customers, anyway, seem to let us know quickly if they've made a mistake or if they notice duplicate charges on their card. That's the unfortunate thing is that now and then only one order will get through (thanks to the Checkout Enhancements contrib Ryan posted) but that order might still have charged the user's card twice due to the erroneous "declined" message, and getting kicked back to the Review screen.

Again this doesn't happen 100% of the time, but it happens often enough to be a noticeable nuisance. Hopefully it'll get resolved in this next batch of updates. I'd also like to know if I can just update the auth.net modules or what...

--
Help directly fund development: Donate via PayPal!

Ryan's picture
Offline
Joined: 08/07/2007
Juice: 15438
Re: Re: Re: Authorize.net payments failing

We're getting into the gray area of my fuzzy memory... I'm pretty sure you need to replace the whole directory w/ the one in Bazaar for uc_authorizenet and run an update function that changes some variable names. If you're using recurring fees, go ahead and replace the whole directory as well, but I'm not sure an update is needed for it. I really don't think you'd have to do anything else. Please test this on a dev site just to be sure, though... I'd hate to knock down your live sites!

echoleaf's picture
Offline
Joined: 08/03/2008
Juice: 250
Re: Re: Re: Re: Authorize.net payments failing

I'm wondering if I'm having a related issue (using 5x-1.6). Client is using Authorize.net, payments seem to be processed but the customer is not actually charged. I'm waiting to hear from the client what they are seeing in their Authorize.net account.

Arp

echoleaf's picture
Offline
Joined: 08/03/2008
Juice: 250
Scratch that

They turned off testing mode just minutes before I checked the settings...