We have our form working using the authorize.net plugin. In some cases the user has a bad credit card number or for some reason authorize.net rejects it. I am unable to find where we can check the code and redisplay form page.
Hi bsich,
I've never used this plug-in properly but if you look at the 'Useful Variables' you will see that you can access a group of response variables that should give you the info that you need. You cna respond to these in the 'Extra after onsubmit code' box in the plugin or possibly the OnSubmit After box in the Form.
Bob
I've never used this plug-in properly but if you look at the 'Useful Variables' you will see that you can access a group of response variables that should give you the info that you need. You cna respond to these in the 'Extra after onsubmit code' box in the plugin or possibly the OnSubmit After box in the Form.
Bob
Making some progress
I added
<?PHP
echo $MyPlugins->cf_Authorize_dotnet['response_code'];
?>
to On submit before sending emails
I was looking to print the code before I started doing any logic
Got this error
Parse error: syntax error, unexpected ',' in D:\hshome\newcity\newcityjc.org\components\com_chronocontact\libraries\customcode.php(51) : eval()'d code on line 2
I added
<?PHP
echo $MyPlugins->cf_Authorize_dotnet['response_code'];
?>
to On submit before sending emails
I was looking to print the code before I started doing any logic
Got this error
Parse error: syntax error, unexpected ',' in D:\hshome\newcity\newcityjc.org\components\com_chronocontact\libraries\customcode.php(51) : eval()'d code on line 2
Hi bsich,
Odd, I don't see a comma in there at all.
Are you running the plugin before the Emails? That code won't have any value until after the plugin has run.
Bob
Odd, I don't see a comma in there at all.
Are you running the plugin before the Emails? That code won't have any value until after the plugin has run.
Bob
Bob, yes it is very strange. It is after the plug in. When I am in debug and have a constant there it shows up after the exit debug list
I moved to the plug in after submit saved the statement
it became <?php
echo $MyPlugins->cf_Authorize_dotnet[\'response_code\'];
?>
Somehow it inserted the \ which caused other errors
I moved to the plug in after submit saved the statement
it became <?php
echo $MyPlugins->cf_Authorize_dotnet[\'response_code\'];
?>
Somehow it inserted the \ which caused other errors
This topic is locked and no more replies can be posted.