<?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: updateCustomerPaymentProfileRequest is failing in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/updateCustomerPaymentProfileRequest-is-failing/m-p/56122#M30934</link>
    <description>&lt;P&gt;Joy,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the response. Filling in the CustomerProfileId with a valid value did the trick. I was trying to reuse the customer profile ID returned in the masked customer profile, but for whatever reason that is null.&lt;/P&gt;</description>
    <pubDate>Mon, 07 Nov 2016 14:20:26 GMT</pubDate>
    <dc:creator>Jabberrwocky2</dc:creator>
    <dc:date>2016-11-07T14:20:26Z</dc:date>
    <item>
      <title>updateCustomerPaymentProfileRequest is failing</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/updateCustomerPaymentProfileRequest-is-failing/m-p/56102#M30915</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using the latest version of the C# SDK to update an existing Customer Payment Profile. When I attempt to do so, I am getting this error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The element 'updateCustomerPaymentProfileRequest' in namespace 'AnetApi/xml/v1/schema/AnetApiSchema.xsd' has invalid child element 'paymentProfile' in namespace 'AnetApi/xml/v1/schema/AnetApiSchema.xsd'. List of possible elements expected: 'refId, customerProfileId' in namespace 'AnetApi/xml/v1/schema/AnetApiSchema.xsd'.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am basically copying and pasting the example code I found here:&amp;nbsp;&lt;A href="https://github.com/AuthorizeNet/sample-code-csharp/blob/master/CustomerProfiles/UpdateCustomerPaymentProfile.cs" target="_blank"&gt;https://github.com/AuthorizeNet/sample-code-csharp/blob/master/CustomerProfiles/UpdateCustomerPaymentProfile.cs&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is a snippet of the code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;var creditCard = new creditCardType
        {
            cardNumber = "XXXX1111",
            expirationDate = "XXXX"
        };

        var paymentType = new paymentType { Item = creditCard };

        var paymentProfile = new customerPaymentProfileExType
        {
            billTo = new customerAddressType
            {
                // change information as required for billing
                firstName = "John",
                lastName = "Doe",
                address = "123 Main St.",
                city = "Bellevue",
                state = "WA",
                zip = "98004",
                country = "USA",
                phoneNumber = "000-000-000",
            },
            payment = paymentType,
            customerPaymentProfileId = paymentProfileMasked.customerPaymentProfileId
        };

        var request = new updateCustomerPaymentProfileRequest();
        request.customerProfileId = paymentProfileMasked.customerProfileId;
        request.paymentProfile = paymentProfile;
        request.validationMode = validationModeEnum.liveMode;

        var controller = new updateCustomerPaymentProfileController(request);
        controller.Execute();

        var errorResponse = controller.GetErrorResponse();

        if (errorResponse != null)
        {
            throw new ApplicationException(errorResponse.messages.message[0].text);
        }&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anyone know why I might be getting this error message?&lt;/P&gt;</description>
      <pubDate>Thu, 03 Nov 2016 17:08:36 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/updateCustomerPaymentProfileRequest-is-failing/m-p/56102#M30915</guid>
      <dc:creator>Jabberrwocky2</dc:creator>
      <dc:date>2016-11-03T17:08:36Z</dc:date>
    </item>
    <item>
      <title>Re: updateCustomerPaymentProfileRequest is failing</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/updateCustomerPaymentProfileRequest-is-failing/m-p/56110#M30922</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hi&amp;nbsp;&lt;SPAN class=""&gt;&lt;A id="link_2" class="lia-link-navigation lia-page-link lia-user-name-link" href="https://community.developer.cybersource.com/t5/user/viewprofilepage/user-id/20842" target="_self"&gt;Jabberrwocky2&lt;/A&gt;,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class=""&gt;This error indicates that the customer profile ID is not being set. I suggest that you check the updateCustomerPaymentProfile object prior to submitting the request.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class=""&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class=""&gt;Joy&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Nov 2016 19:37:25 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/updateCustomerPaymentProfileRequest-is-failing/m-p/56110#M30922</guid>
      <dc:creator>Joy</dc:creator>
      <dc:date>2016-11-04T19:37:25Z</dc:date>
    </item>
    <item>
      <title>Re: updateCustomerPaymentProfileRequest is failing</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/updateCustomerPaymentProfileRequest-is-failing/m-p/56122#M30934</link>
      <description>&lt;P&gt;Joy,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the response. Filling in the CustomerProfileId with a valid value did the trick. I was trying to reuse the customer profile ID returned in the masked customer profile, but for whatever reason that is null.&lt;/P&gt;</description>
      <pubDate>Mon, 07 Nov 2016 14:20:26 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/updateCustomerPaymentProfileRequest-is-failing/m-p/56122#M30934</guid>
      <dc:creator>Jabberrwocky2</dc:creator>
      <dc:date>2016-11-07T14:20:26Z</dc:date>
    </item>
  </channel>
</rss>

