<?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 Trouble with the defaultPaymentProfile flag in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Trouble-with-the-defaultPaymentProfile-flag/m-p/58178#M32848</link>
    <description>&lt;P&gt;Hi Folks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am creating a customer profile with two payment profiles. I am explicitly assigning one of the payment profiles to be the default payment profile.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, when I then follow that up with a call to getProfile, both of the payment profiles are returned and neither of them is marked as the default.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;One of my requirements is to allow the customer to select and/or change their default payment profile, so this is causing me an issue as I'd hoped to rely on this flag to implement this requirement.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Has anyone else had trouble working with default payment profiles, or can help me understand what it is that I'm doing wrong?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If needed, I can provide code samples.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;--Jason&lt;/P&gt;</description>
    <pubDate>Mon, 22 May 2017 20:29:51 GMT</pubDate>
    <dc:creator>JasonSki7475</dc:creator>
    <dc:date>2017-05-22T20:29:51Z</dc:date>
    <item>
      <title>Trouble with the defaultPaymentProfile flag</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Trouble-with-the-defaultPaymentProfile-flag/m-p/58178#M32848</link>
      <description>&lt;P&gt;Hi Folks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am creating a customer profile with two payment profiles. I am explicitly assigning one of the payment profiles to be the default payment profile.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, when I then follow that up with a call to getProfile, both of the payment profiles are returned and neither of them is marked as the default.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;One of my requirements is to allow the customer to select and/or change their default payment profile, so this is causing me an issue as I'd hoped to rely on this flag to implement this requirement.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Has anyone else had trouble working with default payment profiles, or can help me understand what it is that I'm doing wrong?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If needed, I can provide code samples.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;--Jason&lt;/P&gt;</description>
      <pubDate>Mon, 22 May 2017 20:29:51 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Trouble-with-the-defaultPaymentProfile-flag/m-p/58178#M32848</guid>
      <dc:creator>JasonSki7475</dc:creator>
      <dc:date>2017-05-22T20:29:51Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble with the defaultPaymentProfile flag</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Trouble-with-the-defaultPaymentProfile-flag/m-p/58180#M32850</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Get Customer Profile&lt;/STRONG&gt; retrieves an existing customer profile along with all the associated payment profiles and shipping addresses.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Get Customer Payment Profile&lt;/STRONG&gt; will return&amp;nbsp;the default payment profile, if a default payment profile has been previously designated.&lt;/P&gt;</description>
      <pubDate>Mon, 22 May 2017 21:15:57 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Trouble-with-the-defaultPaymentProfile-flag/m-p/58180#M32850</guid>
      <dc:creator>NexusSoftware</dc:creator>
      <dc:date>2017-05-22T21:15:57Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble with the defaultPaymentProfile flag</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Trouble-with-the-defaultPaymentProfile-flag/m-p/58185#M32855</link>
      <description>&lt;P&gt;Yes, I picked up that information in the API docs, thank you! I am just not understanding why when I do retrieve that payment profile, the defaultPaymentProfile flag is not returned as true. I am allowed to set the value, but can't retrieve the value.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So what process would I follow to change credit card 2 to be the primary and ensure&amp;nbsp; that credit card 1 is not any longer?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I call updatePaymentProfile and set it to default, will that automatically remove that setting from the other profile?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;--Jason&lt;/P&gt;</description>
      <pubDate>Tue, 23 May 2017 12:13:24 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Trouble-with-the-defaultPaymentProfile-flag/m-p/58185#M32855</guid>
      <dc:creator>JasonSki7475</dc:creator>
      <dc:date>2017-05-23T12:13:24Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble with the defaultPaymentProfile flag</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Trouble-with-the-defaultPaymentProfile-flag/m-p/58186#M32856</link>
      <description>&lt;P&gt;You would call updateCustomerPaymentProfileRequest with the&lt;BR /&gt;defaultPaymentProfile field set to Boolean true or 1, this field designates the payment profile as the default payment profile.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;When a default payment profile has been designated, you can use getCustomerPaymentProfileRequest with customerProfileId as the only parameter.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Note: If some fields in the&lt;SPAN&gt; updateCustomerPaymentProfileRequest&lt;/SPAN&gt;&amp;nbsp;are not submitted or are submitted with a blank value, the values in the original profile are removed.&lt;/P&gt;</description>
      <pubDate>Tue, 23 May 2017 12:24:23 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Trouble-with-the-defaultPaymentProfile-flag/m-p/58186#M32856</guid>
      <dc:creator>NexusSoftware</dc:creator>
      <dc:date>2017-05-23T12:24:23Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble with the defaultPaymentProfile flag</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Trouble-with-the-defaultPaymentProfile-flag/m-p/58187#M32857</link>
      <description>&lt;P&gt;I just tried calling that getCustomerPaymentProfile without submitting the payment profile id, and it did not return the default payment profile, in fact it says there is no default payment profile, which indicates to me that the flag isn't even working. So perhaps I am doing something wrong with setting it as default? I am setting defaultPaymentProfile to true and defaultPaymentProfileSpecified to be true as well, is this incorrect?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;--Jason&lt;/P&gt;</description>
      <pubDate>Tue, 23 May 2017 12:26:21 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Trouble-with-the-defaultPaymentProfile-flag/m-p/58187#M32857</guid>
      <dc:creator>JasonSki7475</dc:creator>
      <dc:date>2017-05-23T12:26:21Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble with the defaultPaymentProfile flag</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Trouble-with-the-defaultPaymentProfile-flag/m-p/58188#M32858</link>
      <description>&lt;P&gt;Setting the &amp;nbsp;&lt;STRONG&gt;&amp;lt;defaultPaymentProfile&amp;gt;true&amp;lt;/defaultPaymentProfile&amp;gt;&lt;/STRONG&gt;&amp;nbsp;works. Let's see your code.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 May 2017 13:06:29 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Trouble-with-the-defaultPaymentProfile-flag/m-p/58188#M32858</guid>
      <dc:creator>NexusSoftware</dc:creator>
      <dc:date>2017-05-23T13:06:29Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble with the defaultPaymentProfile flag</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Trouble-with-the-defaultPaymentProfile-flag/m-p/58189#M32859</link>
      <description>&lt;P&gt;Alrighty, I can do that.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's the main service method. I ripped out logging and things like that to keep it readable.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Consolas" size="2"&gt;public&lt;/FONT&gt; &lt;FONT color="#2b91af" face="Consolas" size="2"&gt;ProfileIDs&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt; createProfile(&lt;/FONT&gt;&lt;FONT color="#2b91af" face="Consolas" size="2"&gt;Guid&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt; transactionGuid, FC_Payment.Data.&lt;/FONT&gt;&lt;FONT color="#2b91af" face="Consolas" size="2"&gt;Customer&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt; customer, &lt;/FONT&gt;&lt;FONT color="#2b91af" face="Consolas" size="2"&gt;PlanCode&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt; planCode)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&lt;FONT color="#2b91af" face="Consolas" size="2"&gt;createCustomerProfileRequest&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt; request = &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Consolas" size="2"&gt;new&lt;/FONT&gt; &lt;FONT color="#2b91af" face="Consolas" size="2"&gt;createCustomerProfileRequest&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;();&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;request.refId = customer.ID;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Consolas" size="2"&gt;request.profile = &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Consolas" size="2"&gt;new&lt;/FONT&gt; &lt;FONT color="#2b91af" face="Consolas" size="2"&gt;customerProfileType&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;();&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;request.profile.merchantCustomerId = customer.ID.ToString();&lt;/P&gt;&lt;P&gt;request.profile.email = customer.EmailAddress;&lt;/P&gt;&lt;P&gt;request.profile.description = customer.Description;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Consolas" size="2"&gt;request.profile.paymentProfiles = &lt;/FONT&gt;&lt;FONT color="#2b91af" face="Consolas" size="2"&gt;ANetPaymentProcessor&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;.MapCustomerToANetPaymentProfiles(customer).ToArray();&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Consolas" size="2"&gt;request.profile.shipToList = &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Consolas" size="2"&gt;new&lt;/FONT&gt; &lt;FONT color="#2b91af" face="Consolas" size="2"&gt;customerAddressType&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;[] {&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#2b91af" face="Consolas" size="2"&gt;ANetPaymentProcessor&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;.MapCustomerAddressToANetCustomerAddress(customer.MailingAddress, customer.LastName,&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;customer.FirstName, customer.CompanyName) };&lt;/P&gt;&lt;P&gt;&lt;FONT face="Consolas" size="2"&gt;request.validationMode = &lt;/FONT&gt;&lt;FONT color="#2b91af" face="Consolas" size="2"&gt;ANetPaymentProcessor&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;.CIMValidationMode;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Consolas" size="2"&gt;request.validationModeSpecified = &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Consolas" size="2"&gt;true&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#2b91af" face="Consolas" size="2"&gt;ANetMakeRequest&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt; requestMaker = &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Consolas" size="2"&gt;new&lt;/FONT&gt; &lt;FONT color="#2b91af" face="Consolas" size="2"&gt;ANetMakeRequest&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;(planCode);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Consolas" size="2"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#2b91af" face="Consolas" size="2"&gt;createCustomerProfileResponse&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt; response = (&lt;/FONT&gt;&lt;FONT color="#2b91af" face="Consolas" size="2"&gt;createCustomerProfileResponse&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;)requestMaker.MakeRequest(request);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#2b91af" face="Consolas" size="2"&gt;ProfileIDs&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt; profileIDs = &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Consolas" size="2"&gt;new&lt;/FONT&gt; &lt;FONT color="#2b91af" face="Consolas" size="2"&gt;ProfileIDs&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;();&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;profileIDs.CustomerProfileID = response.customerProfileId;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Consolas" size="2"&gt;profileIDs.PaymentProfileIDs = &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Consolas" size="2"&gt;new&lt;/FONT&gt; &lt;FONT color="#2b91af" face="Consolas" size="2"&gt;List&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;&amp;lt;&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Consolas" size="2"&gt;string&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;&amp;gt;(response.customerPaymentProfileIdList);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Consolas" size="2"&gt;return&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt; profileIDs;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's the code for the &lt;FONT face="Consolas" size="2"&gt;MapCustomerToANetPaymentProfiles method. We only allow credit cards by the way. This just takes the data from the Customer parameter above&amp;nbsp;and maps it to the auth.net object.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Consolas" size="2"&gt;public&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Consolas" size="2"&gt;static&lt;/FONT&gt; &lt;FONT color="#2b91af" face="Consolas" size="2"&gt;List&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;&amp;lt;&lt;/FONT&gt;&lt;FONT color="#2b91af" face="Consolas" size="2"&gt;customerPaymentProfileExType&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;&amp;gt; MapCustomerToANetPaymentProfiles(FC_Payment.Data.&lt;/FONT&gt;&lt;FONT color="#2b91af" face="Consolas" size="2"&gt;Customer&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt; customer)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&lt;FONT color="#2b91af" face="Consolas" size="2"&gt;List&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;&amp;lt;&lt;/FONT&gt;&lt;FONT color="#2b91af" face="Consolas" size="2"&gt;customerPaymentProfileExType&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;&amp;gt; pymtProfiles = &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Consolas" size="2"&gt;new&lt;/FONT&gt; &lt;FONT color="#2b91af" face="Consolas" size="2"&gt;List&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;&amp;lt;&lt;/FONT&gt;&lt;FONT color="#2b91af" face="Consolas" size="2"&gt;customerPaymentProfileExType&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;&amp;gt;();&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Consolas" size="2"&gt;if&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt; (customer.CreditCards != &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Consolas" size="2"&gt;null&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt; &amp;amp;&amp;amp; customer.CreditCards.Count &amp;gt; 0)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Consolas" size="2"&gt;foreach&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt; (&lt;/FONT&gt;&lt;FONT color="#2b91af" face="Consolas" size="2"&gt;CustomerCreditCard&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt; creditCard &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Consolas" size="2"&gt;in&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt; customer.CreditCards)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&lt;FONT color="#2b91af" face="Consolas" size="2"&gt;customerPaymentProfileExType&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt; pymtProfile = &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Consolas" size="2"&gt;new&lt;/FONT&gt; &lt;FONT color="#2b91af" face="Consolas" size="2"&gt;customerPaymentProfileExType&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;();&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Consolas" size="2"&gt;pymtProfile.customerPaymentProfileId = &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Consolas" size="2"&gt;string&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;.IsNullOrEmpty(creditCard.PaymentProfileID) ? &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Consolas" size="2"&gt;null&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt; : creditCard.PaymentProfileID;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;pymtProfile.defaultPaymentProfile = creditCard.IsPrimary;&lt;/P&gt;&lt;P&gt;pymtProfile.defaultPaymentProfileSpecified = creditCard.IsPrimary;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Consolas" size="2"&gt;pymtProfile.billTo = &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Consolas" size="2"&gt;new&lt;/FONT&gt; &lt;FONT color="#2b91af" face="Consolas" size="2"&gt;customerAddressType&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;();&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;pymtProfile.billTo.address = customer.BillingAddress.Street1;&lt;/P&gt;&lt;P&gt;pymtProfile.billTo.city = customer.BillingAddress.City;&lt;/P&gt;&lt;P&gt;pymtProfile.billTo.state = customer.BillingAddress.StateProvinceCode;&lt;/P&gt;&lt;P&gt;pymtProfile.billTo.zip = customer.BillingAddress.PostalCode;&lt;/P&gt;&lt;P&gt;pymtProfile.billTo.country = customer.BillingAddress.Country;&lt;/P&gt;&lt;P&gt;pymtProfile.billTo.phoneNumber = customer.BillingAddress.Phone;&lt;/P&gt;&lt;P&gt;pymtProfile.billTo.faxNumber = customer.BillingAddress.Fax;&lt;/P&gt;&lt;P&gt;pymtProfile.billTo.firstName = creditCard.FirstNameOnCard;&lt;/P&gt;&lt;P&gt;pymtProfile.billTo.lastName = creditCard.LastNameOnCard;&lt;/P&gt;&lt;P&gt;pymtProfile.billTo.company = customer.CompanyName;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Consolas" size="2"&gt;pymtProfile.customerType = customer.Type == &lt;/FONT&gt;&lt;FONT color="#2b91af" face="Consolas" size="2"&gt;CustomerType&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;.Individual ? &lt;/FONT&gt;&lt;FONT color="#2b91af" face="Consolas" size="2"&gt;customerTypeEnum&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;.individual : &lt;/FONT&gt;&lt;FONT color="#2b91af" face="Consolas" size="2"&gt;customerTypeEnum&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;.business;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Consolas" size="2"&gt;pymtProfile.payment = &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Consolas" size="2"&gt;new&lt;/FONT&gt; &lt;FONT color="#2b91af" face="Consolas" size="2"&gt;paymentType&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;();&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#2b91af" face="Consolas" size="2"&gt;creditCardType&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt; cc = &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Consolas" size="2"&gt;new&lt;/FONT&gt; &lt;FONT color="#2b91af" face="Consolas" size="2"&gt;creditCardType&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;();&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;cc.cardNumber = creditCard.CardNumber;&lt;/P&gt;&lt;P&gt;cc.cardCode = creditCard.CVVCode;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#008000" face="Consolas" size="2"&gt;//Expiration month and year could be present as either the actual numbers or masked as XX.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Consolas" size="2"&gt;int&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt; expMonth, expYear;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Consolas" size="2"&gt;if&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt; (&lt;/FONT&gt;&lt;FONT color="#2b91af" face="Consolas" size="2"&gt;Int32&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;.TryParse(creditCard.ExpirationMonth, &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Consolas" size="2"&gt;out&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt; expMonth) &amp;amp;&amp;amp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#2b91af" face="Consolas" size="2"&gt;Int32&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;.TryParse(creditCard.ExpirationYear, &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Consolas" size="2"&gt;out&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt; expYear))&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&lt;FONT face="Consolas" size="2"&gt;cc.expirationDate = &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Consolas" size="2"&gt;string&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;.Format(&lt;/FONT&gt;&lt;FONT color="#a31515" face="Consolas" size="2"&gt;"{0}-{1:D2}"&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;, expYear, expMonth);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Consolas" size="2"&gt;else&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&lt;FONT face="Consolas" size="2"&gt;cc.expirationDate = &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Consolas" size="2"&gt;string&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;.Format(&lt;/FONT&gt;&lt;FONT color="#a31515" face="Consolas" size="2"&gt;"{0}{1}"&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;, creditCard.ExpirationYear, creditCard.ExpirationMonth);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;pymtProfile.payment.Item = cc;&lt;/P&gt;&lt;P&gt;pymtProfiles.Add(pymtProfile);&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Consolas" size="2"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Consolas" size="2"&gt;return&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt; pymtProfiles;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm not sure if I can post screen shots here, but I did put a breakpoint just before the the request is issued and the payment profiles do have the flags set appropriately, one is true and one is false.&lt;/P&gt;&lt;P&gt;Is there something else I can show?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;--Jason&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 May 2017 13:33:39 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Trouble-with-the-defaultPaymentProfile-flag/m-p/58189#M32859</guid>
      <dc:creator>JasonSki7475</dc:creator>
      <dc:date>2017-05-23T13:33:39Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble with the defaultPaymentProfile flag</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Trouble-with-the-defaultPaymentProfile-flag/m-p/58192#M32861</link>
      <description>&lt;P&gt;I was able to grab the XML also:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;lt;?xml version="1.0" encoding="utf-8"?&amp;gt;&amp;lt;createCustomerProfileRequest xmlns:xsi="&lt;A href="http://www.w3.org/2001/XMLSchema-instance" target="_blank"&gt;http://www.w3.org/2001/XMLSchema-instance&lt;/A&gt;" xmlns:xsd="&lt;A href="http://www.w3.org/2001/XMLSchema" target="_blank"&gt;http://www.w3.org/2001/XMLSchema&lt;/A&gt;" xmlns="AnetApi/xml/v1/schema/AnetApiSchema.xsd"&amp;gt;&amp;lt;merchantAuthentication&amp;gt;&amp;lt;name&amp;gt;SCRUBBED&amp;lt;/name&amp;gt;&amp;lt;transactionKey&amp;gt;SCRUBBED&amp;lt;/transactionKey&amp;gt;&amp;lt;/merchantAuthentication&amp;gt;&amp;lt;refId&amp;gt;SCRUBBED&amp;lt;/refId&amp;gt;&amp;lt;profile&amp;gt;&amp;lt;merchantCustomerId&amp;gt;scrubbed&amp;lt;/merchantCustomerId&amp;gt;&amp;lt;description&amp;gt;Chewsi Subscriber&amp;lt;/description&amp;gt;&amp;lt;email&amp;gt;developer@scrubbed.com&amp;lt;/email&amp;gt;&amp;lt;paymentProfiles xsi:type="customerPaymentProfileExType"&amp;gt;&amp;lt;billTo&amp;gt;&amp;lt;firstName&amp;gt;Name&amp;lt;/firstName&amp;gt;&amp;lt;lastName&amp;gt;Card1&amp;lt;/lastName&amp;gt;&amp;lt;/billTo&amp;gt;&amp;lt;payment&amp;gt;&amp;lt;creditCard&amp;gt;&amp;lt;cardNumber&amp;gt;4007000000027&amp;lt;/cardNumber&amp;gt;&amp;lt;expirationDate&amp;gt;2018-12&amp;lt;/expirationDate&amp;gt;&amp;lt;cardCode&amp;gt;223&amp;lt;/cardCode&amp;gt;&amp;lt;/creditCard&amp;gt;&amp;lt;/payment&amp;gt;&amp;lt;defaultPaymentProfile&amp;gt;true&amp;lt;/defaultPaymentProfile&amp;gt;&amp;lt;/paymentProfiles&amp;gt;&amp;lt;paymentProfiles xsi:type="customerPaymentProfileExType"&amp;gt;&amp;lt;billTo&amp;gt;&amp;lt;firstName&amp;gt;Name&amp;lt;/firstName&amp;gt;&amp;lt;lastName&amp;gt;Card2&amp;lt;/lastName&amp;gt;&amp;lt;/billTo&amp;gt;&amp;lt;payment&amp;gt;&amp;lt;creditCard&amp;gt;&amp;lt;cardNumber&amp;gt;6011000000000012&amp;lt;/cardNumber&amp;gt;&amp;lt;expirationDate&amp;gt;2018-12&amp;lt;/expirationDate&amp;gt;&amp;lt;cardCode&amp;gt;223&amp;lt;/cardCode&amp;gt;&amp;lt;/creditCard&amp;gt;&amp;lt;/payment&amp;gt;&amp;lt;/paymentProfiles&amp;gt;&amp;lt;shipToList&amp;gt;&amp;lt;firstName&amp;gt;Blue&amp;lt;/firstName&amp;gt;&amp;lt;lastName&amp;gt;Moon&amp;lt;/lastName&amp;gt;&amp;lt;/shipToList&amp;gt;&amp;lt;/profile&amp;gt;&amp;lt;validationMode&amp;gt;testMode&amp;lt;/validationMode&amp;gt;&amp;lt;/createCustomerProfileRequest&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And I do see the node for the default payment profile.&lt;/P&gt;</description>
      <pubDate>Tue, 23 May 2017 13:51:46 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Trouble-with-the-defaultPaymentProfile-flag/m-p/58192#M32861</guid>
      <dc:creator>JasonSki7475</dc:creator>
      <dc:date>2017-05-23T13:51:46Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble with the defaultPaymentProfile flag</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Trouble-with-the-defaultPaymentProfile-flag/m-p/58194#M32863</link>
      <description>&lt;P&gt;In order to set the DefaultPaymentProfile the CreateCustomerPaymentProfileRequest is required to have to have&amp;nbsp;&lt;SPAN&gt;customerType and&amp;nbsp;&lt;/SPAN&gt;BillTo&amp;nbsp;/ CustomerAddress.&lt;/P&gt;</description>
      <pubDate>Tue, 23 May 2017 15:21:30 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Trouble-with-the-defaultPaymentProfile-flag/m-p/58194#M32863</guid>
      <dc:creator>NexusSoftware</dc:creator>
      <dc:date>2017-05-23T15:21:30Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble with the defaultPaymentProfile flag</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Trouble-with-the-defaultPaymentProfile-flag/m-p/58197#M32866</link>
      <description>&lt;P&gt;We don't collect a customer address. Is there no way around this?&lt;/P&gt;</description>
      <pubDate>Tue, 23 May 2017 17:12:35 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Trouble-with-the-defaultPaymentProfile-flag/m-p/58197#M32866</guid>
      <dc:creator>JasonSki7475</dc:creator>
      <dc:date>2017-05-23T17:12:35Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble with the defaultPaymentProfile flag</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Trouble-with-the-defaultPaymentProfile-flag/m-p/58198#M32867</link>
      <description>&lt;P&gt;I did add the customer type, but it didn't resolve the situation. The profile does have a billto to hold the name on the card, but all I have for an address is empty fields. I could populate something hard coded since we're not using customer addresses, but I'm not terribly happy with that as a solution.&lt;/P&gt;</description>
      <pubDate>Tue, 23 May 2017 17:14:12 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Trouble-with-the-defaultPaymentProfile-flag/m-p/58198#M32867</guid>
      <dc:creator>JasonSki7475</dc:creator>
      <dc:date>2017-05-23T17:14:12Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble with the defaultPaymentProfile flag</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Trouble-with-the-defaultPaymentProfile-flag/m-p/58199#M32868</link>
      <description>&lt;P&gt;If you have the customerType as individual or business and the BillTo address lines filled, you should&amp;nbsp;get a successful response.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 May 2017 17:21:32 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Trouble-with-the-defaultPaymentProfile-flag/m-p/58199#M32868</guid>
      <dc:creator>NexusSoftware</dc:creator>
      <dc:date>2017-05-23T17:21:32Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble with the defaultPaymentProfile flag</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Trouble-with-the-defaultPaymentProfile-flag/m-p/58265#M32930</link>
      <description>&lt;P&gt;Actually, setting the default payment profile is not possible using the &lt;EM&gt;createCustomerProfileRequest&lt;/EM&gt; method. As you've noticed, the request will accept the&amp;nbsp;&lt;EM&gt;defaultPaymentProfile&lt;/EM&gt; element without error, but will not act on it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, our API reference does not document&amp;nbsp;&lt;EM&gt;defaultPaymentProfile&lt;/EM&gt; as a valid parameter for this request.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We've already tracked this internally as a request for improvement, but if you'd like, this would be a good thing to add to our &lt;A href="https://community.developer.cybersource.com/t5/Ideas/idb-p/ideas" target="_self"&gt;Ideas Forum&lt;/A&gt;&amp;nbsp;(where others can take a look, contribute feedback, and vote for new features).&lt;/P&gt;</description>
      <pubDate>Tue, 30 May 2017 18:16:06 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Trouble-with-the-defaultPaymentProfile-flag/m-p/58265#M32930</guid>
      <dc:creator>Aaron</dc:creator>
      <dc:date>2017-05-30T18:16:06Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble with the defaultPaymentProfile flag</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Trouble-with-the-defaultPaymentProfile-flag/m-p/58461#M33112</link>
      <description>&lt;P&gt;He is calling createCustomerPaymentProfileRequest, not createCustomerProfile.&amp;nbsp;&lt;SPAN&gt;createCustomerPaymentProfileRequest most definitely DOES have a parameter in the docs for&amp;nbsp;defaultPaymentProfile. I am also trying to use it and it does not work. I populated the fields recommended in previous replies - customerType and the entire set of BillTo fields. After creating a new card (which does work), it will not be shown as the default.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The&amp;nbsp;defaultPaymentProfile flag simply does not work. You may be trying it with one of the other SDKs. But myself (and I believe the OP) are using the .NET sdk. There definitely seems to be a bug with that flag. It does not work.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Jun 2017 00:07:38 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Trouble-with-the-defaultPaymentProfile-flag/m-p/58461#M33112</guid>
      <dc:creator>mjsauer2015</dc:creator>
      <dc:date>2017-06-15T00:07:38Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble with the defaultPaymentProfile flag</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Trouble-with-the-defaultPaymentProfile-flag/m-p/58464#M33114</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;a href="https://community.developer.cybersource.com/t5/user/viewprofilepage/user-id/20843"&gt;@Aaron&lt;/a&gt;&amp;nbsp;is right. You should be calling&amp;nbsp;createCustomerPaymentProfileRequest with an existing customerProfileId, instead of&amp;nbsp;createCustomerProfileRequest in order to set the defaultPayment Profile.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Jun 2017 00:49:21 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Trouble-with-the-defaultPaymentProfile-flag/m-p/58464#M33114</guid>
      <dc:creator>NexusSoftware</dc:creator>
      <dc:date>2017-06-15T00:49:21Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble with the defaultPaymentProfile flag</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Trouble-with-the-defaultPaymentProfile-flag/m-p/58470#M33119</link>
      <description>&lt;P&gt;You're not really reading through the OP's entire code. The first chunk of code creates the customer profile. Yes.. acknowledged.... After that.. you will see that he then uses the new customer profile ID to create a customerPaymentProfile. THAT is where the problem lies... not in the creation of the customerProfile.&lt;BR /&gt;&lt;BR /&gt;I am also seeing the exact same problem. I have an existing customer profile. All I am trying to do is create a new customer payment profile. This does work, but no matter what.. the defaultPaymentProfle flag does not work. If you set it to true, it will not take. If you query the profile again, it is set to false.&lt;BR /&gt;&lt;BR /&gt;Are there any developers out there who are able to see this issue, or able to understand the problem? I would challenge anyone to try this with the .Net sdk. You will see that it does not work.&lt;BR /&gt;&lt;BR /&gt;Here is the code the OP posted. See how there are two parts? The first is creating the customer profile, the second is creating a customerPaymentProfile.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;public ProfileIDs createProfile(Guid transactionGuid, FC_Payment.Data.Customer customer, PlanCode planCode)
{
createCustomerProfileRequest request = new createCustomerProfileRequest();
request.refId = customer.ID;
request.profile = new customerProfileType();
request.profile.merchantCustomerId = customer.ID.ToString();
request.profile.email = customer.EmailAddress;
request.profile.description = customer.Description;
request.profile.paymentProfiles = ANetPaymentProcessor.MapCustomerToANetPaymentProfiles(customer).ToArray();
request.profile.shipToList = new customerAddressType[] {
ANetPaymentProcessor.MapCustomerAddressToANetCustomerAddress(customer.MailingAddress, customer.LastName,
customer.FirstName, customer.CompanyName) };
request.validationMode = ANetPaymentProcessor.CIMValidationMode;
request.validationModeSpecified = true;
ANetMakeRequest requestMaker = new ANetMakeRequest(planCode);
 
createCustomerProfileResponse response = (createCustomerProfileResponse)requestMaker.MakeRequest(request);
ProfileIDs profileIDs = new ProfileIDs();
profileIDs.CustomerProfileID = response.customerProfileId;
profileIDs.PaymentProfileIDs = new List&amp;lt;string&amp;gt;(response.customerPaymentProfileIdList);
return profileIDs;
}
 
Here's the code for the MapCustomerToANetPaymentProfiles method. We only allow credit cards by the way. This just takes the data from the Customer parameter above and maps it to the auth.net object.
 
public static List&amp;lt;customerPaymentProfileExType&amp;gt; MapCustomerToANetPaymentProfiles(FC_Payment.Data.Customer customer)
{
List&amp;lt;customerPaymentProfileExType&amp;gt; pymtProfiles = new List&amp;lt;customerPaymentProfileExType&amp;gt;();
 
if (customer.CreditCards != null &amp;amp;&amp;amp; customer.CreditCards.Count &amp;gt; 0)
{
foreach (CustomerCreditCard creditCard in customer.CreditCards)
{
customerPaymentProfileExType pymtProfile = new customerPaymentProfileExType();
pymtProfile.customerPaymentProfileId = string.IsNullOrEmpty(creditCard.PaymentProfileID) ? null : creditCard.PaymentProfileID;
pymtProfile.defaultPaymentProfile = creditCard.IsPrimary;
pymtProfile.defaultPaymentProfileSpecified = creditCard.IsPrimary;
pymtProfile.billTo = new customerAddressType();
pymtProfile.billTo.address = customer.BillingAddress.Street1;
pymtProfile.billTo.city = customer.BillingAddress.City;
pymtProfile.billTo.state = customer.BillingAddress.StateProvinceCode;
pymtProfile.billTo.zip = customer.BillingAddress.PostalCode;
pymtProfile.billTo.country = customer.BillingAddress.Country;
pymtProfile.billTo.phoneNumber = customer.BillingAddress.Phone;
pymtProfile.billTo.faxNumber = customer.BillingAddress.Fax;
pymtProfile.billTo.firstName = creditCard.FirstNameOnCard;
pymtProfile.billTo.lastName = creditCard.LastNameOnCard;
pymtProfile.billTo.company = customer.CompanyName;
pymtProfile.customerType = customer.Type == CustomerType.Individual ? customerTypeEnum.individual : customerTypeEnum.business;
pymtProfile.payment = new paymentType();
creditCardType cc = new creditCardType();
cc.cardNumber = creditCard.CardNumber;
cc.cardCode = creditCard.CVVCode;
//Expiration month and year could be present as either the actual numbers or masked as XX.
int expMonth, expYear;
if (Int32.TryParse(creditCard.ExpirationMonth, out expMonth) &amp;amp;&amp;amp;
Int32.TryParse(creditCard.ExpirationYear, out expYear))
{
cc.expirationDate = string.Format("{0}-{1:D2}", expYear, expMonth);
}
else
{
cc.expirationDate = string.Format("{0}{1}", creditCard.ExpirationYear, creditCard.ExpirationMonth);
}
pymtProfile.payment.Item = cc;
pymtProfiles.Add(pymtProfile);
}
}
 
return pymtProfiles;
}&lt;/PRE&gt;</description>
      <pubDate>Thu, 15 Jun 2017 12:04:22 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Trouble-with-the-defaultPaymentProfile-flag/m-p/58470#M33119</guid>
      <dc:creator>mjsauer2015</dc:creator>
      <dc:date>2017-06-15T12:04:22Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble with the defaultPaymentProfile flag</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Trouble-with-the-defaultPaymentProfile-flag/m-p/58471#M33120</link>
      <description>&lt;P&gt;Regradless of whether the OP was uisng the wrong method... I am still seeing this same issue. Please look at this quick walk-through of what happens. Maybe this will illustrate better the problem...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://gtma.s3.amazonaws.com/videos/2017-06-15-2009-06_720p.mp4" target="_blank"&gt;https://gtma.s3.amazonaws.com/videos/2017-06-15-2009-06_720p.mp4&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Jun 2017 12:45:40 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Trouble-with-the-defaultPaymentProfile-flag/m-p/58471#M33120</guid>
      <dc:creator>mjsauer2015</dc:creator>
      <dc:date>2017-06-15T12:45:40Z</dc:date>
    </item>
  </channel>
</rss>

