Support Forums

Way in 68C to verify Error Messages from Authorize.nt?

This is a discussion on Way in 68C to verify Error Messages from Authorize.nt? within the Technical Support forums, part of the Technical Support Forums category; Hi all I am getting a "Sorry there has been an error" " This account has not been given permission ...


Go Back   68 Classifieds Forums > Technical Support Forums > Technical Support

This topic is resolved.

If you have a similar issue that this thread does not address, open a new related support topic.

 
Thread Tools Display Modes
Old 04-23-2009, 05:22 AM   #1
Ageless Member
 
Bronxgodzilla's Avatar
 
Join Date: Jun 2008
Posts: 133
Rep Power: 13
Bronxgodzilla is on a distinguished road
Default Way in 68C to verify Error Messages from Authorize.nt?

Hi all
I am getting a "Sorry there has been an error" " This account has not been given permission (s) required for this request" in my attempt to finally hook up authorize.net. While I am pretty sure I have the AuthNet settings correct, 68C's error message to me seems clearly one of configuration in authnet itself. If there was a way of passing the actual error message # received, it would help me troubleshoot what is wrong at the Authnet end.

Is there such a var I can pass to the error.tpl page to illuminate the situation? thanks.

BarryG
__________________
Currently using Latest version v4.1.10 Developer with latest Templatecodes Sigma (The Greatest)
Bronxgodzilla is offline  
Old 04-23-2009, 01:20 PM   #2
68 Classifieds Staff
 
Eric Barnes's Avatar
 
Join Date: Mar 2006
Location: Belmont, NC
Posts: 5,493
Rep Power: 132
Eric Barnes is just really nice Eric Barnes is just really nice
Default

You can try the following.

1. open includes/paymentapi/authorizenet-aim/sr.php file and find this line:
#print "Param list : " . $parmList; - Remove the # and it will print what is being sent.

2. in that same file find this:
#print_r($res); - Remove the # again.

3. After that try to purchase a listing and see what is printed on the printed on the screen. You may have to view source to see it.
__________________
Eric Barnes
68 Classifieds Developer
Customer Area | Issue Tracker | Documentation | 68C Mods | 68 @ Twitter | My Modules
Eric Barnes is offline  
Old 04-23-2009, 06:08 PM   #3
Ageless Member
 
Bronxgodzilla's Avatar
 
Join Date: Jun 2008
Posts: 133
Rep Power: 13
Bronxgodzilla is on a distinguished road
Default

Yeah! Worked perfectly & helped me find the error & correct the problem. Thank you. Eric, your Authnet API code is very clean and very structured -- now that I know where it is :-) Great Job, man.

Next -- How/where can I set up a tabled query (or case statement) for different errorlevel responses which would simply return the customer back to the previous page (or allow such) -- in the case of a valid AVS mismatch or bankcard with not enough funds (they make an error in their address, etc, or need to put in a different card, etc)?

The way it is now it stops cold and the customer has to do the whole process all over again.

Suggestions?

Thanks again.
BarryG
__________________
Currently using Latest version v4.1.10 Developer with latest Templatecodes Sigma (The Greatest)
Bronxgodzilla is offline  
Old 04-24-2009, 10:05 AM   #4
68 Classifieds Staff
 
Eric Barnes's Avatar
 
Join Date: Mar 2006
Location: Belmont, NC
Posts: 5,493
Rep Power: 132
Eric Barnes is just really nice Eric Barnes is just really nice
Default

It depends on which variable is sent back. I would probably add a switch statement inside the else of if((int)$vsRESULT==1)

Because if any errors happen the vsResult should not be 1.
__________________
Eric Barnes
68 Classifieds Developer
Customer Area | Issue Tracker | Documentation | 68C Mods | 68 @ Twitter | My Modules
Eric Barnes is offline  
Old 04-24-2009, 03:44 PM   #5
Ageless Member
 
Bronxgodzilla's Avatar
 
Join Date: Jun 2008
Posts: 133
Rep Power: 13
Bronxgodzilla is on a distinguished road
Default

Quote:
Originally Posted by Eric Barnes
It depends on which variable is sent back. I would probably add a switch statement inside the else of if((int)$vsRESULT==1)

Because if any errors happen the vsResult should not be 1.
Verily so. While it has been about 9 years since I was involved with programming a gateway, and even though Authnet these days has grown to 269 errorlevels, I would still believe only about 6 are useful/practical. Therefore, I would believe the switch statement would go under the return $errorMessage; with a continuing if((int)$vsRESULT==x)

else
{
return $errorMessage;
if((int)$vsRESULT==9);
$message="Insufficient Funds. Please use another Card.";

}

If I got the concept correctly, right now this $errorMessage is printed to thanks.php from the "final" form statement at the top? If so, what would the statement be to return the customer to the previous checkout page? Or just print the error statement to the top of the checkout page itself?

Can you provide some code to accomplish this?
Grateful thanks.
__________________
Currently using Latest version v4.1.10 Developer with latest Templatecodes Sigma (The Greatest)
Bronxgodzilla is offline  
Old 04-24-2009, 03:58 PM   #6
curmudgeon
 
Join Date: Mar 2006
Posts: 5,335
Rep Power: 132
Lhotch is a glorious beacon of light Lhotch is a glorious beacon of light Lhotch is a glorious beacon of light
Default

Im not really familiar with authorize.net, but are you using the AIM or SIM version? If you are using the AIM version do you have a SSL certificate?
__________________
Larry

Knowledge learned is more valuable than knowledge given.
Lhotch is offline  
Old 04-24-2009, 04:07 PM   #7
68 Classifieds Staff
 
Eric Barnes's Avatar
 
Join Date: Mar 2006
Location: Belmont, NC
Posts: 5,493
Rep Power: 132
Eric Barnes is just really nice Eric Barnes is just really nice
Default

Well the code you posted is about right.
Code:
else
{
    return $errorMessage;
    if((int)$vsRESULT==9);
    $message="Insufficient Funds. Please use another Card.";
}
The if you added needs to go about the return line. Inside a php function once return is ran anything after it is skipped.

How about this:
Code:
else
{
    if((int)$vsRESULT==9) {
        $errorMessage="Insufficient Funds. Please hit the back button and use another Card.";
    }
    return $errorMessage;
}
__________________
Eric Barnes
68 Classifieds Developer
Customer Area | Issue Tracker | Documentation | 68C Mods | 68 @ Twitter | My Modules
Eric Barnes is offline  
Old 04-24-2009, 05:24 PM   #8
Ageless Member
 
Bronxgodzilla's Avatar
 
Join Date: Jun 2008
Posts: 133
Rep Power: 13
Bronxgodzilla is on a distinguished road
Default

Hi Larry
Quote:
Originally Posted by Lhotch
Im not really familiar with authorize.net, but are you using the AIM or SIM version? If you are using the AIM version do you have a SSL certificate?
The 68C API is programmed to only use AIM, ie it gathers and sends the user params to Authnet's server -- as opposed to the SIM, which brings the customer to Authnet's server where they fill out everything. And yes, I do have an SSL cert. Authnet will not accept any params transmission without one. I would see no reason to use SIM as 68C's API is a model of precision and beauty :-)

BarryG
__________________
Currently using Latest version v4.1.10 Developer with latest Templatecodes Sigma (The Greatest)
Bronxgodzilla is offline  
Old 04-25-2009, 10:13 AM   #9
Ageless Member
 
Bronxgodzilla's Avatar
 
Join Date: Jun 2008
Posts: 133
Rep Power: 13
Bronxgodzilla is on a distinguished road
Default No Joy yet

Hi Eric, Well, I tried
Code:
 	else
		{
		if((int)$vsRESULT==7) {
	$errorMessage="The expiration on this Credit Card  is invalid. 
Please hit the back button and use another Card.";
	}
	return $errorMessage;
     }
but got the same response. I tried putting it even later at the end of the file, but it made no difference.

Where might else the 68C Declined! errormessage be coming from? It appears no error codes are being accepted by 68C -- it only looks for "0" -- so some other script is intercepting.


Also, would someone mind telling me what the php equivalent of a CASE statement would be, so I can list all the ELSE ~ if statements ? (without the Else)

And wouldnt the return be, Return TRUE?


Thanks
__________________
Currently using Latest version v4.1.10 Developer with latest Templatecodes Sigma (The Greatest)
Bronxgodzilla is offline  
Closed Thread

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
ION Cube Loader Error Messages Bronxgodzilla Technical Support 5 03-05-2009 04:22 AM
System generated email messages... YourPalAl Technical Support 0 06-01-2008 02:42 AM


All times are GMT -4. The time now is 03:54 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0