<?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: CIM update payment profile always returns nil in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/CIM-update-payment-profile-always-returns-nil/m-p/24893#M13312</link>
    <description>&lt;P&gt;WOOO! &amp;nbsp;Thanks..that was exactly the problem. I guess it never really dawned on me thats what that meant, I guess I thought it ignored duplicate update requests... Thanks again.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 23 Mar 2012 20:15:43 GMT</pubDate>
    <dc:creator>mbishop541</dc:creator>
    <dc:date>2012-03-23T20:15:43Z</dc:date>
    <item>
      <title>CIM update payment profile always returns nil</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/CIM-update-payment-profile-always-returns-nil/m-p/24877#M13304</link>
      <description>&lt;P&gt;So I'm trying to add "update a payment profile" functionality and it always returns a nil response. I'm using the ruby sdk,&amp;nbsp;&lt;A target="_blank" href="http://rubydoc.info/gems/authorize-net/1.5.2/frames"&gt;http://rubydoc.info/gems/authorize-net/1.5.2/frames&lt;/A&gt; , CIM &amp;gt; Transaction &amp;gt; update_payment_profile function with no luck.. I can create and delete payment profiles, just not update.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm retrieving the payment profile object with get_payment_profile, and for now just trying to update a card/account number..So the payment profile object I have from my get request looks like this.. (I dotted out the customer_payment_profile_id just to be cautious, but yes it is there)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;#&amp;lt;AuthorizeNet::CIM::PaymentProfile:0x00000105d0f358 @customer_payment_profile_id="5....8", @payment_method=#&amp;lt;AuthorizeNet::CreditCard:0x00000105ccb3b0 @card_number="XXXX1111", @expiration="XXXX", @card_code=nil, @card_type=nil, @track_1=nil, @track_2=nil&amp;gt;&amp;gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and the object I'm sending back for update looks like this..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;#&amp;lt;AuthorizeNet::CIM::PaymentProfile:0x00000105d0f358 @customer_payment_profile_id="5....8", @payment_method=#&amp;lt;AuthorizeNet::CreditCard:0x00000105ccb3b0 @card_number="1111222233336666", @expiration="XXXX", @card_code=nil, @card_type=nil, @track_1=nil, @track_2=nil&amp;gt;&amp;gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;in a nutshell here's how I'm updating the card_number&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;response = transaction.get_payment_profile(payment_profile.payment_profile_id, payment_profile.customer_profile_id)
cim_payment_profile = response.payment_profile 
cim_payment_profile.payment_method.card_number = params[:credit_card_number]
response = transaction.update_payment_profile(cim_payment_profile, cim_payment_profile.customer_payment_profile_id, :validation_mode =&amp;gt; :none)&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm using the sandbox gateway, and i've tried liveMode, testMode, and none for validation mode.. and i'm all out of ideas. Anyone got an idea where I'm going wrong?&lt;/P&gt;</description>
      <pubDate>Fri, 23 Mar 2012 17:20:32 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/CIM-update-payment-profile-always-returns-nil/m-p/24877#M13304</guid>
      <dc:creator>mbishop541</dc:creator>
      <dc:date>2012-03-23T17:20:32Z</dc:date>
    </item>
    <item>
      <title>Re: CIM update payment profile always returns nil</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/CIM-update-payment-profile-always-returns-nil/m-p/24881#M13306</link>
      <description>&lt;P&gt;Just being nosy, but on the methods documentation page&lt;/P&gt;&lt;P&gt;&lt;A target="_blank" href="http://rubydoc.info/gems/authorize-net/1.5.2/AuthorizeNet/CIM/Transaction:update_payment_profile"&gt;http://rubydoc.info/gems/authorize-net/1.5.2/AuthorizeNet/CIM/Transaction:update_payment_profile&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It show the second parameter as the profileID and not the paymentProfileID.&lt;/P&gt;</description>
      <pubDate>Fri, 23 Mar 2012 18:13:36 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/CIM-update-payment-profile-always-returns-nil/m-p/24881#M13306</guid>
      <dc:creator>RaynorC1emen7</dc:creator>
      <dc:date>2012-03-23T18:13:36Z</dc:date>
    </item>
    <item>
      <title>Re: CIM update payment profile always returns nil</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/CIM-update-payment-profile-always-returns-nil/m-p/24885#M13308</link>
      <description>&lt;P&gt;Ahh.. yes good catch..must have screwed that up while messing with the params.. however I'm still not having any luck with&lt;/P&gt;&lt;PRE&gt;response = transaction.update_payment_profile(cim_payment_profile, current_user.customer_profile_id, :validation_mode =&amp;gt; :none)&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;or&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;response = transaction.update_payment_profile(cim_payment_profile, payment_profile.customer_profile_id, :validation_mode =&amp;gt; :none)&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;still trying...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Mar 2012 19:03:41 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/CIM-update-payment-profile-always-returns-nil/m-p/24885#M13308</guid>
      <dc:creator>mbishop541</dc:creator>
      <dc:date>2012-03-23T19:03:41Z</dc:date>
    </item>
    <item>
      <title>Re: CIM update payment profile always returns nil</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/CIM-update-payment-profile-always-returns-nil/m-p/24889#M13310</link>
      <description>&lt;P&gt;Not sure if this is the problem, but they all said&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;If this transaction has already been run, this method will return nil. Otherwise it will return an AuthorizeNet::CIM::Response object.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;Maybe you need a new transaction object?&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;&lt;BR /&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Mar 2012 19:25:20 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/CIM-update-payment-profile-always-returns-nil/m-p/24889#M13310</guid>
      <dc:creator>RaynorC1emen7</dc:creator>
      <dc:date>2012-03-23T19:25:20Z</dc:date>
    </item>
    <item>
      <title>Re: CIM update payment profile always returns nil</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/CIM-update-payment-profile-always-returns-nil/m-p/24893#M13312</link>
      <description>&lt;P&gt;WOOO! &amp;nbsp;Thanks..that was exactly the problem. I guess it never really dawned on me thats what that meant, I guess I thought it ignored duplicate update requests... Thanks again.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Mar 2012 20:15:43 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/CIM-update-payment-profile-always-returns-nil/m-p/24893#M13312</guid>
      <dc:creator>mbishop541</dc:creator>
      <dc:date>2012-03-23T20:15:43Z</dc:date>
    </item>
  </channel>
</rss>

