|
I'm trying to set up a web site to take credit cards through authorizenet using the AIM system. I'm slightly familiar with perl so I'm trying to implement their sample code. http://developer.authorize.net/samplecode/ They've hard coded all of the values like cc number, name, address into the script and I am able to set the script up on my web site and it works fine so I know all my passwords and permission settings are ok. The problem I have, and it is probably because I have to training at all in comp sci, is editing the script to accept the values from a form and pass those values to the gateway. For example, one value in my form: <input id="FormsEditField1" type="text" name="Amount" style="white-space:pre" value="50.00" size="10" maxlength="10"> I have the form set up to post this value to the perl script. The original perl script says: x_amount => "12.23", So I changed that to x_amount => "Amount", x_amount being the value that the gateway recognizes as the total charge and Amount being the data from my form. But I get an error that says no valid amount supplied. Am I supposed to write some actual code to get it to process the form data or can I just change this or another section somehow? Hopefully someone can give me an answer. I know perl isn't the most popular language right now.
|
# ¿ Apr 2, 2008 17:44 |
|
|
# ¿ Apr 29, 2024 15:44 |