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

This WebDNA talk-list message is from

2011


It keeps the original formatting.
numero = 106599
interpreted = N
texte = 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 -- Terry Wilson | terry@terryfic.com | http://terryfic.com http://WhosComing.com - a simplified, affordable online reservation system http://TightJacket.com -- stylish protection for your laptop -------------------------------------------------------------------------- Attitude is the only difference between ordeal and adventure. Associated Messages, from the most recent to the oldest:

    
  1. Re: [BULK] Re: [WebDNA] Authorize.net SIM, Server Integration Method (Marc Thompson 2011)
  2. Re: [BULK] Re: [WebDNA] Authorize.net SIM, Server Integration Method (Tom Duke 2011)
  3. Re: [BULK] Re: [WebDNA] Authorize.net SIM, Server Integration Method (Aaron Michael Kaczmarek 2011)
  4. Re: [BULK] Re: [WebDNA] Authorize.net SIM, Server Integration Method (Marc Thompson 2011)
  5. Re: [BULK] Re: [WebDNA] Authorize.net SIM, Server Integration Method (Tom Duke 2011)
  6. Re: [BULK] Re: [WebDNA] Authorize.net SIM, Server Integration Method (Aaron Michael Kaczmarek 2011)
  7. [BULK] Re: [WebDNA] Authorize.net SIM, Server Integration Method (Marc Thompson 2011)
  8. Re: [WebDNA] Authorize.net SIM, Server Integration Method (Terry Wilson 2011)
  9. Re: [WebDNA] Authorize.net SIM, Server Integration Method (Terry Wilson 2011)
  10. Re: [WebDNA] Authorize.net SIM, Server Integration Method (Scott Walters 2011)
  11. [WebDNA] Authorize.net SIM, Server Integration Method (Marc Thompson 2011)
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 -- Terry Wilson | terry@terryfic.com | http://terryfic.com http://WhosComing.com - a simplified, affordable online reservation system http://TightJacket.com -- stylish protection for your laptop -------------------------------------------------------------------------- Attitude is the only difference between ordeal and adventure. 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:

How to pass from a detail page to anothere to another? (1998) About WebCatalog and iTools 7 (2003) Protect (1997) Missing custom convert.db (1998) You can't buy something twice... (1997) Thanks for tips, more quest (1997) Protect folder (2005) shipcost (1997) Add to a field (1998) WebCat2 - storing unformatted date data? (1997) Capturing the referring site (1999) Online reference (1997) Almost a there but..bye bye NetCloak (1997) OT: How to get more traffic to a site? (2005) help with duplicate records posted (1998) processing .html pages (2001) calculating time (2002) Bugs in IE 6.0 ? (2003) formula.db, adding option prices (1997) Error Lob.db records error message not name (1997)