<?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: Collect card info once; charge, create customer profile, payment profile, and subscription via . in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Collect-card-info-once-charge-create-customer-profile-payment/m-p/62584#M36872</link>
    <description>&lt;P&gt;If you change the order of the nodes in the XML, you can generate the same error that I receive in my controller when I call .Execute():&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&amp;lt;createCustomerProfileRequest xmlns="AnetApi/xml/v1/schema/AnetApiSchema.xsd"&amp;gt; 
&amp;lt;merchantAuthentication&amp;gt;
&amp;lt;name&amp;gt;XXXXXXXXXX&amp;lt;/name&amp;gt;
&amp;lt;transactionKey&amp;gt;XXXXXXXXXXXXXXXX&amp;lt;/transactionKey&amp;gt;
&amp;lt;/merchantAuthentication&amp;gt;
&amp;lt;profile&amp;gt;
&amp;lt;description&amp;gt;Profile description here&amp;lt;/description&amp;gt;
&amp;lt;merchantCustomerId&amp;gt;Merchant_Customer_ID&amp;lt;/merchantCustomerId&amp;gt;
&amp;lt;email&amp;gt;customer-profile-email@here.com&amp;lt;/email&amp;gt;
&amp;lt;/profile&amp;gt;
&amp;lt;validationMode&amp;gt;none&amp;lt;/validationMode&amp;gt;
&amp;lt;/createCustomerProfileRequest&amp;gt;&lt;/PRE&gt;&lt;P&gt;will generate this error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;E00003 : The element 'profile' in namespace 'AnetApi/xml/v1/schema/AnetApiSchema.xsd' has invalid child element 'merchantCustomerId' in namespace 'AnetApi/xml/v1/schema/AnetApiSchema.xsd'. List of possible elements expected: 'email, paymentProfiles, shipToList' in namespace 'AnetApi/xml/v1/schema/AnetApiSchema.xsd'.&lt;/PRE&gt;&lt;P&gt;Be aware that I'm using the .NET SDK and therefore have no control over the order of the XML generated by the SDK.&lt;/P&gt;</description>
    <pubDate>Tue, 10 Apr 2018 13:31:25 GMT</pubDate>
    <dc:creator>jkshay</dc:creator>
    <dc:date>2018-04-10T13:31:25Z</dc:date>
    <item>
      <title>Collect card info once; charge, create customer profile, payment profile, and subscription via .NET</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Collect-card-info-once-charge-create-customer-profile-payment/m-p/62572#M36862</link>
      <description>&lt;P&gt;I'm trying to integrate customer payments via the Authorize.Net .NET SDK. My data flow process is as follows:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When customer converts from free trial to paid subscription mode, I want to:&lt;/P&gt;&lt;P&gt;A. Collect payment information (credit card numbers, addresses, billing names, etc).&lt;/P&gt;&lt;P&gt;B. Via Accept.JS, convert the payment information to a nonce.&lt;/P&gt;&lt;P&gt;C. Use the nonce to charge the customer the first month's subscription rate.&lt;/P&gt;&lt;P&gt;D. Use the success of the charge to determine if I proceed. If successful,&lt;/P&gt;&lt;P&gt;E. Use the transaction ID to create a CIM customer profile, a customer payment profile, and an ARB.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I pass a billTo object of type customerAddressType to the transactionRequestType request object. If I define a first name, last name, or company name on this address, then the call to controller.Executes shows an error that "E00003:The element 'billTo' in namespace 'AnetApi/xml/v1/schema/AnetApiSchema.xsd' has invalid child element 'firstName' in namespace 'AnetApi/xml/v1/schema/AnetApiSchema.xsd'.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Removing the firstName value from my customerAddressType subsequently yields similar errors regarding "lastName" and "company".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I remove firstName, lastName, and company from my address object, then I'm allowed to successfully create a charge to this card.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, when I follow it up with a request to CreateCustomerProfileFromTransaction, the created payment profile has no name information associated with it. A quick check in the CIM confirms this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This presents a problem when I attempt to create the subscription, as the payment profile cannot be used as the billTo address is missing firstName.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is is possible to create a reusable payment profile from a transaction generated by a nonce/opaqueDataType?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I understand the order of the XML may play a part here, but as I'm using the SDK I have no control over the created XML. Is it even viewable in a log somewhere?&lt;/P&gt;</description>
      <pubDate>Mon, 09 Apr 2018 20:31:05 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Collect-card-info-once-charge-create-customer-profile-payment/m-p/62572#M36862</guid>
      <dc:creator>jkshay</dc:creator>
      <dc:date>2018-04-09T20:31:05Z</dc:date>
    </item>
    <item>
      <title>Re: Collect card info once; charge, create customer profile, payment profile, and subscription via .</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Collect-card-info-once-charge-create-customer-profile-payment/m-p/62574#M36864</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.developer.cybersource.com/t5/user/viewprofilepage/user-id/23931"&gt;@jkshay&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;One you have the accept nonce and done the payment .&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can still use the accept nonce to create the customer profile by passing it in the&amp;nbsp;&lt;/P&gt;
&lt;H3 id="customer-profiles-create-customer-profile"&gt;Create Customer Profile&amp;nbsp; call&amp;nbsp;&lt;/H3&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://developer.authorize.net/api/reference/index.html#customer-profiles-create-customer-profile" target="_blank"&gt;https://developer.authorize.net/api/reference/index.html#customer-profiles-create-customer-profile&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;TABLE class="table table-condensed"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD class="threeBullet"&gt;opaqueData&lt;/TD&gt;
&lt;TD&gt;&lt;STRONG&gt;Required.&lt;/STRONG&gt;&lt;BR /&gt;Contains&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;CODE&gt;dataDescriptor&lt;/CODE&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;and&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;CODE&gt;dataValue&lt;/CODE&gt;.&lt;BR /&gt;&lt;BR /&gt;&lt;/TD&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD class="fourBullet"&gt;dataDescriptor&lt;/TD&gt;
&lt;TD&gt;&lt;STRONG&gt;Required.&lt;/STRONG&gt;&lt;BR /&gt;Specifies how the request should be processed.&lt;BR /&gt;&lt;BR /&gt;The value of&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;CODE&gt;dataDescriptor&lt;/CODE&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;is based on the source of the value of&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;CODE&gt;dataValue&lt;/CODE&gt;.&lt;/TD&gt;
&lt;TD&gt;
&lt;DIV&gt;String, 128 characters.&lt;BR /&gt;&lt;BR /&gt;Use&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;CODE&gt;COMMON.ACCEPT.INAPP.PAYMENT&lt;/CODE&gt;for Accept transactions.&lt;/DIV&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;</description>
      <pubDate>Tue, 10 Apr 2018 04:59:24 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Collect-card-info-once-charge-create-customer-profile-payment/m-p/62574#M36864</guid>
      <dc:creator>Anurag</dc:creator>
      <dc:date>2018-04-10T04:59:24Z</dc:date>
    </item>
    <item>
      <title>Re: Collect card info once; charge, create customer profile, payment profile, and subscription via .</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Collect-card-info-once-charge-create-customer-profile-payment/m-p/62584#M36872</link>
      <description>&lt;P&gt;If you change the order of the nodes in the XML, you can generate the same error that I receive in my controller when I call .Execute():&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&amp;lt;createCustomerProfileRequest xmlns="AnetApi/xml/v1/schema/AnetApiSchema.xsd"&amp;gt; 
&amp;lt;merchantAuthentication&amp;gt;
&amp;lt;name&amp;gt;XXXXXXXXXX&amp;lt;/name&amp;gt;
&amp;lt;transactionKey&amp;gt;XXXXXXXXXXXXXXXX&amp;lt;/transactionKey&amp;gt;
&amp;lt;/merchantAuthentication&amp;gt;
&amp;lt;profile&amp;gt;
&amp;lt;description&amp;gt;Profile description here&amp;lt;/description&amp;gt;
&amp;lt;merchantCustomerId&amp;gt;Merchant_Customer_ID&amp;lt;/merchantCustomerId&amp;gt;
&amp;lt;email&amp;gt;customer-profile-email@here.com&amp;lt;/email&amp;gt;
&amp;lt;/profile&amp;gt;
&amp;lt;validationMode&amp;gt;none&amp;lt;/validationMode&amp;gt;
&amp;lt;/createCustomerProfileRequest&amp;gt;&lt;/PRE&gt;&lt;P&gt;will generate this error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;E00003 : The element 'profile' in namespace 'AnetApi/xml/v1/schema/AnetApiSchema.xsd' has invalid child element 'merchantCustomerId' in namespace 'AnetApi/xml/v1/schema/AnetApiSchema.xsd'. List of possible elements expected: 'email, paymentProfiles, shipToList' in namespace 'AnetApi/xml/v1/schema/AnetApiSchema.xsd'.&lt;/PRE&gt;&lt;P&gt;Be aware that I'm using the .NET SDK and therefore have no control over the order of the XML generated by the SDK.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Apr 2018 13:31:25 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Collect-card-info-once-charge-create-customer-profile-payment/m-p/62584#M36872</guid>
      <dc:creator>jkshay</dc:creator>
      <dc:date>2018-04-10T13:31:25Z</dc:date>
    </item>
  </channel>
</rss>

