<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Problem to create profile and getting message &amp;quot;credit card number is required﻿&amp;quot; in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Problem-to-create-profile-and-getting-message-quot-credit-card/m-p/17080#M9580</link>
    <description>&lt;P&gt;The problem is likely not in the section of code you pasted, but rather in the interface that actually collects the number. Maybe you're referencing the wrong field? Have you tried printing out the number just before it gets submitted to Authorize.net to make sure it's actually there?&lt;/P&gt;</description>
    <pubDate>Tue, 13 Sep 2011 17:34:02 GMT</pubDate>
    <dc:creator>TJPride</dc:creator>
    <dc:date>2011-09-13T17:34:02Z</dc:date>
    <item>
      <title>Problem to create profile and getting message "credit card number is required﻿"</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Problem-to-create-profile-and-getting-message-quot-credit-card/m-p/17070#M9575</link>
      <description>&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;We don't know the &lt;SPAN style="font-size: 11pt; color: #1f497d;"&gt;reason for failure in creating payment profiles&lt;/SPAN&gt;﻿. If creating Payment profile fails then it also fails at the time of transaction and throws the exception&lt;STRONG&gt; "&lt;SPAN&gt;credit card number is required&lt;/SPAN&gt;﻿"﻿&lt;/STRONG&gt;.&amp;nbsp; This problem is only for our one client, because we have implemented same code for many clients. Please suggest.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;&lt;U&gt;&lt;STRONG&gt;Code for creating profile:&lt;/STRONG&gt;&lt;/U&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;&lt;STRONG&gt;AnetApi.Schema.createCustomerProfileRequest request = new AnetApi.Schema.createCustomerProfileRequest();&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;&lt;STRONG&gt;PopulateMerchantAuthentication((AnetApi.Schema.ANetApiRequest)request);&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;&lt;STRONG&gt;AnetApi.Schema.customerProfileType[] m_new_cust = new AnetApi.Schema.customerProfileType[1];&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;&lt;STRONG&gt;m_new_cust[0] = new AnetApi.Schema.customerProfileType();&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;&lt;STRONG&gt;m_new_cust[0].email = dsProfile.Tables[0].Rows[0]["Email_id1"].ToString();&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;&lt;STRONG&gt;request.profile = m_new_cust[0];&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;&lt;STRONG&gt;request.validationMode = validationModeEnum.liveMode;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;&lt;STRONG&gt;System.Xml.XmlDocument response_xml = null;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;&lt;STRONG&gt;bool bResult = XmlAPIUtilities.PostRequest(request, out response_xml);&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;&lt;STRONG&gt;object response = null;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;&lt;STRONG&gt;AnetApi.Schema.createCustomerProfileResponse api_response = null;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;&lt;STRONG&gt;if (bResult) bResult = XmlAPIUtilities.ProcessXmlResponse(response_xml, out response);&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;&lt;STRONG&gt;if (!(response is AnetApi.Schema.createCustomerProfileResponse))&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;&lt;STRONG&gt;{&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return out_id;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;&lt;STRONG&gt;}&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;&lt;STRONG&gt;if (bResult) api_response = (AnetApi.Schema.createCustomerProfileResponse)response;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;&lt;STRONG&gt; out_id = Convert.ToInt64(api_response.customerProfileId);&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Sep 2011 13:22:09 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Problem-to-create-profile-and-getting-message-quot-credit-card/m-p/17070#M9575</guid>
      <dc:creator>emedicalfusion</dc:creator>
      <dc:date>2011-09-13T13:22:09Z</dc:date>
    </item>
    <item>
      <title>Re: Problem to create profile and getting message "credit card number is required﻿"</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Problem-to-create-profile-and-getting-message-quot-credit-card/m-p/17080#M9580</link>
      <description>&lt;P&gt;The problem is likely not in the section of code you pasted, but rather in the interface that actually collects the number. Maybe you're referencing the wrong field? Have you tried printing out the number just before it gets submitted to Authorize.net to make sure it's actually there?&lt;/P&gt;</description>
      <pubDate>Tue, 13 Sep 2011 17:34:02 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Problem-to-create-profile-and-getting-message-quot-credit-card/m-p/17080#M9580</guid>
      <dc:creator>TJPride</dc:creator>
      <dc:date>2011-09-13T17:34:02Z</dc:date>
    </item>
  </channel>
</rss>

