Welcome, Guest. Please login or register.
Login with username, password and session length


It's a release candidate! VirtueMart 2.0 RC - the next generation VirtueMart - is available! Read more....

  Advanced search

247038 Posts in 67506 Topics- by 258314 Members - Latest Member: aniketana
Pages: [1] 2   Go Down
Print
Author Topic: Authorize.net ps_authorize Error  (Read 15371 times)
hobartimus
Full Member
***
Posts: 132


WWW
« on: February 26, 2007, 11:10:00 AM »

I have a site that has been using Authorize.ent successfully for the past month, but today some customers have reported the following error...

Error: Failure in Processing the Payment. Technical Note: The required transaction key is empty! The payment method settings must be reviewed.

Error: Failure in Processing the Payment (ps_authorize)


Is there a reason this could happen at random?
Logged

--
Best Regards,
Howard Theriot

Catch Light Productions
~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
www.catchlight.com
mpgonline
Newbie
*
Posts: 7


« Reply #1 on: February 26, 2007, 11:35:26 AM »

I am having the same error with my eprocessingnetwork module also???

Error: Failure in Processing the Payment
Error: Failure in Processing the Payment (ps_epn)
Logged
Sean Dempsey
Newbie
*
Posts: 5


« Reply #2 on: March 10, 2007, 11:09:03 AM »

This is happening to me as well, though I can't even enter the transaction key in the virtuemart admin, it just stays blank.
Logged
Elkaholic
Jr. Member
**
Posts: 81



WWW
« Reply #3 on: March 20, 2007, 23:34:28 PM »

I also have had the same problem. Has anybody found a cure for the problem?
Logged

VirtueMart Is a Great Product,

Thanks!!
digitaly
Newbie
*
Posts: 2


« Reply #4 on: March 21, 2007, 00:26:28 AM »

Had the same thing happen today.  Here's what is causing the problem.  For some reason, when VirtueMart goes to decrypt the transaction key, it checks the shopper group of the current customer, then uses this in the query to get the key from the jos_vm_payment_method table.

Here's the code (line 279 of the ps_authorize.php file):

Code:
              $database->query( "SELECT DECODE(payment_passkey,'".ENCODE_KEY."') as passkey FROM #__{vm}_payment_method WHERE payment_class='".$this->classname."' AND shopper_group_id='".$auth['shopper_group_id']."'" );

This especially explains why the problem would show up somewhat randomly (because it would fail only when the shopper group didn't match the user's group).  Maybe it would make more sense to allow multiple selects for the shopper group?  Well, since I just need the one Authorize.net processor account in my store, I modified the code as follows:

Here's the modified code (line 279 of the ps_authorize.php file):

Code:
              $database->query( "SELECT DECODE(payment_passkey,'".ENCODE_KEY."') as passkey FROM #__{vm}_payment_method WHERE payment_class='".$this->classname."'" );

Hope this helps.

Thanks,
Matt
Logged
computerlady911
Newbie
*
Posts: 18


« Reply #5 on: April 10, 2007, 16:10:23 PM »

This fix worked for me!  Thanks!
Logged
Gerald Taber
Newbie
*
Posts: 3


« Reply #6 on: April 23, 2007, 19:51:33 PM »

I have tried this fix, replacing line 279 of my ps_authorize.php removing the 2nd verification of shopper group being used, and I still get the same two errors.  In test mode it doesn't error out, but in REAL mode non-test mode, it errors, can anyone please tell me where to place the required transaction key if it is  blank, I have the key I have generated several from my authorize.net account, but where do I insert this key into my joomla/virtuemart application so that it can use my login id and process a transaction?

Errors I am getting even after modifying line 279 of my ps_authorize.php file are:

Error: Failure in Processing the Payment. Technical Note: The required transaction key is empty! The payment method settings must be reviewed.

Error: Failure in Processing the Payment (ps_authorize)
Logged
Gerald Taber
Newbie
*
Posts: 3


« Reply #7 on: April 23, 2007, 21:32:53 PM »

OKAY, I fixed my problem - Very important for other users who may be doing the same thing I was:

DO NOT USE MOZILLA TO ATTEMPT TO CONFIGURE YOUR AUTHORIZE.NET PAYMENT MODULE.

When configuring your VirtueMart component in Joomla, always be sure to use Internet Explorer.  Mozilla didn't allow me to View/Show/Change my Transaction Key thus, it was always blank when I went to test my product purchase(s).   
Logged
FidelGonzales
Sr. Member
****
Posts: 472


WWW
« Reply #8 on: May 22, 2007, 16:02:32 PM »

Niether Mozilla nor IE are allowing me to enter or view the Transaction Key. I made the change listed above and still nothing. Any clues?
Logged

VIRTUEMART EXPERT - John Messingham - http://www.JMDS.eu
WEB | PHOTO | WRITE | MARKETING | DESIGN - http://www.DIRTFORGE.com
John
Newbie
*
Posts: 2


« Reply #9 on: August 11, 2007, 07:54:28 AM »

Same thing is happening to me although when I try to enter the transaction key I get looged out. Doens't anyone have a solution?
Logged
thomas_freeman
Development Team
Sr. Member
*
Posts: 449



WWW
« Reply #10 on: September 07, 2007, 20:48:36 PM »

If you are using Joomla 1.0.13 then you are probably having a problem with the way it handles the passwords.
Try the info at the following post and see if it helps.  Please let me know any issues you have with it.  I would like to make sure this is solid.
http://forum.virtuemart.net/index.php?topic=31609.0
Logged

danke1533
Newbie
*
Posts: 12


« Reply #11 on: October 22, 2007, 15:47:05 PM »

Thomas, was your post in 31609 the final solution on the password problem?  There was a bunch of ideas thrown out, I got quite confused.  Tried your solution once, got a message that I had an extra {.  I tried to count carefully and match up the pairs....

Thanks.
Logged
thomas_freeman
Development Team
Sr. Member
*
Posts: 449



WWW
« Reply #12 on: October 22, 2007, 15:50:04 PM »

Yes, and it worked for me.  Please let me know if you continue to have problems.
Logged

danke1533
Newbie
*
Posts: 12


« Reply #13 on: October 22, 2007, 23:35:10 PM »

I got a syntax error in the changes to the ps_main.php file that I can't seem to resolve. 


Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/cozycom1/public_html/joomla/administrator/components/com_virtuemart/classes/ps_main.php on line 738


Here is the code I inserted to replace the vm_CheckPass function to solve the authorize.net issue:


/*** Login validation function** Username and encoded password is compared to db entries in the mos_users* table. A successful validation returns true, otherwise false*/

function mShop_CheckPass(){   
global $perm, $my,$vmLogger;

$db = new ps_db;
// only allow access to admins or storeadmins   
if( $perm->check("admin,storeadmin")){   

$username = $my->username;      
$passwd = trim( mosGetParam( $_POST, 'passwd', "));   
$bypost = 1;
if(!$username||!$passwd||$_REQUEST['option']!= "com_virtuemart"){
return false;      
}
else {      
//Modified to work with the new Joomla password system - Thomas Freeman www.KustomServices.com   
$q = "SELECT password FROM #__users WHERE username=$username";
$db->query($q);   
$passes = false;   
while ($db->next_record()){   
//Extract the password and the salt code
list($hash, $salt) = explode(':',$db->f('password'));      
//Encrypt the passed password with the salt code
$cryptpass = md5($password.salt);         
//See if there is any password in the database that matches         
If ($hash = = $cryptpass){   
$passess = true;
}   
}   
If ($passess == true){
return true;
}
else {   
return false;
}
}      
}
else   
return false;
}
Logged
danke1533
Newbie
*
Posts: 12


« Reply #14 on: October 22, 2007, 23:44:32 PM »

Okay, apart from not being able to spell "passes" correctly, can anyone point me in the right direction on how to fix this problem?

Thanks,
Logged
Pages: [1] 2   Go Up
Print
Jump to: