On 30 Dec 2019, at 23:48, talk@webdna.us wrote: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 =webDNA website I could not find anything recent (like 20 years ago)... =hard to believe with Webcatalog and eCommerce they never got it quite =together...Note: "<refId>" needs to be changed to =get "successful" transactions after you run it...[text]content=3D---------------------------------------------------------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
<createTransactionRequest =xmlns=3D"AnetApi/xml/v1/schema/AnetApiSchema.xsd">
= <merchantAuthentication>
=<name>[ YOUR API LOGIN P3u95bQpv]</name>
<transactionKey>[ YOUR TRANSACTION KEY =HZ32z3fP4hTG2]</transactionKey>
=</merchantAuthentication>
=<refId>123444856</refId>
=<transactionRequest>
=<transactionType>authCaptureTransaction</transactionType>
<amount>5</amount>
<payment>
= <creditCard>
=<cardNumber>5424000000000015</cardNumber>
= =<expirationDate>2020-12</expirationDate>
= <cardCode>999</cardCode>
</creditCard>
= </payment>
<order>
= <invoiceNumber>INV-12345448</invoiceNumber>
<description>Product =Description</description>
=</order>
<lineItems>
<lineItem>
= <itemId>1</itemId>
= <name>vase</name>
= <description>Cannes logo 5KP3u95bQpv =</description>
=<quantity>18</quantity>
= <unitPrice>45.00</unitPrice>
= </lineItem>
=</lineItems>
<tax>
<amount>4.26</amount>
<name>level2 tax =name</name>
=<description>level2 tax</description>
= </tax>
<duty>
<amount>8.55</amount>
<name>duty name</name>
<description>duty =description</description>
=</duty>
<shipping>
<amount>4.26</amount>
<name>level2 tax =name</name>
=<description>level2 tax</description>
= </shipping>
=<poNumber>456654</poNumber>
=<customer>
=<id>99999456654</id>
=</customer>
<billTo>
=<firstName>Ellen</firstName>
= <lastName>Johnson</lastName>
= <company>Souveniropolis</company>
<address>14 Main =Street</address>
=<city>Pecan Springs</city>
= <state>TX</state>
=<zip>44628</zip>
=<country>USA</country>
=</billTo>
<shipTo>
=<firstName>China</firstName>
= <lastName>Bayles</lastName>
= <company>Thyme for Tea</company>
<address>12 Main =Street</address>
=<city>Pecan Springs</city>
= <state>TX</state>
=<zip>44628</zip>
=<country>USA</country>
=</shipTo>
=<customerIP>192.168.1.1</customerIP>
= <userFields>
=<userField>
=<name>MerchantDefinedFieldName1</name>
= =<value>MerchantDefinedFieldValue1</value>
= </userField>
=<userField>
=<name>favorite_color</name>
= <value>blue</value>
= </userField>
=</userFields>
</transactionRequest>
</createTransactionRequest>[/text]
[text]response=3D[tcpconnect host=3Dapitest.authorize.net&port=3D443&ssl=3DT][!]
[/!][tcpsend]POST /xml/v1/request.api =HTTP/1.0[UnURL]%0D%0A[/UnURL][!]
[/!]Host: apitest.authorize.net:443[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][!]
[/!][content][UnURL]%0D%0A[/UnURL][!]
[/!][/TCPSend][/tcpconnect][/text]
[response]++++++++++++++++++++++++++++++++++++++++++++++++++++Not sure if anyone has an easier way to =parse out the XML data and this is an example or how I do it on a google =GEO TCPConnection....[text]BEFORE=3D[countchars][response][/countchars][/text]
[text]PRE=3D[convertwords =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[getchars =start=3D0&end=3D[math][END]+10[/math]][PRE][/getchars][/text]
[text]cords=3D[THEFILE][/text]
[text]STATUS=3D[Middle =StartAfter=3D<status>&EndBefore=3D</status>][cords][/Middl=e][/text]
[text]TYPEPRE=3D[Middle =StartAfter=3D<type>&EndBefore=3D<formatted_address>][cords=][/Middle][/text]
[Showif =[TYPEPRE]^</type>][text]TYPEPRE=3D[getchars =start=3D0&EndBefore=3D</type>][TYPEPRE][/getchars][/text][/Showi=f]
[text]G_TYPE=3D[getchars =start=3D0&End=3D[math][countchars][TYPEPRE][/countchars]-8[/math]][TYP=EPRE][/getchars][/text]
[Showif =[STATUS]=3Dok]
[text]components=3D[Middle =StartAfter=3D</formatted_address>&EndBefore=3D<geometry>][=cords][/Middle][/text]
[text]componentsEND=3D[countchars][components][/countchars][/te=xt]
[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]&fin=d=3D<address_component>][/text]
[text]test3=3D[FindString source=3D[getchars =start=3D[math][Test1]+22+[Test2]+22[/math]&end=3D][components][/getcha=rs]&find=3D<address_component>][/text]--Brian HarringtonAuto Glass =Xpress2655 Millersport Hwy. Suite 1063Getzville, NY 14068(716) =861-2029
On 30 Dec 2019, at 23:48, talk@webdna.us wrote: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 =webDNA website I could not find anything recent (like 20 years ago)... =hard to believe with Webcatalog and eCommerce they never got it quite =together...Note: "<refId>" needs to be changed to =get "successful" transactions after you run it...[text]content=3D---------------------------------------------------------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
<createTransactionRequest =xmlns=3D"AnetApi/xml/v1/schema/AnetApiSchema.xsd">
= <merchantAuthentication>
=<name>[ YOUR API LOGIN P3u95bQpv]</name>
<transactionKey>[ YOUR TRANSACTION KEY =HZ32z3fP4hTG2]</transactionKey>
=</merchantAuthentication>
=<refId>123444856</refId>
=<transactionRequest>
=<transactionType>authCaptureTransaction</transactionType>
<amount>5</amount>
<payment>
= <creditCard>
=<cardNumber>5424000000000015</cardNumber>
= =<expirationDate>2020-12</expirationDate>
= <cardCode>999</cardCode>
</creditCard>
= </payment>
<order>
= <invoiceNumber>INV-12345448</invoiceNumber>
<description>Product =Description</description>
=</order>
<lineItems>
<lineItem>
= <itemId>1</itemId>
= <name>vase</name>
= <description>Cannes logo 5KP3u95bQpv =</description>
=<quantity>18</quantity>
= <unitPrice>45.00</unitPrice>
= </lineItem>
=</lineItems>
<tax>
<amount>4.26</amount>
<name>level2 tax =name</name>
=<description>level2 tax</description>
= </tax>
<duty>
<amount>8.55</amount>
<name>duty name</name>
<description>duty =description</description>
=</duty>
<shipping>
<amount>4.26</amount>
<name>level2 tax =name</name>
=<description>level2 tax</description>
= </shipping>
=<poNumber>456654</poNumber>
=<customer>
=<id>99999456654</id>
=</customer>
<billTo>
=<firstName>Ellen</firstName>
= <lastName>Johnson</lastName>
= <company>Souveniropolis</company>
<address>14 Main =Street</address>
=<city>Pecan Springs</city>
= <state>TX</state>
=<zip>44628</zip>
=<country>USA</country>
=</billTo>
<shipTo>
=<firstName>China</firstName>
= <lastName>Bayles</lastName>
= <company>Thyme for Tea</company>
<address>12 Main =Street</address>
=<city>Pecan Springs</city>
= <state>TX</state>
=<zip>44628</zip>
=<country>USA</country>
=</shipTo>
=<customerIP>192.168.1.1</customerIP>
= <userFields>
=<userField>
=<name>MerchantDefinedFieldName1</name>
= =<value>MerchantDefinedFieldValue1</value>
= </userField>
=<userField>
=<name>favorite_color</name>
= <value>blue</value>
= </userField>
=</userFields>
</transactionRequest>
</createTransactionRequest>[/text]
[text]response=3D[tcpconnect host=3Dapitest.authorize.net&port=3D443&ssl=3DT][!]
[/!][tcpsend]POST /xml/v1/request.api =HTTP/1.0[unurl]%0D%0A[/UnURL][!]
[/!]Host: apitest.authorize.net:443[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][!]
[/!][content][unurl]%0D%0A[/UnURL][!]
[/!][/TCPSend][/tcpconnect][/text]
[response]++++++++++++++++++++++++++++++++++++++++++++++++++++Not sure if anyone has an easier way to =parse out the XML data and this is an example or how I do it on a google =GEO TCPConnection....[text]BEFORE=3D[countchars][response][/countchars][/text]
[text]PRE=3D[convertwords =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[getchars =start=3D0&end=3D[math][END]+10[/math]][PRE][/getchars][/text]
[text]cords=3D[THEFILE][/text]
[text]STATUS=3D[Middle =StartAfter=3D<status>&EndBefore=3D</status>][cords][/Middl=e][/text]
[text]TYPEPRE=3D[Middle =StartAfter=3D<type>&EndBefore=3D<formatted_address>][cords=][/Middle][/text]
[Showif =[TYPEPRE]^</type>][text]TYPEPRE=3D[getchars =start=3D0&EndBefore=3D</type>][TYPEPRE][/getchars][/text][/Showi=f]
[text]G_TYPE=3D[getchars =start=3D0&End=3D[math][countchars][TYPEPRE][/countchars]-8[/math]][TYP=EPRE][/getchars][/text]
[Showif =[STATUS]=3Dok]
[text]components=3D[Middle =StartAfter=3D</formatted_address>&EndBefore=3D<geometry>][=cords][/Middle][/text]
[text]componentsEND=3D[countchars][components][/countchars][/te=xt]
[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]&fin=d=3D<address_component>][/text]
[text]test3=3D[FindString source=3D[getchars =start=3D[math][Test1]+22+[Test2]+22[/math]&end=3D][components][/getcha=rs]&find=3D<address_component>][/text]--Brian HarringtonAuto Glass =Xpress2655 Millersport Hwy. Suite 1063Getzville, NY 14068(716) =861-2029
DOWNLOAD WEBDNA NOW!
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...