[BULK] Re: [WebDNA] Authorize.net SIM, Server Integration Method

This WebDNA talk-list message is from

2011


It keeps the original formatting.
numero = 106600
interpreted = N
texte = Thanks for the input. I'm getting close, just hung up on a small detail I think? I an going to be using the SIM (Server Intergration Method) and as such won't be collecting credit card info from the user. Also, it says in the documentation that the following fields are required: x_fp_hash x_fp_sequence x_fp_timestamp Not sure if I'm doing these correctly though? Here's what I've got: [text]timestamp=[shell]/usr/bin/perl -e 'printf "%d", time;'[/shell][/text] [text]timestamp=[grep search==[^0-9]&replace=][timestamp][/grep][/text] [writefile temp]MYLOGINID^[SKU]^[timestamp]^[amount][/writefile] [shell]digest -v -a md5 temp > stdout[/shell] [text]hash=[GetChars start=14][INCLUDE file=stdout][/GetChars][/text] [text show=t]hash=[grep search=[^A-Za-z0-9]&replace=][hash][/grep][/text] x_fp_hash=[hash] x_fp_sequence=[SKU] x_fp_timestamp=[timestamp] I'm getting a response code of 99: "Applicable only to SIM API. The server-generated fingerprint does not match the merchant-specified fingerprint in the x_fp_hash field." So it's either the timestamp or the md5 hash????? Marc 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=x_version=3.0&[!] > [/!]x_Test_Request=[x_Test_Request]&[!] > [/!]x_Method=CC&[!] > [/!]x_Tran_Key=XdZwd1nZJqKVTwmV&[!] > [/!]x_login=lecyt5m&[!] > [/!]x_Type=AUTH_CAPTURE&[!] > [/!]x_First_Name=[ccname]&[!] > [/!]x_Last_Name=[ccname]&[!] > [/!]x_email=[email]&[!] > [/!]x_Phone=[phone]&[!] > [/!]x_Address=[Address]&[!] > [/!]x_City=[City]&[!] > [/!]x_State=[State]&[!] > [/!]x_Zip=[Zip]&[!] > [/!]x_Country=[Country]&[!] > [/!]x_amount=[price]&[!] > [/!]x_CARD_NUM=[cc]&[!] > [/!]x_Exp_Date=[expMonth][ExpYear]&[!] > [/!]x_ADC_Relay_Response=FALSE&[!] > [/!]x_Cust_ID=[id]&[!] > [/!]x_Invoice_Num=[invoice]&[!] > [/!]x_Description=[plan]&[!] > [/!]x_ADC_URL=FALSE&[!] > [/!]x_Delim_Data=TRUE&[!] > [/!]x_ADC_Delim_Character=|[/text] > > [text]response=[tcpconnect host=secure.authorize.net&port=443&ssl=T][!] > [/!][tcpsend]POST /gateway/transact.dll HTTP/1.0[UnURL]%0D%0A[/UnURL][!] > [/!]User-Agent: StoreBuilder[UnURL]%0D%0A[/UnURL][!] > [/!]Content-type: application/x-www-form-urlencoded[UnURL]%0D%0A[/UnURL][!] > [/!]Content-length: [CountChars][content][/CountChars][UnURL]%0D%0A[/UnURL][!] > [/!][UnURL]%0D%0A[/UnURL][!] > [/!][content][UnURL]%0D%0A[/UnURL][!] > [/!][/TCPSend][/tcpconnect][/text] > > [text]response=[unurl][middle > startafter=[url]%0D%0A%0D%0A[/url]&endbefore=][url][response][/url][/middle][/unurl][/text] > > [text multi=t][listwords words=[response]&delimiters=|][!] > [/!][showif [index]=1]an_Response=[showif > [word]=1]Approved[/showif][showif [word]=2]Declined[/showif][showif > [word]=3]Error[/showif][/showif][!] > [/!][showif [index]=2]&an_SubCode=[word][/showif][!] > [/!][showif [index]=3]&an_ReasonCode=[word][/showif][!] > [/!][showif [index]=4]&an_ReasonText=[word][/showif][!] > [/!][showif [index]=5]&an_ApprovalCode=[word][/showif][!] > [/!][showif [index]=6]&an_AVS=[word][/showif][!] > [/!][showif [index]=7]&an_TransID=[word][/showif][!] > [/!][showif [index]=10]&an_amount=[word][/showif][!] > [/!][/listwords][/text] > > [showif [an_avs]=[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]=approved] > [!]Everything's fine. Put appropriate code here.[/!] > [/showif] > > [showif [an_response]=declined] > [text]cardfailed=t[/text] >

This card was declined or there was some error, > such as incorrect expiration date.
[listvariables > name=an_&exact=f] > [name] = [value]
> [/listvariables] > > [text]showform=T[/text] > [/showif] > > [showif [an_response]=error] > [text]cardfailed=t[/text] >

This card was declined or there was some error, > such as incorrect expiration date.
[listvariables > name=an_&exact=f] > [name] = [value]
> [text]showform=T[/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. http://developer.authorize.net/api/sim/ >> They have development kits for php, Ruby and Java. Anyone got >> 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 > > -- ------------------------------------------- Marc Thompson Software Engineer Media Solutions University Information Technology University of Utah 801.585.9264 marc.thompson@utah.edu ------------------------------------------- Associated Messages, from the most recent to the oldest:

    
Thanks for the input. I'm getting close, just hung up on a small detail I think? I an going to be using the SIM (Server Intergration Method) and as such won't be collecting credit card info from the user. Also, it says in the documentation that the following fields are required: x_fp_hash x_fp_sequence x_fp_timestamp Not sure if I'm doing these correctly though? Here's what I've got: [text]timestamp=[shell]/usr/bin/perl -e 'printf "%d", time;'[/shell][/text] [text]timestamp=[grep search==[^0-9]&replace=][timestamp][/grep][/text] [writefile temp]MYLOGINID^[SKU]^[timestamp]^[amount][/writefile] [shell]digest -v -a md5 temp > stdout[/shell] [text]hash=[GetChars start=14][INCLUDE file=stdout][/GetChars][/text] [text show=t]hash=[grep search=[^A-Za-z0-9]&replace=][hash][/grep][/text] x_fp_hash=[hash] x_fp_sequence=[SKU] x_fp_timestamp=[timestamp] I'm getting a response code of 99: "Applicable only to SIM API. The server-generated fingerprint does not match the merchant-specified fingerprint in the x_fp_hash field." So it's either the timestamp or the md5 hash????? Marc 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=x_version=3.0&[!] > [/!]x_Test_Request=[x_Test_Request]&[!] > [/!]x_Method=CC&[!] > [/!]x_Tran_Key=XdZwd1nZJqKVTwmV&[!] > [/!]x_login=lecyt5m&[!] > [/!]x_Type=AUTH_CAPTURE&[!] > [/!]x_First_Name=[ccname]&[!] > [/!]x_Last_Name=[ccname]&[!] > [/!]x_email=[email]&[!] > [/!]x_Phone=[phone]&[!] > [/!]x_Address=[Address]&[!] > [/!]x_City=[City]&[!] > [/!]x_State=[State]&[!] > [/!]x_Zip=[Zip]&[!] > [/!]x_Country=[Country]&[!] > [/!]x_amount=[price]&[!] > [/!]x_CARD_NUM=[cc]&[!] > [/!]x_Exp_Date=[expMonth][ExpYear]&[!] > [/!]x_ADC_Relay_Response=FALSE&[!] > [/!]x_Cust_ID=[id]&[!] > [/!]x_Invoice_Num=[invoice]&[!] > [/!]x_Description=[plan]&[!] > [/!]x_ADC_URL=FALSE&[!] > [/!]x_Delim_Data=TRUE&[!] > [/!]x_ADC_Delim_Character=|[/text] > > [text]response=[tcpconnect host=secure.authorize.net&port=443&ssl=T][!] > [/!][tcpsend]POST /gateway/transact.dll HTTP/1.0[unurl]%0D%0A[/UnURL][!] > [/!]User-Agent: StoreBuilder[unurl]%0D%0A[/UnURL][!] > [/!]Content-type: application/x-www-form-urlencoded[unurl]%0D%0A[/UnURL][!] > [/!]Content-length: [countchars][content][/CountChars][unurl]%0D%0A[/UnURL][!] > [/!][unurl]%0D%0A[/UnURL][!] > [/!][content][unurl]%0D%0A[/UnURL][!] > [/!][/TCPSend][/tcpconnect][/text] > > [text]response=[unurl][middle > startafter=[url]%0D%0A%0D%0A[/url]&endbefore=][url][response][/url][/middle][/unurl][/text] > > [text multi=t][listwords words=[response]&delimiters=|][!] > [/!][showif [index]=1]an_Response=[showif > [word]=1]Approved[/showif][showif [word]=2]Declined[/showif][showif > [word]=3]Error[/showif][/showif][!] > [/!][showif [index]=2]&an_SubCode=[word][/showif][!] > [/!][showif [index]=3]&an_ReasonCode=[word][/showif][!] > [/!][showif [index]=4]&an_ReasonText=[word][/showif][!] > [/!][showif [index]=5]&an_ApprovalCode=[word][/showif][!] > [/!][showif [index]=6]&an_AVS=[word][/showif][!] > [/!][showif [index]=7]&an_TransID=[word][/showif][!] > [/!][showif [index]=10]&an_amount=[word][/showif][!] > [/!][/listwords][/text] > > [showif [an_avs]=[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]=approved] > [!]Everything's fine. Put appropriate code here.[/!] > [/showif] > > [showif [an_response]=declined] > [text]cardfailed=t[/text] >

This card was declined or there was some error, > such as incorrect expiration date.
[listvariables > name=an_&exact=f] > [name] = [value]
> [/listvariables] > > [text]showform=T[/text] > [/showif] > > [showif [an_response]=error] > [text]cardfailed=t[/text] >

This card was declined or there was some error, > such as incorrect expiration date.
[listvariables > name=an_&exact=f] > [name] = [value]
> [text]showform=T[/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. http://developer.authorize.net/api/sim/ >> They have development kits for php, Ruby and Java. Anyone got >> 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 > > -- ------------------------------------------- Marc Thompson Software Engineer Media Solutions University Information Technology University of Utah 801.585.9264 marc.thompson@utah.edu ------------------------------------------- Marc Thompson

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:

Statistics... (2004) Add a field to the error log? (1997) View Source from cache (1997) Number of Line Items (1998) Calculating multiple shipping... (1997) Secure Sever and showcart errors (1997) DB Updates don't take (1998) RE: [WebDNA] Libmysql.dll error (2009) Calendar using WebCatalog? (1997) HELP WITH DATES (1997) Problem displaying search result (1997) creating an email message (1998) WebCat and WebTV (1997) retain raw [cart] submitted value (2004) autocommit problem (1998) CommandSecurity? (1997) Pithy questions on webcommerce & siteedit (1997) Exclude by date - multiple (1997) RE: Still Learning (1997) WebCatalog Programmer looking for a new job (2001)