Didn't get much help for the talk list put this works =and maybe they can add it to their website for others.... searching the web=DNA website I could not find anything recent (like 20 years ago)... hard to= believe with Webcatalog and eCommerce they never got it quite together...<=div>Note: "<refId>" needs to be changed to get "succes=sful" transactions after you run it...
[text]content=3D
<createTransactionRequest =xmlns=3D"AnetApi/xml/v1/schema/AnetApiSchema.xsd">
=C2=A0 &=lt;merchantAuthentication>
=C2=A0 =C2=A0 <name>[=C2=A0 YOUR API= LOGIN P3u95bQpv]</name>
=C2=A0 =C2=A0 <transactionKey>[ YOU=R TRANSACTION KEY HZ32z3fP4hTG2]</transactionKey>
=C2=A0 </merc=hantAuthentication>
=C2=A0 <refId>123444856</refId>
==C2=A0 <transactionRequest>
=C2=A0 =C2=A0 <transactionType>a=uthCaptureTransaction</transactionType>
=C2=A0 =C2=A0 <amount&g=t;5</amount>
=C2=A0 =C2=A0 <payment>
=C2=A0 =C2=A0 =C2=A0= <creditCard>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 <cardNumber>542400=0000000015</cardNumber>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 <expiration=Date>2020-12</expirationDate>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 <c=ardCode>999</cardCode>
=C2=A0 =C2=A0 =C2=A0 </creditCard>=
=C2=A0 =C2=A0 </payment>
=C2=A0 =C2=A0 <order>
=C2=A0= =C2=A0 =C2=A0<invoiceNumber>INV-12345448</invoiceNumber>
==C2=A0 =C2=A0 =C2=A0<description>Product Description</description&=gt;
=C2=A0 =C2=A0 </order>
=C2=A0 =C2=A0 <lineItems>
==C2=A0 =C2=A0 =C2=A0 <lineItem>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 <it=emId>1</itemId>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 <name>vase<=;/name>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 <description>Cannes logo 5K=P3u95bQpv </description>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 <quantity&=gt;18</quantity>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 <unitPrice>45.0=0</unitPrice>
=C2=A0 =C2=A0 =C2=A0 </lineItem>
=C2=A0 =C2==A0 </lineItems>
=C2=A0 =C2=A0 <tax>
=C2=A0 =C2=A0 =C2=A0= <amount>4.26</amount>
=C2=A0 =C2=A0 =C2=A0 <name>leve=l2 tax name</name>
=C2=A0 =C2=A0 =C2=A0 <description>level2 =tax</description>
=C2=A0 =C2=A0 </tax>
=C2=A0 =C2=A0 <=duty>
=C2=A0 =C2=A0 =C2=A0 <amount>8.55</amount>
=C2==A0 =C2=A0 =C2=A0 <name>duty name</name>
=C2=A0 =C2=A0 =C2==A0 <description>duty description</description>
=C2=A0 =C2==A0 </duty>
=C2=A0 =C2=A0 <shipping>
=C2=A0 =C2=A0 =C2=A0= <amount>4.26</amount>
=C2=A0 =C2=A0 =C2=A0 <name>leve=l2 tax name</name>
=C2=A0 =C2=A0 =C2=A0 <description>level2 =tax</description>
=C2=A0 =C2=A0 </shipping>
=C2=A0 =C2=A0= <poNumber>456654</poNumber>
=C2=A0 =C2=A0 <customer><=br>=C2=A0 =C2=A0 =C2=A0 <id>99999456654</id>
=C2=A0 =C2=A0 &=lt;/customer>
=C2=A0 =C2=A0 <billTo>
=C2=A0 =C2=A0 =C2=A0 &l=t;firstName>Ellen</firstName>
=C2=A0 =C2=A0 =C2=A0 <lastName=>Johnson</lastName>
=C2=A0 =C2=A0 =C2=A0 <company>Souveni=ropolis</company>
=C2=A0 =C2=A0 =C2=A0 <address>14 Main Stre=et</address>
=C2=A0 =C2=A0 =C2=A0 <city>Pecan Springs</ci=ty>
=C2=A0 =C2=A0 =C2=A0 <state>TX</state>
=C2=A0 =C2==A0 =C2=A0 <zip>44628</zip>
=C2=A0 =C2=A0 =C2=A0 <country=>USA</country>
=C2=A0 =C2=A0 </billTo>
=C2=A0 =C2=A0 &=lt;shipTo>
=C2=A0 =C2=A0 =C2=A0 <firstName>China</firstName&=gt;
=C2=A0 =C2=A0 =C2=A0 <lastName>Bayles</lastName>
=C2==A0 =C2=A0 =C2=A0 <company>Thyme for Tea</company>
=C2=A0 ==C2=A0 =C2=A0 <address>12 Main Street</address>
=C2=A0 =C2==A0 =C2=A0 <city>Pecan Springs</city>
=C2=A0 =C2=A0 =C2=A0 &=lt;state>TX</state>
=C2=A0 =C2=A0 =C2=A0 <zip>44628</z=ip>
=C2=A0 =C2=A0 =C2=A0 <country>USA</country>
=C2=A0= =C2=A0 </shipTo>
=C2=A0 =C2=A0 <customerIP>192.168.1.1</=customerIP>
=C2=A0 =C2=A0 <userFields>
=C2=A0 =C2=A0 =C2=A0 =<userField>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 <name>MerchantDefine=dFieldName1</name>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 <value>Mercha=ntDefinedFieldValue1</value>
=C2=A0 =C2=A0 =C2=A0 </userField&g=t;
=C2=A0 =C2=A0 =C2=A0 <userField>
=C2=A0 =C2=A0 =C2=A0 =C2=A0= <name>favorite_color</name>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 <=;value>blue</value>
=C2=A0 =C2=A0 =C2=A0 </userField>
==C2=A0 =C2=A0 </userFields>
=C2=A0 </transactionRequest>
=</createTransactionRequest>[/text]
[text]response=3D[tcpco=nnect host=3D
apitest.authorize.net=&port=3D443&ssl=3DT][!]
[/!][tcpsend]POST /xml/v1/request.ap=i HTTP/1.0[UnURL]%0D%0A[/UnURL][!]
[/!]Host: apitest.authorize.net:443[U=nURL]%0D%0A[/UnURL][!]
[/!]User-Agent: StoreBuilder[UnURL]%0D%0A[/UnURL]=[!]
[/!]Content-type: application/x-www-form-urlencoded[UnURL]%0D%0A[/Un=URL][!]
[/!]Content-length: [CountChars][content][/CountChars][UnURL]%0D=%0A[/UnURL][!]
[/!][content][UnURL]%0D%0A[/UnURL][!]
[/!][/TCPSend][/=tcpconnect][/text]
[response]
++++++++++++++++=++++++++++++++++++++++++++++++++++++
Not sure if anyone has a=n easier way to parse out the XML data and this is an example or how I do i=t on a google GEO TCPConnection....=C2=A0
[text]BE=FORE=3D[countchars][response][/countchars][/text]
[text]PRE=3D[conve=rtwords table=3Daddr][response][/convertwords][/text]
[text]AFTER=3D=[countchars][PRE][/countchars][/text]
[text]END=3D[FindString source==3D[PRE]&find=3D</result>][/text]
[text]THEFILE=3D[getchar=s start=3D0&end=3D[math][END]+10[/math]][PRE][/getchars][/text]
=[text]cords=3D[THEFILE][/text]
[text]STATUS=3D[Middle StartAfter=3D&=lt;status>&EndBefore=3D</status>][cords][/Middle][/text]
[text]TYPEPRE=3D[Middle StartAfter=3D<type>&EndBefore=3D<for=matted_address>][cords][/Middle][/text]
[Showif [TYPEPRE]^</type&g=t;][text]TYPEPRE=3D[getchars start=3D0&EndBefore=3D</type>][TYPEP=RE][/getchars][/text][/Showif]
[text]G_TYPE=3D[getchars start=3D0&am=p;End=3D[math][countchars][TYPEPRE][/countchars]-8[/math]][TYPEPRE][/getcha=rs][/text]
[Showif [STATUS]=3Dok]
[text]components=3D[Middle =StartAfter=3D</formatted_address>&EndBefore=3D<geometry>][c=ords][/Middle][/text]
[text]componentsEND=3D[countchars][components][/co=untchars][/text]
[text]Test1=3D[FindString source=3D[components]&=;find=3D<address_component>][/text]
[text]test2=3D[FindString =source=3D[getchars start=3D[math][Test1]+22[/math]&end=3D][components][=/getchars]&find=3D<address_component>][/text]
[text]test3==3D[FindString source=3D[getchars start=3D[math][Test1]+22+[Test2]+22[/math=]&end=3D][components][/getchars]&find=3D<address_component>][=/text]
--
Brian Harrington
Auto Gla=ss Xpress
2655 Millersport Hwy. Suite 1063
Getzville, N=Y 14068
(716) 861-2029
---------------------------------------------------------This message is sent to you because you are subscribed tothe mailing list talk@webdna.usTo unsubscribe, E-mail to: talk-leave@webdna.usarchives: http://www.webdna.us/page.dna?numero=3D55Bug Reporting: support@webdna.us--000000000000d2766a059af8aab3--.
Associated Messages, from the most recent to the oldest: