<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>CS 2007: Where is my CreditCardNumber?</title><link>http://blogs.msdn.com/nihitk/archive/2006/07/20/673273.aspx</link><description>In case you have been playing around with Payments in Commerce Server 2007 , you might have noticed and wondered about this property on the CreditCardPayment class: CreditCardNumber . No matter what you set it to, a save and reload of the Basket / PurchaseOrder</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>re: CS 2007: Where is my CreditCardNumber?</title><link>http://blogs.msdn.com/nihitk/archive/2006/07/20/673273.aspx#673515</link><pubDate>Fri, 21 Jul 2006 09:14:41 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:673515</guid><dc:creator>anizhedathitta</dc:creator><description>what is this?its find the credit card number</description></item><item><title>Commerce Server 2007: Some Great New Posts!</title><link>http://blogs.msdn.com/nihitk/archive/2006/07/20/673273.aspx#705138</link><pubDate>Fri, 18 Aug 2006 05:18:01 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:705138</guid><dc:creator>Jeff Lynch [MVP]</dc:creator><description>Now that the Commerce Server development team has shipped their flagship product, they've started to publish some great new posts about using Commerce Server 2007. If you don't already subscribe to these blogs, you really should!</description></item><item><title>re: CS 2007: Where is my CreditCardNumber?</title><link>http://blogs.msdn.com/nihitk/archive/2006/07/20/673273.aspx#2119284</link><pubDate>Fri, 13 Apr 2007 22:54:43 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:2119284</guid><dc:creator>Duwayne</dc:creator><description>&lt;p&gt;When you say &amp;quot;In the case of PurchaseOrders extend the mapping and create one from this strongly typed property to an explicit column in the CreditCardPayments table.&amp;quot; do you mean to go to OrderObjectMappings.xml and add new &amp;quot;CreditCardNumber&amp;quot; element for &amp;lt;Class Name=&amp;quot;CreditCardPayments&amp;quot;&amp;gt; and &amp;lt;Table Name=&amp;quot;CreditCardPayments&amp;quot;&amp;gt;? Is there anything else I am missing?&lt;/p&gt;
</description></item><item><title>re: CS 2007: Where is my CreditCardNumber?</title><link>http://blogs.msdn.com/nihitk/archive/2006/07/20/673273.aspx#2119706</link><pubDate>Fri, 13 Apr 2007 23:25:58 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:2119706</guid><dc:creator>nihitk</dc:creator><description>&lt;p&gt;Hi Duwayne,&lt;/p&gt;
&lt;p&gt;Yes - that is all that you should need to do. The column will need to be created in the table as well - but I am assuming you will do that by generating the SQL files using OrderMapping.exe (or you should just add the column yourself as well).&lt;/p&gt;
&lt;p&gt;Of course - you should enrypt this data and make sure you have thought through the security implications of storing this information since it is highly confidential (and that is the reason this is not provided out of the box).&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Nihit&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Nihit&lt;/p&gt;
</description></item><item><title>re: CS 2007: Where is my CreditCardNumber?</title><link>http://blogs.msdn.com/nihitk/archive/2006/07/20/673273.aspx#2120902</link><pubDate>Sat, 14 Apr 2007 01:03:02 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:2120902</guid><dc:creator>dmsy</dc:creator><description>&lt;p&gt;Nihit,&lt;/p&gt;
&lt;p&gt;Thanks for the quick reply. So far this is what I have done:&lt;/p&gt;
&lt;p&gt;In OrderObjectMappings.xml&lt;/p&gt;
&lt;p&gt;- add &amp;lt;Column Name=&amp;quot;CreditCardNumber&amp;quot; DataType=&amp;quot;nvarchar&amp;quot; Precision=&amp;quot;40&amp;quot; IsNullable=&amp;quot;true&amp;quot; /&amp;gt; in &amp;lt;Table Name=&amp;quot;CreditCardPayments&amp;quot;&amp;gt;&lt;/p&gt;
&lt;p&gt;- add &amp;lt;Property Name=&amp;quot;CreditCardNumber&amp;quot;/&amp;gt; in &amp;lt;Class Name=&amp;quot;CreditCardPayment&amp;quot;&amp;gt;&lt;/p&gt;
&lt;p&gt;- add &amp;lt;PropertyMap Property=&amp;quot;CreditCardNumber&amp;quot; Column=&amp;quot;CreditCardNumber&amp;quot; /&amp;gt; in &amp;lt;ClassTableMap Class=&amp;quot;CreditCardPayment&amp;quot; Table=&amp;quot;CreditCardPayments&amp;quot;&amp;gt;&lt;/p&gt;
&lt;p&gt;- add new column in CreditCardPayment matching the definition above.&lt;/p&gt;
&lt;p&gt;- iisreset&lt;/p&gt;
&lt;p&gt;I got an exception when calling SaveAsOrder(). I didnt do the second part for Baskets. &lt;/p&gt;
&lt;p&gt;Error in event log&lt;/p&gt;
&lt;p&gt;-------------------------------------------------&lt;/p&gt;
&lt;p&gt;Event code: 3005 &lt;/p&gt;
&lt;p&gt;Event message: An unhandled exception has occurred. &lt;/p&gt;
&lt;p&gt;Event time: 4/13/2007 2:39:58 PM &lt;/p&gt;
&lt;p&gt;Event time (UTC): 4/13/2007 9:39:58 PM &lt;/p&gt;
&lt;p&gt;Event ID: 9dc3986a941748c386c40cd97cd6d5a3 &lt;/p&gt;
&lt;p&gt;Event sequence: 12 &lt;/p&gt;
&lt;p&gt;Event occurrence: 2 &lt;/p&gt;
&lt;p&gt;Event detail code: 0 &lt;/p&gt;
&lt;p&gt;Application information: &lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;Application domain: /LM/w3svc/1/Root/DHC-1-128209738988906250 &lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;Trust level: Full &lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;Application Virtual Path: /DHC &lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;Application Path: c:\inetpub\wwwroot\DHC\ &lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;Machine name: SVCTAG-G2GJ571 &lt;/p&gt;
&lt;p&gt;Process information: &lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;Process ID: 1948 &lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;Process name: w3wp.exe &lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;Account name: SVCTAG-G2GJ571\ssRunTimeUser &lt;/p&gt;
&lt;p&gt;Exception information: &lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;Exception type: TransactionException &lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;Exception message: The operation is not valid for the state of the transaction. &lt;/p&gt;
&lt;p&gt;Request information: &lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;Request URL: &lt;a rel="nofollow" target="_new" href="http://localhost/DHC/Checkout/Checkout.aspx"&gt;http://localhost/DHC/Checkout/Checkout.aspx&lt;/a&gt; &lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;Request path: /DHC/Checkout/Checkout.aspx &lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;User host address: 127.0.0.1 &lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;User: dsy@dhccare.com &lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;Is authenticated: True &lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;Authentication Type: Forms &lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;Thread account name: SVCTAG-G2GJ571\ssRunTimeUser &lt;/p&gt;
&lt;p&gt;Thread information: &lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;Thread ID: 5 &lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;Thread account name: SVCTAG-G2GJ571\ssRunTimeUser &lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;Is impersonating: False &lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;Stack trace: &amp;nbsp; &amp;nbsp;at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData&amp;amp; msgData, Int32 type)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; at Microsoft.CommerceServer.Internal.Orders.MtsHelper.ExecuteSqlCommandDataSet(String connStr, String commandText, CommandType commandType, ArrayList sqlParameterHelpers, Int32 timeout)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; at Microsoft.CommerceServer.Runtime.Orders.OrderGroup.Save(Int32 maxInstances, String baseClassName, String tableInsertSprocName, PropertyColumnMapping[] stronglyTypedMappings, PropertyColumnMapping[] weaklyTypedMappings, DetailedSqlColumnInformation indexerColumnInfo)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; at Microsoft.CommerceServer.Runtime.Orders.Basket.Save()&lt;/p&gt;
&lt;p&gt; &amp;nbsp; at Microsoft.CommerceServer.Runtime.Orders.Basket.SaveAsOrder(ITransaction trans)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; at Microsoft.CommerceServer.Runtime.Orders.Basket.SaveAsOrder()&lt;/p&gt;
&lt;p&gt; &amp;nbsp; at Checkout_Checkout.ExecuteTransactedCheckout() in c:\Inetpub\wwwroot\DHC\Checkout\Checkout.aspx.cs:line 294&lt;/p&gt;
&lt;p&gt; &amp;nbsp; at Checkout_Checkout.bNext_Click(Object sender, EventArgs e) in c:\Inetpub\wwwroot\DHC\Checkout\Checkout.aspx.cs:line 590&lt;/p&gt;
&lt;p&gt; &amp;nbsp; at System.Web.UI.WebControls.Button.OnClick(EventArgs e)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; at System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; at System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; at System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)&lt;/p&gt;
</description></item><item><title>re: CS 2007: Where is my CreditCardNumber?</title><link>http://blogs.msdn.com/nihitk/archive/2006/07/20/673273.aspx#8961515</link><pubDate>Mon, 22 Sep 2008 22:35:25 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8961515</guid><dc:creator>Tony</dc:creator><description>&lt;p&gt;I get the same error, does anybody have a solution for this?&lt;/p&gt;
</description></item></channel></rss>