|
Dave,
I've
implemented authorize.net credit card processing for several sites. It's really
simple with Witango. Basically 2 lines of code, one to build a postarg array and
one to send it to authorize.net and get the return values. Put the following in
a method in a TCF file and call it from anywhere in your application, then
branch accordingly based on the result. The method takes 5 parameters: amount,
cardNumber, cardExp, address and zipCode. Note the code will wrap in
inappropriate places.
<@assign local$postArgList <@array value="x_Version,3.0;x_Login,yourlogin;x_Password,yourpassword;x_ADC_URL,False;x_ADC_Delim_Data,True;x_Amount,@@method$amount;x_Card_Num,@@method$cardNumber;x_Exp_Date,@@method$cardExp;x_Address,@@method$address;x_Zip,@@method$zipCode;">> <@assign method$returnValue <@url location="https://secure.authorize.net/gateway/transact.dll" postargArray=postArgList>> Dave Shelley
|
- Witango-Talk: Dll's Atrix Wolfe
- Re: Witango-Talk: Dll's Atrix Wolfe
- Witango-Talk: HMAC-MD5 & authorize.net Dave Taylor
- Re: Witango-Talk: HMAC-MD5 & authorize.ne... Dan Stein
- RE: Witango-Talk: Test transactions & aut... David Shelley
- RE: Witango-Talk: Test transactions &... Brian Mowers
- Re: Witango-Talk: Test transactions ... Dan Stein
- RE: Witango-Talk: HMAC-MD5 & authoriz... Dave Taylor
- Re: Witango-Talk: HMAC-MD5 & authoriz... Dan Stein
- RE: Witango-Talk: Sudden Error IIS n... Janet Case
- Re: Witango-Talk: HMAC-MD5 & authorize.ne... Beverly Voth
- Re: Witango-Talk: HMAC-MD5 & authorize.ne... Chris Millet
- Re: Witango-Talk: HMAC-MD5 & authoriz... Dan Stein
- Witango-Talk: how to set up witango c... Roland Dumas
- Re: Witango-Talk: how to set up w... Steve Campbell
