<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="http://syndication.webwiz.co.uk/rss_namespace/">
 <channel>
  <title>SalesCart Forums : Changing Sessi&#111;n(&quot;TxtMode&quot;)</title>
  <link>http://forum.salescart.com/forum/</link>
  <description><![CDATA[This is an XML content feed of; SalesCart Forums : SalesCart Standard / PRO / SQL : Changing Sessi&#111;n(&quot;TxtMode&quot;)]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 13 May 2026 06:52:52 +0000</pubDate>
  <lastBuildDate>Fri, 10 Dec 2004 13:00:31 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 11.04</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>forum.salescart.com/forum/RSS_post_feed.asp?TID=255</WebWizForums:feedURL>
  <image>
   <title><![CDATA[SalesCart Forums]]></title>
   <url>http://forum.salescart.com/forum/forum_images/web_wiz_forums.png</url>
   <link>http://forum.salescart.com/forum/</link>
  </image>
  <item>
   <title><![CDATA[Changing Sessi&#111;n(&quot;TxtMode&quot;) : Found my issue:  OLD WAY   St...]]></title>
   <link>http://forum.salescart.com/forum/forum_posts.asp?TID=255&amp;PID=912&amp;title=changing-sessiontxtmode#912</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.salescart.com/forum/member_profile.asp?PF=6">lleemon</a><br /><strong>Subject:</strong> 255<br /><strong>Posted:</strong> December/10/04 at 1:00pm<br /><br />Found my issue:<br /><br />OLD WAY<br /><table width="99%"><tr><td><pre class="BBcode"><br />StrComp(rsAddressInfo.Fields("Address"), rsAdderssInfo.Fields("shipaddress"), 1)<br /></pre></td></tr></table><br /><br />NEW WAY<br /><table width="99%"><tr><td><pre class="BBcode"><br />StrComp(rsAddressInfo.Fields("Address"), rsAddressInfo.Fields("shipaddress"), 1)<br /></pre></td></tr></table><br />]]>
   </description>
   <pubDate>Fri, 10 Dec 2004 13:00:31 +0000</pubDate>
   <guid isPermaLink="true">http://forum.salescart.com/forum/forum_posts.asp?TID=255&amp;PID=912&amp;title=changing-sessiontxtmode#912</guid>
  </item> 
  <item>
   <title><![CDATA[Changing Sessi&#111;n(&quot;TxtMode&quot;) : Thanks for the quick reponse.  Reason...]]></title>
   <link>http://forum.salescart.com/forum/forum_posts.asp?TID=255&amp;PID=908&amp;title=changing-sessiontxtmode#908</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.salescart.com/forum/member_profile.asp?PF=6">lleemon</a><br /><strong>Subject:</strong> 255<br /><strong>Posted:</strong> December/10/04 at 10:17am<br /><br />Thanks for the quick reponse.<br /><br />Reason we want to do this is because have had some issues recently with customers that have had different billto info vs shipto info.  Sometimes it takes us a few days to get to customers that fall into this category and we do not want to tie up their money if we still have not processed the order(s).<br /><br />This allows us to authorize the transaction but not take the money out of the account until we confirm a few things.  <br /><br />Maybe the standard for other ecommerce business' is to do AUTH_ONLY but that becomes a lot of work to go back into and capture the transaction manually.  With AUTH_CAPTURE it's automatic in the batch each night.<br /><br />Maybe others have suggestions on ways of doing this.  We would be delighted to hear your methods.<br /><br />Hope this helps in understanding.<br />]]>
   </description>
   <pubDate>Fri, 10 Dec 2004 10:17:49 +0000</pubDate>
   <guid isPermaLink="true">http://forum.salescart.com/forum/forum_posts.asp?TID=255&amp;PID=908&amp;title=changing-sessiontxtmode#908</guid>
  </item> 
  <item>
   <title><![CDATA[Changing Sessi&#111;n(&quot;TxtMode&quot;) :   lleemon wrote:Will, Thanks...]]></title>
   <link>http://forum.salescart.com/forum/forum_posts.asp?TID=255&amp;PID=905&amp;title=changing-sessiontxtmode#905</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.salescart.com/forum/member_profile.asp?PF=4">Techno Geek</a><br /><strong>Subject:</strong> 255<br /><strong>Posted:</strong> December/10/04 at 10:09am<br /><br /> <table width="99%"><tr><td class="BBquote"><img src="forum_images/quote_box.png" title="Originally posted by lleemon" alt="Originally posted by lleemon" style="vertical-align: text-bottom;" /> <strong>lleemon wrote:</strong><br /><br />Will,<br />Thanks for responding to the post.  <br /><br />I know it can handle the following if you provide in TP.asa (Other types: AUTH_ONLY, PRIOR_AUTH_CAPTURE, CREDIT, CAPTURE_ONLY, VOID)<br /><br />The issue is changing the session variable right before you call the class to send to Authorize.<br /><br />Working on some code at the moment that may post later.  Just right before the class is called I will be calling the database (joining payment.Orderid = customer.Orderid) and checking to see if Address is same as shipaddress (StrComp(payment.Address, customer.shipaddress) = 0) and if not then changing Session("TxtMode") = "AUTH_ONLY"<br /><br /></td></tr></table> <br /><br />I'm not sure if I follow. Why are you doing it this way?]]>
   </description>
   <pubDate>Fri, 10 Dec 2004 10:09:09 +0000</pubDate>
   <guid isPermaLink="true">http://forum.salescart.com/forum/forum_posts.asp?TID=255&amp;PID=905&amp;title=changing-sessiontxtmode#905</guid>
  </item> 
  <item>
   <title><![CDATA[Changing Sessi&#111;n(&quot;TxtMode&quot;) : I added the following code to...]]></title>
   <link>http://forum.salescart.com/forum/forum_posts.asp?TID=255&amp;PID=904&amp;title=changing-sessiontxtmode#904</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.salescart.com/forum/member_profile.asp?PF=6">lleemon</a><br /><strong>Subject:</strong> 255<br /><strong>Posted:</strong> December/10/04 at 10:03am<br /><br />I added the following code to the receipt1.asp page right before calling the class.&nbsp;&nbsp;&nbsp;The page does work but all trans are coming through as AUTH_ONLY even if adderss' are the same.<br /><br />Any thoughts from anyone on my code?<br /><br /><table width="99%"><tr><td><pre class="BBcode"><br />'Query two tables (payment, customer) and see if BillTo and ShipTo address' are the same<br />'if so set Session ("TxtMode") = same as it originally is else set Session ("TxtMode") = "AUTH_ONLY"<br />Dim adoCon2, rsAddressInfo, sSQL2, sOrgMode<br /><br />sOrgMode = Session("TxtMode")<br /><br />sSQL2 = "SELECT c.Orderid, c.shipaddress, p.Address "<br />sSQL2 = sSQL2 & "FROM customer c, payment p "<br />sSQL2 = sSQL2 & "WHERE c.Orderid = p.Orderid "<br />sSQL2 = sSQL2 & "AND c.Orderid=" & order & "; "<br /><br />Set adoCon2 = Server.CreateObject("ADODB.Connection")<br />adoCon2.Open Session("ConnectionString")&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />Set rsAddressInfo = Server.CreateObject("ADODB.Recordset")<br />rsAddressInfo.CursorType = 1<br />rsAddressInfo.LockType = 3<br />rsAddressInfo.Open sSQL2, adoCon2<br />If rsAddressInfo.EOF = True and rsAddressInfo.EOF = True Then<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Session("TxtMode") = sOrgMode<br />Else<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'StrComp(string1, string2, compare) compare 1 is vbTextCompare<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;If StrComp(rsAddressInfo.Fields("Address"), rsAdderssInfo.Fields("shipaddress"), 1) &lt;&gt; 0 Then<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 'Address and shipaddress do not match so change to AUTH_ONLY<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Session("TxtMode") = "AUTH_ONLY"<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Else<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 'Address and shipaddress match so keep current original mode<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Session("TxtMode") = sOrgMode<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;End if<br />End if<br /><br />'Reset recordset server objects&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />rsAddressInfo.Close<br />Set rsAddressInfo = Nothing<br /><br />'Reset connection server objects<br />adoCon2.Close<br />Set adoCon2 = Nothing<br /><br /></pre></td></tr></table>]]>
   </description>
   <pubDate>Fri, 10 Dec 2004 10:03:23 +0000</pubDate>
   <guid isPermaLink="true">http://forum.salescart.com/forum/forum_posts.asp?TID=255&amp;PID=904&amp;title=changing-sessiontxtmode#904</guid>
  </item> 
  <item>
   <title><![CDATA[Changing Sessi&#111;n(&quot;TxtMode&quot;) : Will, Thanks for responding to...]]></title>
   <link>http://forum.salescart.com/forum/forum_posts.asp?TID=255&amp;PID=901&amp;title=changing-sessiontxtmode#901</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.salescart.com/forum/member_profile.asp?PF=6">lleemon</a><br /><strong>Subject:</strong> 255<br /><strong>Posted:</strong> December/08/04 at 9:27am<br /><br />Will,<br />Thanks for responding to the post.  <br /><br />I know it can handle the following if you provide in TP.asa (Other types: AUTH_ONLY, PRIOR_AUTH_CAPTURE, CREDIT, CAPTURE_ONLY, VOID)<br /><br />The issue is changing the session variable right before you call the class to send to Authorize.<br /><br />Working on some code at the moment that may post later.  Just right before the class is called I will be calling the database (joining payment.Orderid = customer.Orderid) and checking to see if Address is same as shipaddress (StrComp(payment.Address, customer.shipaddress) = 0) and if not then changing Session("TxtMode") = "AUTH_ONLY"<br /><br />]]>
   </description>
   <pubDate>Wed, 08 Dec 2004 09:27:50 +0000</pubDate>
   <guid isPermaLink="true">http://forum.salescart.com/forum/forum_posts.asp?TID=255&amp;PID=901&amp;title=changing-sessiontxtmode#901</guid>
  </item> 
  <item>
   <title><![CDATA[Changing Sessi&#111;n(&quot;TxtMode&quot;) : I show the function for Authorize.net...]]></title>
   <link>http://forum.salescart.com/forum/forum_posts.asp?TID=255&amp;PID=900&amp;title=changing-sessiontxtmode#900</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.salescart.com/forum/member_profile.asp?PF=4">Techno Geek</a><br /><strong>Subject:</strong> 255<br /><strong>Posted:</strong> December/08/04 at 9:18am<br /><br />I show the function for Authorize.net can handle both AUTH_CAPTURE & AUTH_ONLY.]]>
   </description>
   <pubDate>Wed, 08 Dec 2004 09:18:24 +0000</pubDate>
   <guid isPermaLink="true">http://forum.salescart.com/forum/forum_posts.asp?TID=255&amp;PID=900&amp;title=changing-sessiontxtmode#900</guid>
  </item> 
  <item>
   <title><![CDATA[Changing Sessi&#111;n(&quot;TxtMode&quot;) : Has anyone every wrote code to...]]></title>
   <link>http://forum.salescart.com/forum/forum_posts.asp?TID=255&amp;PID=897&amp;title=changing-sessiontxtmode#897</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.salescart.com/forum/member_profile.asp?PF=6">lleemon</a><br /><strong>Subject:</strong> 255<br /><strong>Posted:</strong> December/07/04 at 3:28pm<br /><br />Has anyone every wrote code to change the Session("TxtMode") from AUTH_CAPTURE to AUTH_ONLY during checkout?<br /><br />Currently in our TP.asa file we have our Session("TxtMode") = AUTH_CAPTURE.  For our customers that have different billing then shipping we want to set the Authorize.net Mode to Authorize Only and not capture so we would need to set Session("TxtMode") = AUTH_ONLY.<br /><br />I see in receipt1.asp we call CTp.asp Sub setVars() Session("TxtMode") is set to TMode which is what is sent to Authorize.net.  Would we just do our address compare before calling class CTP in receipt1.asp and if different set Session ("TxtMode") = 'AUTH_ONLY'?  <br /><br />Thanks for any advice.]]>
   </description>
   <pubDate>Tue, 07 Dec 2004 15:28:47 +0000</pubDate>
   <guid isPermaLink="true">http://forum.salescart.com/forum/forum_posts.asp?TID=255&amp;PID=897&amp;title=changing-sessiontxtmode#897</guid>
  </item> 
 </channel>
</rss>