<?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 Object Reference Exception upon updating Credit Card Information in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Object-Reference-Exception-upon-updating-Credit-Card-Information/m-p/27028#M14318</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i have trying to update the billing address and credit card information using the below Code in c#.&lt;/P&gt;&lt;PRE&gt;if (gateway.IsNull())
            {
                SetGateway();
            }
            PaymentProfile oldprofile = gateway.GetCustomer(profileID).PaymentProfiles.Where(i=&amp;gt;i.ProfileID.Equals(paymentProfileID)).First();
            
            oldprofile.BillingAddress = billTo;
            oldprofile.CardCode = cardCode;
            oldprofile.CardExpiration = string.Format("{1}-{0}", expirationMonth, expirationYear);
            oldprofile.CardNumber = cardNumber;
            return  gateway.UpdatePaymentProfile(profileID, oldprofile);&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;But, upong UpdatePaymentProfile i get a object reference Exception. can someone please point me in the right direction?&lt;/P&gt;</description>
    <pubDate>Fri, 08 Jun 2012 11:15:30 GMT</pubDate>
    <dc:creator>amitthakkar2228</dc:creator>
    <dc:date>2012-06-08T11:15:30Z</dc:date>
    <item>
      <title>Object Reference Exception upon updating Credit Card Information</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Object-Reference-Exception-upon-updating-Credit-Card-Information/m-p/27028#M14318</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i have trying to update the billing address and credit card information using the below Code in c#.&lt;/P&gt;&lt;PRE&gt;if (gateway.IsNull())
            {
                SetGateway();
            }
            PaymentProfile oldprofile = gateway.GetCustomer(profileID).PaymentProfiles.Where(i=&amp;gt;i.ProfileID.Equals(paymentProfileID)).First();
            
            oldprofile.BillingAddress = billTo;
            oldprofile.CardCode = cardCode;
            oldprofile.CardExpiration = string.Format("{1}-{0}", expirationMonth, expirationYear);
            oldprofile.CardNumber = cardNumber;
            return  gateway.UpdatePaymentProfile(profileID, oldprofile);&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;But, upong UpdatePaymentProfile i get a object reference Exception. can someone please point me in the right direction?&lt;/P&gt;</description>
      <pubDate>Fri, 08 Jun 2012 11:15:30 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Object-Reference-Exception-upon-updating-Credit-Card-Information/m-p/27028#M14318</guid>
      <dc:creator>amitthakkar2228</dc:creator>
      <dc:date>2012-06-08T11:15:30Z</dc:date>
    </item>
    <item>
      <title>Re: Object Reference Exception upon updating Credit Card Information</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Object-Reference-Exception-upon-updating-Credit-Card-Information/m-p/27030#M14319</link>
      <description>&lt;P&gt;okay, if i just enter the billing address it gives me an error E00029 - Payment information is required.&lt;/P&gt;&lt;P&gt;Now , how do i enter the payment information?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i believe we need to pass a PaymentEXType, but upon creating new PaymentProfile instance it just allows me to create a maskedType. that gives me a object reference exception.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i have just added the Authorize.Net DLL in my project and am creating a library for performing maintenance activities like adding, deleting and updating credit and customer information.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please help.&lt;/P&gt;</description>
      <pubDate>Fri, 08 Jun 2012 13:04:36 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Object-Reference-Exception-upon-updating-Credit-Card-Information/m-p/27030#M14319</guid>
      <dc:creator>amitthakkar2228</dc:creator>
      <dc:date>2012-06-08T13:04:36Z</dc:date>
    </item>
    <item>
      <title>Re: Object Reference Exception upon updating Credit Card Information</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Object-Reference-Exception-upon-updating-Credit-Card-Information/m-p/27234#M14414</link>
      <description>&lt;P&gt;Hey amitthakkar2228,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for bringing this up. It looks like there's a bug in the SDK. I've passed this on to our developers for them to have a look at.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Michelle&lt;/P&gt;
&lt;P&gt;Developer Community Manager&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jun 2012 22:14:54 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Object-Reference-Exception-upon-updating-Credit-Card-Information/m-p/27234#M14414</guid>
      <dc:creator>Michelle</dc:creator>
      <dc:date>2012-06-15T22:14:54Z</dc:date>
    </item>
    <item>
      <title>Re: Object Reference Exception upon updating Credit Card Information</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Object-Reference-Exception-upon-updating-Credit-Card-Information/m-p/27246#M14420</link>
      <description>&lt;P&gt;Yes, i figured the same and downloaded the source and fixed it. Thank you for looking into it.&lt;/P&gt;</description>
      <pubDate>Sat, 16 Jun 2012 18:49:26 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Object-Reference-Exception-upon-updating-Credit-Card-Information/m-p/27246#M14420</guid>
      <dc:creator>amitthakkar2228</dc:creator>
      <dc:date>2012-06-16T18:49:26Z</dc:date>
    </item>
  </channel>
</rss>

