Re: [WebDNA] Authorize.net and [tcpconnect]

This WebDNA talk-list message is from

2016


It keeps the original formatting.
numero = 112805
interpreted = N
texte = 388 Thanks, no time to look at it right now.. but just know that just = because you change one thing on your end, doesn=92t mean they haven=92t changed requirements on = their end at the new API. HOST is often a required parameter and I don=92t see that in your code: > [text show=3DF]response=3D[tcpconnect = host=3Dsecure.authorize.net&port=3D443&ssl=3DT][!] > [/!][tcpsend]POST /gateway/transact.dll = HTTP/1.0[unurl]%0D%0A[/unurl][!] > [/!]User-Agent: e3IP[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] Otherwise your best bet is to read the documentation and make sure the = code is compliant.=20 Donovan On May 25, 2016, at 4:09 PM, Brian Willson wrote: >> On May 25, 2016, at 4:18 PM, Donovan Brooke wrote: >>=20 >> Can you post your code Brian? >>=20 >> Donovan >=20 >=20 > Sure thing. Below is the code I've been using successfully for several = years. The new Akamai URL only differs in that it has a "2" after = "secure" (in my LIVE GATEWAY section) -- i.e., "secure2.authorize.net" = instead of "secure.authorize.net." >=20 > Thanks,=20 > Brian >=20 > --- >=20 > [text = multi=3DT]o_status=3D&o_authcode=3D&o_reason=3D&o_hash=3D&o_transid=3D&o_a= vscode=3D[/text] >=20 > [text multi=3DT show=3DF]content=3Dx_version=3D3.1&[!] > [/!]x_relay_response=3DFALSE&[!] > [/!]x_delim_data=3DTRUE&[!] > [/!]x_login=3D[decrypt seed=3DG4U3_paPp%$][lookup = db=3Dvault/an_login.db&lookinfield=3DPREF&value=3Dlogin&returnfield=3DVALU= E][/decrypt]&[!] > [/!]x_tran_key=3D[decrypt seed=3DG4U3_paPp%$][lookup = db=3Dvault/an_login.db&lookinfield=3DPREF&value=3Dpword&returnfield=3DVALU= E][/decrypt]&[!] > [/!]x_type=3DAUTH_CAPTURE&x_Method=3DCC&[!] > [/!]x_amount=3D[math][grandT][/math]&[!] > [/!]x_card_num=3D[accountnum]&[!] > [/!]x_exp_date=3D[format .2d][expmonth][/format][format = ..2d][expyear][/format]&[!] > [/!]x_first_name=3D[firstname]&[!] > [/!]x_last_name=3D[lastname]&[!] > [/!]x_company=3D[company]&[!] > [/!]x_address=3D[auth_address]&[!] > [/!]x_city=3D[city]&[!] > [/!]x_state=3D[showif [otherstate]=3D][state][/showif][hideif = [otherstate]=3D][otherstate][/hideif]&[!] > [/!]x_zip=3D[zip]&[!] > [/!]x_country=3D[country]&[!] > [/!]x_phone=3D[phone]&[!] > [/!]x_email=3D[email]&[!] > [/!]x_email_customer=3DF&[!] > [/!]x_ship_to_first_name=3D[shiptofirstname]&[!] > [/!]x_ship_to_last_name=3D[shiptolastname]&[!] > [/!]x_ship_to_company=3D[shiptocompany]&[!] > [/!]x_ship_to_address=3D[auth_ship_to_address]&[!] > [/!]x_ship_to_city=3D[shiptocity]&[!] > [/!]x_ship_to_state=3D[showif = [shiptootherstate]=3D][shiptostate][/showif][hideif = [shiptootherstate]=3D][shiptootherstate][/hideif]&[!] > [/!]x_ship_to_zip=3D[shiptozip]&[!] > [/!]x_ship_to_country=3D[shiptocountry]&[!] > [/!]x_tax=3D[fulltax]&[!] > [/!]x_freight=3D[ship]&[!] > [/!]x_invoice_num=3D[cart]&[!] > [/!]x_test_request=3DFALSE&[!] > [/!]x_description=3DOnline Order No. [ordernum] from = OldFonts.com[/text] >=20 >=20 > [!]***LIVE GATEWAY[/!] >=20 > [text show=3DF]response=3D[tcpconnect = host=3Dsecure.authorize.net&port=3D443&ssl=3DT][!] > [/!][tcpsend]POST /gateway/transact.dll = HTTP/1.0[unurl]%0D%0A[/unurl][!] > [/!]User-Agent: e3IP[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] >=20 >=20 > [!]***RESPONSE[/!] >=20 > [text show=3DF]response=3D[unurl][middle = startafter=3D[url]%0D%0A%0D%0A[/url]&endbefore=3D][url][response][/url][/m= iddle][/unurl][/text] >=20 > [!][text show=3DF]response=3D[grep search=3D|&replace=3D= ][response][/grep][/text][/!] >=20 > [listwords words=3D[response]&delimiters=3D|][!] > [/!][showif [index]=3D1][text show=3DF]o_status=3D[showif = [word]=3D1]Approved[/showif][showif [word]=3D2]Declined[/showif][showif = [word]=3D3]Error[/showif][/text][/showif][!] > [/!][showif [index]=3D4][text = show=3DF]o_reason=3D[word][/text][/showif][!] > [/!][showif [index]=3D5][text = show=3DF]o_authcode=3D[word][/text][/showif][!] > [/!][showif [index]=3D6][text = show=3DF]o_avscode=3D[word][/text][/showif][!] > [/!][showif [index]=3D7][text = show=3DF]o_transid=3D[word][/text][/showif][!] > [/!][showif [index]=3D38][text = show=3DF]o_hash=3D[response_1][word][/text][/showif][!] > [/!][/listwords] >=20 >=20 >> On May 25, 2016, at 3:12 PM, Brian Willson wrote: >>=20 >>> Hi, folks. >>>=20 >>> For several years, I've used a [tcpconnect] script I found in the = archives here to conduct online sales via Authorize.net's AIM solution. = It's still working great. >>>=20 >>> However, Authorize.net will soon be using Akamai SureRoute to = optimize traffic, and they've rolled out some new secure URLs for = testing. Well, none of these new URLs work with my existing [tcpconnect] = script. The response I'm getting is (e.g.): >>>=20 >>> HTTP/1.0 400 Bad Request Server: AkamaiGHost Mime-Version: 1.0 = Content-Type: text/html Content-Length: 207 Expires: Wed, 25 May 2016 = 19:13:31 GMT Date: Wed, 25 May 2016 19:13:31 GMT Connection: close >>>=20 >>> This is especially odd since the URL I'm now successfully using... >>>=20 >>> secure.authorize.net/gateway/transact.dll >>>=20 >>> ... differs by only one character from the new Akamai one: >>>=20 >>> secure2.authorize.net/gateway/transact.dll >>>=20 >>> Is anyone else still using Authorize.net? And, if so, have you been = able to connect to any of the new Akamai URLs? Is it possible that a = POST via [tcpconnect] will simply not work with Authorize.net's new = routing system? >>>=20 >>> If so, I might be in the market for a new online commerce solution. >>>=20 >>> Thanks in advance. >>>=20 >>> Brian >>>=20 >>> --- >>> Brian Willson >>> www.3ip.com >>>=20 >>> --------------------------------------------------------- >>> 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 >> --------------------------------------------------------- >> 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 >=20 > --- > Brian Willson > www.3ip.com --------------------------------------------------------- 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:

    
  1. Re: [WebDNA] Authorize.net and [tcpconnect] ("IBS Ltd." 2016)
  2. Re: [WebDNA] Authorize.net and [tcpconnect] (Brian Willson 2016)
  3. Re: [WebDNA] Authorize.net and [tcpconnect] (Brian Willson 2016)
  4. Re: [WebDNA] Authorize.net and [tcpconnect] (Brian Willson 2016)
  5. Re: [WebDNA] Authorize.net and [tcpconnect] (Donovan Brooke 2016)
  6. Re: [WebDNA] Authorize.net and [tcpconnect] (Brian Willson 2016)
  7. Re: [WebDNA] Authorize.net and [tcpconnect] (Jym Duane 2016)
  8. Re: [WebDNA] Authorize.net and [tcpconnect] (Jym Duane 2016)
  9. Re: [WebDNA] Authorize.net and [tcpconnect] (Brian Willson 2016)
  10. Re: [WebDNA] Authorize.net and [tcpconnect] (Brian Willson 2016)
  11. Re: [WebDNA] Authorize.net and [tcpconnect] (Jym Duane 2016)
  12. Re: [WebDNA] Authorize.net and [tcpconnect] (Donovan Brooke 2016)
  13. [WebDNA] Authorize.net and [tcpconnect] (Brian Willson 2016)
388 Thanks, no time to look at it right now.. but just know that just = because you change one thing on your end, doesn=92t mean they haven=92t changed requirements on = their end at the new API. HOST is often a required parameter and I don=92t see that in your code: > [text show=3DF]response=3D[tcpconnect = host=3Dsecure.authorize.net&port=3D443&ssl=3DT][!] > [/!][tcpsend]POST /gateway/transact.dll = HTTP/1.0[unurl]%0D%0A[/unurl][!] > [/!]User-Agent: e3IP[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] Otherwise your best bet is to read the documentation and make sure the = code is compliant.=20 Donovan On May 25, 2016, at 4:09 PM, Brian Willson wrote: >> On May 25, 2016, at 4:18 PM, Donovan Brooke wrote: >>=20 >> Can you post your code Brian? >>=20 >> Donovan >=20 >=20 > Sure thing. Below is the code I've been using successfully for several = years. The new Akamai URL only differs in that it has a "2" after = "secure" (in my LIVE GATEWAY section) -- i.e., "secure2.authorize.net" = instead of "secure.authorize.net." >=20 > Thanks,=20 > Brian >=20 > --- >=20 > [text = multi=3DT]o_status=3D&o_authcode=3D&o_reason=3D&o_hash=3D&o_transid=3D&o_a= vscode=3D[/text] >=20 > [text multi=3DT show=3DF]content=3Dx_version=3D3.1&[!] > [/!]x_relay_response=3DFALSE&[!] > [/!]x_delim_data=3DTRUE&[!] > [/!]x_login=3D[decrypt seed=3DG4U3_paPp%$][lookup = db=3Dvault/an_login.db&lookinfield=3DPREF&value=3Dlogin&returnfield=3DVALU= E][/decrypt]&[!] > [/!]x_tran_key=3D[decrypt seed=3DG4U3_paPp%$][lookup = db=3Dvault/an_login.db&lookinfield=3DPREF&value=3Dpword&returnfield=3DVALU= E][/decrypt]&[!] > [/!]x_type=3DAUTH_CAPTURE&x_Method=3DCC&[!] > [/!]x_amount=3D[math][grandT][/math]&[!] > [/!]x_card_num=3D[accountnum]&[!] > [/!]x_exp_date=3D[format .2d][expmonth][/format][format = ..2d][expyear][/format]&[!] > [/!]x_first_name=3D[firstname]&[!] > [/!]x_last_name=3D[lastname]&[!] > [/!]x_company=3D[company]&[!] > [/!]x_address=3D[auth_address]&[!] > [/!]x_city=3D[city]&[!] > [/!]x_state=3D[showif [otherstate]=3D][state][/showif][hideif = [otherstate]=3D][otherstate][/hideif]&[!] > [/!]x_zip=3D[zip]&[!] > [/!]x_country=3D[country]&[!] > [/!]x_phone=3D[phone]&[!] > [/!]x_email=3D[email]&[!] > [/!]x_email_customer=3DF&[!] > [/!]x_ship_to_first_name=3D[shiptofirstname]&[!] > [/!]x_ship_to_last_name=3D[shiptolastname]&[!] > [/!]x_ship_to_company=3D[shiptocompany]&[!] > [/!]x_ship_to_address=3D[auth_ship_to_address]&[!] > [/!]x_ship_to_city=3D[shiptocity]&[!] > [/!]x_ship_to_state=3D[showif = [shiptootherstate]=3D][shiptostate][/showif][hideif = [shiptootherstate]=3D][shiptootherstate][/hideif]&[!] > [/!]x_ship_to_zip=3D[shiptozip]&[!] > [/!]x_ship_to_country=3D[shiptocountry]&[!] > [/!]x_tax=3D[fulltax]&[!] > [/!]x_freight=3D[ship]&[!] > [/!]x_invoice_num=3D[cart]&[!] > [/!]x_test_request=3DFALSE&[!] > [/!]x_description=3DOnline Order No. [ordernum] from = OldFonts.com[/text] >=20 >=20 > [!]***LIVE GATEWAY[/!] >=20 > [text show=3DF]response=3D[tcpconnect = host=3Dsecure.authorize.net&port=3D443&ssl=3DT][!] > [/!][tcpsend]POST /gateway/transact.dll = HTTP/1.0[unurl]%0D%0A[/unurl][!] > [/!]User-Agent: e3IP[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] >=20 >=20 > [!]***RESPONSE[/!] >=20 > [text show=3DF]response=3D[unurl][middle = startafter=3D[url]%0D%0A%0D%0A[/url]&endbefore=3D][url][response][/url][/m= iddle][/unurl][/text] >=20 > [!][text show=3DF]response=3D[grep search=3D|&replace=3D= ][response][/grep][/text][/!] >=20 > [listwords words=3D[response]&delimiters=3D|][!] > [/!][showif [index]=3D1][text show=3DF]o_status=3D[showif = [word]=3D1]Approved[/showif][showif [word]=3D2]Declined[/showif][showif = [word]=3D3]Error[/showif][/text][/showif][!] > [/!][showif [index]=3D4][text = show=3DF]o_reason=3D[word][/text][/showif][!] > [/!][showif [index]=3D5][text = show=3DF]o_authcode=3D[word][/text][/showif][!] > [/!][showif [index]=3D6][text = show=3DF]o_avscode=3D[word][/text][/showif][!] > [/!][showif [index]=3D7][text = show=3DF]o_transid=3D[word][/text][/showif][!] > [/!][showif [index]=3D38][text = show=3DF]o_hash=3D[response_1][word][/text][/showif][!] > [/!][/listwords] >=20 >=20 >> On May 25, 2016, at 3:12 PM, Brian Willson wrote: >>=20 >>> Hi, folks. >>>=20 >>> For several years, I've used a [tcpconnect] script I found in the = archives here to conduct online sales via Authorize.net's AIM solution. = It's still working great. >>>=20 >>> However, Authorize.net will soon be using Akamai SureRoute to = optimize traffic, and they've rolled out some new secure URLs for = testing. Well, none of these new URLs work with my existing [tcpconnect] = script. The response I'm getting is (e.g.): >>>=20 >>> HTTP/1.0 400 Bad Request Server: AkamaiGHost Mime-Version: 1.0 = Content-Type: text/html Content-Length: 207 Expires: Wed, 25 May 2016 = 19:13:31 GMT Date: Wed, 25 May 2016 19:13:31 GMT Connection: close >>>=20 >>> This is especially odd since the URL I'm now successfully using... >>>=20 >>> secure.authorize.net/gateway/transact.dll >>>=20 >>> ... differs by only one character from the new Akamai one: >>>=20 >>> secure2.authorize.net/gateway/transact.dll >>>=20 >>> Is anyone else still using Authorize.net? And, if so, have you been = able to connect to any of the new Akamai URLs? Is it possible that a = POST via [tcpconnect] will simply not work with Authorize.net's new = routing system? >>>=20 >>> If so, I might be in the market for a new online commerce solution. >>>=20 >>> Thanks in advance. >>>=20 >>> Brian >>>=20 >>> --- >>> Brian Willson >>> www.3ip.com >>>=20 >>> --------------------------------------------------------- >>> 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 >> --------------------------------------------------------- >> 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 >=20 > --- > Brian Willson > www.3ip.com --------------------------------------------------------- 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 . Donovan Brooke

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:

WebCat2: Master Counter snippet (1997) passing search criteria (1997) WebDNA Developer Resource Center (2002) Signal Raised (1997) Slightly OT - SQL- Clustering (2006) ooops...WebCatalog [FoundItems] Problem - LONG - (1997) Problem (1997) japanese characters (1997) Frames and WebCat (1997) [delete] problem (1997) Newspaper Portal (2005) WebCatalog can't find database (1997) Grep (2003) bye bye tax rate (1998) WebCat2b13MacPlugIn - syntax to convert date (1997) Location of Browser Info.txt file (1997) Nav. 4 probs with cart (1997) price change help (1998) [WebDNA] Finding duplicate records (2011) Do [object] and [shell] work on OSX/WebSTAR V? (2002)