<?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 Create a Customer Profile from a Transaction with customerProfileId in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Create-a-Customer-Profile-from-a-Transaction-with/m-p/71346#M43905</link>
    <description>&lt;P&gt;Hello there,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am having trouble updating the payment profile for exsisting users using 'create_customer_profile_from_transaction' API method. I am using ruby. Based on the documentation on&amp;nbsp;&lt;A href="https://developer.authorize.net/api/reference/index.html#customer-profiles-create-a-customer-profile-from-a-transaction" target="_self"&gt;authorize.net&lt;/A&gt;&amp;nbsp;it can be accomplished by passing 'customerProfileId'. On the documentation page, it is said it needs to be a numeric string the same as transaction id. If I keep it as a numeric string:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;```&lt;/P&gt;&lt;P&gt;#&amp;lt;AuthorizeNet::API::CreateCustomerProfileFromTransactionRequest:0x00007f1b3c495620 @merchantAuthentication=nil, @refId=nil, @transId="40046569632", @customer=nil, @customerProfileId="1511207096", @defaultPaymentProfile=nil, @defaultShippingAddress=nil, @profileType=nil&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;```&lt;/P&gt;&lt;P&gt;it throws the error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;```&lt;/P&gt;&lt;P&gt;------------------------&lt;/P&gt;&lt;P&gt;#&amp;lt;NoMethodError: undefined method `to_xml' for "1511207096":String&amp;gt;&lt;/P&gt;&lt;P&gt;------------------------&lt;/P&gt;&lt;P&gt;```&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then I look into the &lt;A href="https://www.rubydoc.info/gems/authorizenet/AuthorizeNet/API/CreateCustomerProfileFromTransactionRequest" target="_self"&gt;ruby documentation&amp;nbsp;&lt;/A&gt;for this method and found out that it needs to be of type `&lt;SPAN class="const"&gt;&lt;SPAN class="object_link"&gt;&lt;A title="AuthorizeNet::API::NumericStringsType (class)" href="https://www.rubydoc.info/gems/authorizenet/AuthorizeNet/API/NumericStringsType" target="_blank" rel="noopener"&gt;NumericStringsType&lt;/A&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;`. I have updated my call using this type:&lt;/P&gt;&lt;P&gt;```&lt;/P&gt;&lt;P&gt;#&amp;lt;AuthorizeNet::API::CreateCustomerProfileFromTransactionRequest:0x00007f1b3e799bd0 @merchantAuthentication=nil, @refId=nil, @transId="40046568628", @customer=nil, @customerProfileId=#&amp;lt;AuthorizeNet::API::NumericStringsType:0x00007f1b3e799b80 @numericString=["1511207096"]&amp;gt;, @defaultPaymentProfile=nil, @defaultShippingAddress=nil, @profileType=nil&amp;gt;&lt;/P&gt;&lt;P&gt;```&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The method got executed but I got another error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;```&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;The element 'AnetApi/xml/v1/schema/AnetApiSchema.xsd:customerProfileId' cannot contain child element 'AnetApi/xml/v1/schema/AnetApiSchema.xsd:numericString' because the parent element's content model is text only.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;```&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there anything that I am missing?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you in advance&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Dmitry&lt;/P&gt;&lt;P&gt;&lt;SPAN class="const"&gt;&lt;SPAN class="object_link"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 31 Mar 2020 22:49:08 GMT</pubDate>
    <dc:creator>dsKurbatov2019</dc:creator>
    <dc:date>2020-03-31T22:49:08Z</dc:date>
    <item>
      <title>Create a Customer Profile from a Transaction with customerProfileId</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Create-a-Customer-Profile-from-a-Transaction-with/m-p/71346#M43905</link>
      <description>&lt;P&gt;Hello there,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am having trouble updating the payment profile for exsisting users using 'create_customer_profile_from_transaction' API method. I am using ruby. Based on the documentation on&amp;nbsp;&lt;A href="https://developer.authorize.net/api/reference/index.html#customer-profiles-create-a-customer-profile-from-a-transaction" target="_self"&gt;authorize.net&lt;/A&gt;&amp;nbsp;it can be accomplished by passing 'customerProfileId'. On the documentation page, it is said it needs to be a numeric string the same as transaction id. If I keep it as a numeric string:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;```&lt;/P&gt;&lt;P&gt;#&amp;lt;AuthorizeNet::API::CreateCustomerProfileFromTransactionRequest:0x00007f1b3c495620 @merchantAuthentication=nil, @refId=nil, @transId="40046569632", @customer=nil, @customerProfileId="1511207096", @defaultPaymentProfile=nil, @defaultShippingAddress=nil, @profileType=nil&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;```&lt;/P&gt;&lt;P&gt;it throws the error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;```&lt;/P&gt;&lt;P&gt;------------------------&lt;/P&gt;&lt;P&gt;#&amp;lt;NoMethodError: undefined method `to_xml' for "1511207096":String&amp;gt;&lt;/P&gt;&lt;P&gt;------------------------&lt;/P&gt;&lt;P&gt;```&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then I look into the &lt;A href="https://www.rubydoc.info/gems/authorizenet/AuthorizeNet/API/CreateCustomerProfileFromTransactionRequest" target="_self"&gt;ruby documentation&amp;nbsp;&lt;/A&gt;for this method and found out that it needs to be of type `&lt;SPAN class="const"&gt;&lt;SPAN class="object_link"&gt;&lt;A title="AuthorizeNet::API::NumericStringsType (class)" href="https://www.rubydoc.info/gems/authorizenet/AuthorizeNet/API/NumericStringsType" target="_blank" rel="noopener"&gt;NumericStringsType&lt;/A&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;`. I have updated my call using this type:&lt;/P&gt;&lt;P&gt;```&lt;/P&gt;&lt;P&gt;#&amp;lt;AuthorizeNet::API::CreateCustomerProfileFromTransactionRequest:0x00007f1b3e799bd0 @merchantAuthentication=nil, @refId=nil, @transId="40046568628", @customer=nil, @customerProfileId=#&amp;lt;AuthorizeNet::API::NumericStringsType:0x00007f1b3e799b80 @numericString=["1511207096"]&amp;gt;, @defaultPaymentProfile=nil, @defaultShippingAddress=nil, @profileType=nil&amp;gt;&lt;/P&gt;&lt;P&gt;```&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The method got executed but I got another error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;```&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;The element 'AnetApi/xml/v1/schema/AnetApiSchema.xsd:customerProfileId' cannot contain child element 'AnetApi/xml/v1/schema/AnetApiSchema.xsd:numericString' because the parent element's content model is text only.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;```&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there anything that I am missing?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you in advance&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Dmitry&lt;/P&gt;&lt;P&gt;&lt;SPAN class="const"&gt;&lt;SPAN class="object_link"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 31 Mar 2020 22:49:08 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Create-a-Customer-Profile-from-a-Transaction-with/m-p/71346#M43905</guid>
      <dc:creator>dsKurbatov2019</dc:creator>
      <dc:date>2020-03-31T22:49:08Z</dc:date>
    </item>
  </channel>
</rss>

