texte = I don't know about that hash stuff; it always confused me. The method=20we're showing you doesn't require it. Maybe that's why we do it with a=20tcpconnect and tcpsend?On Thu, 05 May 2011 18:14:01 -0600 Marc Thompson
wrote: Thanks for the input.=C2=A0=C2=A0I'm getting close, just hung up on a s=malldetail I think? I an going to be using the SIM (Server Intergration Method) and assuch won't be collecting credit card info from the user. Also, it says in the documentation that the following fields arerequired: x_fp_hash x_fp_sequence x_fp_timestamp =20 Not sure if I'm doing these correctly though?=C2=A0=C2=A0Here's what I'=ve got: [text]timestamp=3D[shell]/usr/bin/perl -e 'printf "%d",time;'[/shell][/text] [text]timestamp=3D[grepsearch=3D=3D[^0-9]&replace=3D][timestamp][/grep][/text] [writefile temp]MYLOGINID^[SKU]^[timestamp]^[amount][/writefile] [shell]digest -v -a md5 temp > stdout[/shell] [text]hash=3D[GetChars start=3D14][INCLUDE=20file=3Dstdout][/GetChars][/text] [text show=3Dt]hash=3D[grepsearch=3D[^A-Za-z0-9]&replace=3D][hash][/grep][/text] =20 x_fp_hash=3D[hash] x_fp_sequence=3D[SKU] x_fp_timestamp=3D[timestamp] =20 I'm getting a response code of 99:=C2=A0=C2=A0"Applicable only to SIM API. The server-generated fingerprint= doesnot match the merchant-specified fingerprint in the x_fp_hash field." =20 So it's either the timestamp or the md5 hash????? =20 Marc =20 On 5/5/2011 4:20 PM, Terry Wilson wrote:> Okay, here's mine (the first part is like Scott's). The values are> pulled from the form the customer fills out, and I left out the code> you'd put in later on the page when the sale goes through, like> confirmation emails. This also shows how you parse out the results> like the AVS code; it took some playing around to figure out which> 'words' were which. This is one of several versions for different> sites that are all patterned after the same idea, just some> differences depending on the form submitted.>> [text]content=3Dx_version=3D3.0&[!]> [/!]x_Test_Request=3D[x_Test_Request]&[!]> [/!]x_Method=3DCC&[!]> [/!]x_Tran_Key=3DXdZwd1nZJqKVTwmV&[!]> [/!]x_login=3Dlecyt5m&[!]> [/!]x_Type=3DAUTH_CAPTURE&[!]> [/!]x_First_Name=3D[ccname]&[!]> [/!]x_Last_Name=3D[ccname]&[!]> [/!]x_email=3D[email]&[!]> [/!]x_Phone=3D[phone]&[!]> [/!]x_Address=3D[Address]&[!]> [/!]x_City=3D[City]&[!]> [/!]x_State=3D[State]&[!]> [/!]x_Zip=3D[Zip]&[!]> [/!]x_Country=3D[Country]&[!]> [/!]x_amount=3D[price]&[!]> [/!]x_CARD_NUM=3D[cc]&[!]> [/!]x_Exp_Date=3D[expMonth][ExpYear]&[!]> [/!]x_ADC_Relay_Response=3DFALSE&[!]> [/!]x_Cust_ID=3D[id]&[!]> [/!]x_Invoice_Num=3D[invoice]&[!]> [/!]x_Description=3D[plan]&[!]> [/!]x_ADC_URL=3DFALSE&[!]> [/!]x_Delim_Data=3DTRUE&[!]> [/!]x_ADC_Delim_Character=3D|[/text]>> [text]response=3D[tcpconnect=20>host=3Dsecure.authorize.net&port=3D443&ssl=3DT][!]> [/!][tcpsend]POST /gateway/transact.dll=20>HTTP/1.0[UnURL]%0D%0A[/UnURL][!]> [/!]User-Agent: StoreBuilder[UnURL]%0D%0A[/UnURL][!]> [/!]Content-type:=20>application/x-www-form-urlencoded[UnURL]%0D%0A[/UnURL][!]> [/!]Content-length:=20>[CountChars][content][/CountChars][UnURL]%0D%0A[/UnURL][!]> [/!][UnURL]%0D%0A[/UnURL][!]> [/!][content][UnURL]%0D%0A[/UnURL][!]> [/!][/TCPSend][/tcpconnect][/text]>> [text]response=3D[unurl][middle> startafter=3D[url]%0D%0A%0D%0A[/url]&endbefore=3D][url][response][/url]=[/middle][/unurl][/text]>> [text multi=3Dt][listwords words=3D[response]&delimiters=3D|][!]> [/!][showif [index]=3D1]an_Response=3D[showif> [word]=3D1]Approved[/showif][showif [word]=3D2]Declined[/showif][showif> [word]=3D3]Error[/showif][/showif][!]> [/!][showif [index]=3D2]&an_SubCode=3D[word][/showif][!]> [/!][showif [index]=3D3]&an_ReasonCode=3D[word][/showif][!]> [/!][showif [index]=3D4]&an_ReasonText=3D[word][/showif][!]> [/!][showif [index]=3D5]&an_ApprovalCode=3D[word][/showif][!]> [/!][showif [index]=3D6]&an_AVS=3D[word][/showif][!]> [/!][showif [index]=3D7]&an_TransID=3D[word][/showif][!]> [/!][showif [index]=3D10]&an_amount=3D[word][/showif][!]> [/!][/listwords][/text]>> [showif [an_avs]=3D[raw][an_avs][/raw]]> [!]Failed to make the connection with Authorize.net. Put appropriate> code here, like maybe an email to yourself.[/!]> [/showif]>> [showif [an_response]=3Dapproved]> [!]Everything's fine. Put appropriate code here.[/!]> [/showif]>> [showif [an_response]=3Ddeclined]> [text]cardfailed=3Dt[/text]> This card was declined or there was some error,> such as incorrect expiration date.
[listvariables> name=3Dan_&exact=3Df]> [name] =3D [value]
> [/listvariables]>> [text]showform=3DT[/text]> [/showif]>> [showif [an_response]=3Derror]> [text]cardfailed=3Dt[/text]>
This card was declined or there was some error,> such as incorrect expiration date.
[listvariables> name=3Dan_&exact=3Df]> [name] =3D [value]
> [text]showform=3DT[/text]> [/showif]>>> I am re-engineering a couple of donation forms that currently use>> our own credit card processing server to use Authorize.net Server>> Integration Method.=C2=A0=C2=A0 http://developer.authorize.net/api/sim=/>> They have development kits for php, Ruby and Java.=C2=A0=C2=A0Anyone g=ot>> something I could see in WebDNA?>>>>>> Marc>> -->> ------------------------------------------->> Marc Thompson>> Software Engineer>> Media Solutions>> University Information Technology>> University of Utah>> 801.585.9264>> marc.thompson@utah.edu>> ------------------------------------------->> --------------------------------------------------------->> This message is sent to you because you are subscribed to>> the mailing list.>> To unsubscribe, E-mail to:>> archives: http://mail.webdna.us/list/talk@webdna.us>> Bug Reporting: support@webdna.us>> =20 -- ------------------------------------------- Marc Thompson Software Engineer Media Solutions University Information Technology University of Utah 801.585.9264 marc.thompson@utah.edu ------------------------------------------- --------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: archives: http://mail.webdna.us/list/talk@webdna.us Bug Reporting: support@webdna.us
Associated Messages, from the most recent to the oldest:
I don't know about that hash stuff; it always confused me. The method=20we're showing you doesn't require it. Maybe that's why we do it with a=20tcpconnect and tcpsend?On Thu, 05 May 2011 18:14:01 -0600 Marc Thompson wrote: Thanks for the input.=C2=A0=C2=A0I'm getting close, just hung up on a s=malldetail I think? I an going to be using the SIM (Server Intergration Method) and assuch won't be collecting credit card info from the user. Also, it says in the documentation that the following fields arerequired: x_fp_hash x_fp_sequence x_fp_timestamp =20 Not sure if I'm doing these correctly though?=C2=A0=C2=A0Here's what I'=ve got: [text]timestamp=3D[shell]/usr/bin/perl -e 'printf "%d",time;'[/shell][/text] [text]timestamp=3D[grepsearch=3D=3D[^0-9]&replace=3D][timestamp][/grep][/text] [writefile temp]MYLOGINID^[SKU]^[timestamp]^[amount][/writefile] [shell]digest -v -a md5 temp > stdout[/shell] [text]hash=3D[GetChars start=3D14][INCLUDE=20file=3Dstdout][/GetChars][/text] [text show=3Dt]hash=3D[grepsearch=3D[^A-Za-z0-9]&replace=3D][hash][/grep][/text] =20 x_fp_hash=3D[hash] x_fp_sequence=3D[SKU] x_fp_timestamp=3D[timestamp] =20 I'm getting a response code of 99:=C2=A0=C2=A0"Applicable only to SIM API. The server-generated fingerprint= doesnot match the merchant-specified fingerprint in the x_fp_hash field." =20 So it's either the timestamp or the md5 hash????? =20 Marc =20 On 5/5/2011 4:20 PM, Terry Wilson wrote:> Okay, here's mine (the first part is like Scott's). The values are> pulled from the form the customer fills out, and I left out the code> you'd put in later on the page when the sale goes through, like> confirmation emails. This also shows how you parse out the results> like the AVS code; it took some playing around to figure out which> 'words' were which. This is one of several versions for different> sites that are all patterned after the same idea, just some> differences depending on the form submitted.>> [text]content=3Dx_version=3D3.0&[!]> [/!]x_Test_Request=3D[x_Test_Request]&[!]> [/!]x_Method=3DCC&[!]> [/!]x_Tran_Key=3DXdZwd1nZJqKVTwmV&[!]> [/!]x_login=3Dlecyt5m&[!]> [/!]x_Type=3DAUTH_CAPTURE&[!]> [/!]x_First_Name=3D[ccname]&[!]> [/!]x_Last_Name=3D[ccname]&[!]> [/!]x_email=3D[email]&[!]> [/!]x_Phone=3D[phone]&[!]> [/!]x_Address=3D[Address]&[!]> [/!]x_City=3D[City]&[!]> [/!]x_State=3D[State]&[!]> [/!]x_Zip=3D[Zip]&[!]> [/!]x_Country=3D[Country]&[!]> [/!]x_amount=3D[price]&[!]> [/!]x_CARD_NUM=3D[cc]&[!]> [/!]x_Exp_Date=3D[expMonth][ExpYear]&[!]> [/!]x_ADC_Relay_Response=3DFALSE&[!]> [/!]x_Cust_ID=3D[id]&[!]> [/!]x_Invoice_Num=3D[invoice]&[!]> [/!]x_Description=3D[plan]&[!]> [/!]x_ADC_URL=3DFALSE&[!]> [/!]x_Delim_Data=3DTRUE&[!]> [/!]x_ADC_Delim_Character=3D|[/text]>> [text]response=3D[tcpconnect=20>host=3Dsecure.authorize.net&port=3D443&ssl=3DT][!]> [/!][tcpsend]POST /gateway/transact.dll=20>HTTP/1.0[unurl]%0D%0A[/UnURL][!]> [/!]User-Agent: StoreBuilder[unurl]%0D%0A[/UnURL][!]> [/!]Content-type:=20>application/x-www-form-urlencoded[unurl]%0D%0A[/UnURL][!]> [/!]Content-length:=20>[countchars][content][/CountChars][unurl]%0D%0A[/UnURL][!]> [/!][unurl]%0D%0A[/UnURL][!]> [/!][content][unurl]%0D%0A[/UnURL][!]> [/!][/TCPSend][/tcpconnect][/text]>> [text]response=3D[unurl][middle> startafter=3D[url]%0D%0A%0D%0A[/url]&endbefore=3D][url][response][/url]=[/middle][/unurl][/text]>> [text multi=3Dt][listwords words=3D[response]&delimiters=3D|][!]> [/!][showif [index]=3D1]an_Response=3D[showif> [word]=3D1]Approved[/showif][showif [word]=3D2]Declined[/showif][showif> [word]=3D3]Error[/showif][/showif][!]> [/!][showif [index]=3D2]&an_SubCode=3D[word][/showif][!]> [/!][showif [index]=3D3]&an_ReasonCode=3D[word][/showif][!]> [/!][showif [index]=3D4]&an_ReasonText=3D[word][/showif][!]> [/!][showif [index]=3D5]&an_ApprovalCode=3D[word][/showif][!]> [/!][showif [index]=3D6]&an_AVS=3D[word][/showif][!]> [/!][showif [index]=3D7]&an_TransID=3D[word][/showif][!]> [/!][showif [index]=3D10]&an_amount=3D[word][/showif][!]> [/!][/listwords][/text]>> [showif [an_avs]=3D[raw][an_avs][/raw]]> [!]Failed to make the connection with Authorize.net. Put appropriate> code here, like maybe an email to yourself.[/!]> [/showif]>> [showif [an_response]=3Dapproved]> [!]Everything's fine. Put appropriate code here.[/!]> [/showif]>> [showif [an_response]=3Ddeclined]> [text]cardfailed=3Dt[/text]> This card was declined or there was some error,> such as incorrect expiration date.
[listvariables> name=3Dan_&exact=3Df]> [name] =3D [value]
> [/listvariables]>> [text]showform=3DT[/text]> [/showif]>> [showif [an_response]=3Derror]> [text]cardfailed=3Dt[/text]>
This card was declined or there was some error,> such as incorrect expiration date.
[listvariables> name=3Dan_&exact=3Df]> [name] =3D [value]
> [text]showform=3DT[/text]> [/showif]>>> I am re-engineering a couple of donation forms that currently use>> our own credit card processing server to use Authorize.net Server>> Integration Method.=C2=A0=C2=A0 http://developer.authorize.net/api/sim=/>> They have development kits for php, Ruby and Java.=C2=A0=C2=A0Anyone g=ot>> something I could see in WebDNA?>>>>>> Marc>> -->> ------------------------------------------->> Marc Thompson>> Software Engineer>> Media Solutions>> University Information Technology>> University of Utah>> 801.585.9264>> marc.thompson@utah.edu>> ------------------------------------------->> --------------------------------------------------------->> This message is sent to you because you are subscribed to>> the mailing list.>> To unsubscribe, E-mail to:>> archives: http://mail.webdna.us/list/talk@webdna.us>> Bug Reporting: support@webdna.us>> =20 -- ------------------------------------------- Marc Thompson Software Engineer Media Solutions University Information Technology University of Utah 801.585.9264 marc.thompson@utah.edu ------------------------------------------- --------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: archives: http://mail.webdna.us/list/talk@webdna.us Bug Reporting: support@webdna.us
"Terry Wilson"
DOWNLOAD WEBDNA NOW!
Top Articles:
Talk List
The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...
Related Readings:
If Empty ? (1997)
This list needs a digest: rant, rave... (1997)
Bug Report, maybe (1997)
PR: WebCatalog Affiliates Program Announced -- Share the revenuefor promoting WebCatalog (2000)
More on the email templates (1997)
Commas in search (1998)
WebCat editing, SiteGuard & SiteEdit (1997)
wild question (1998)
Test (2003)
OT: Variables in printed URL (2007)
Re:FYI: Error message (1996)
Snake Bites (1997)
Multiple Pulldowns (1997)
WebCat2: Items xx to xx shown, etc. (1997)
updating checkbox in a db (1998)
Multiple prices (1997)
OT: Microsoft to buy Macromedia? (2002)
ReturnRaw followup (1999)
Problems with [Search] param - Mac Plugin b15 (1997)
carriage returns in data (1997)