<?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: Can't Find getHostedProfilePage within the SDK in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Can-t-Find-getHostedProfilePage-within-the-SDK/m-p/26327#M14001</link>
    <description>&lt;P&gt;Hi there mixin_mobile,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Unfortunately Authorize.Net is prohibited from providing you with any kind of legal advice. We suggest seeking legal guidance to ensure full compliance with the terms of the Software Development Kit License Agreement.&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>Tue, 08 May 2012 19:36:19 GMT</pubDate>
    <dc:creator>Michelle</dc:creator>
    <dc:date>2012-05-08T19:36:19Z</dc:date>
    <item>
      <title>Can't Find getHostedProfilePage within the SDK</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Can-t-Find-getHostedProfilePage-within-the-SDK/m-p/25803#M13748</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to develop the CIM for an e-commerce cart. I have everything built except the ability to get the token. The XML documentation says to use the getHostedProfilePageRequest, yet I found none in the PHP SDK.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can anyone tell me if this exists?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Nick&lt;/P&gt;</description>
      <pubDate>Fri, 20 Apr 2012 21:57:11 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Can-t-Find-getHostedProfilePage-within-the-SDK/m-p/25803#M13748</guid>
      <dc:creator>bcse_nick</dc:creator>
      <dc:date>2012-04-20T21:57:11Z</dc:date>
    </item>
    <item>
      <title>Re: Can't Find getHostedProfilePage within the SDK</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Can-t-Find-getHostedProfilePage-within-the-SDK/m-p/25805#M13749</link>
      <description>&lt;P&gt;It not in the SDKs yet. But one of the user post some php code&amp;nbsp; for it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A target="_blank" href="http://community.developer.authorize.net/t5/Integration-and-Testing/GetHostedProfilePage-API-call-How-To-Use-It/m-p/18118/highlight/true#M10076"&gt;http://community.developer.authorize.net/t5/Integration-and-Testing/GetHostedProfilePage-API-call-How-To-Use-It/m-p/18118/highlight/true#M10076&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 21 Apr 2012 00:06:57 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Can-t-Find-getHostedProfilePage-within-the-SDK/m-p/25805#M13749</guid>
      <dc:creator>RaynorC1emen7</dc:creator>
      <dc:date>2012-04-21T00:06:57Z</dc:date>
    </item>
    <item>
      <title>Re: Can't Find getHostedProfilePage within the SDK</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Can-t-Find-getHostedProfilePage-within-the-SDK/m-p/25813#M13753</link>
      <description>&lt;P&gt;I'm doing a rails project for a contract and I'm also having the same issues integrating with the hosted version CIM offers. &amp;nbsp;This is a critical method and the documentation kind of glazes over it and none of the SDK's/sample seem to give an example of calling or support for calling it. &amp;nbsp;I've figured out how to call it and actually also have found the source to the authorize_net gem (&lt;A target="_blank" href="https://github.com/joevandyk/authorize-net)"&gt;https://github.com/joevandyk/authorize-net)&lt;/A&gt;&amp;nbsp;and could integrate it without too much trouble it looks like, however, it looks like the license is pretty restrictive. &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What my question is, and this is geared more towards authorize.net legal and/or support: &amp;nbsp;&lt;STRONG&gt;Is it OK according to the license that I fork the above repository and add the getHostedProfilePage so I can use this with my production app? &amp;nbsp;I will contribute back the changes so that other users can take advantage of this functionality.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For those that have been struggling with this here is a workaround for ruby. &amp;nbsp;Should be similar in other languages as it's a POX service:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;PRE&gt;module HostedCimTransaction
  def get_hosted_profile_page(profile_id, options = {})
    payload = &amp;lt;&amp;lt;END_OF_MESSAGE
&amp;lt;?xml version="1.0" encoding="utf-8"?&amp;gt;
&amp;lt;getHostedProfilePageRequest xmlns="AnetApi/xml/v1/schema/AnetApiSchema.xsd"&amp;gt;
  &amp;lt;merchantAuthentication&amp;gt;
    &amp;lt;name&amp;gt;#{AUTHORIZE_NET_CONFIG['api_login_id']}&amp;lt;/name&amp;gt;
    &amp;lt;transactionKey&amp;gt;#{AUTHORIZE_NET_CONFIG['api_transaction_key']}&amp;lt;/transactionKey&amp;gt;
  &amp;lt;/merchantAuthentication&amp;gt;
  &amp;lt;customerProfileId&amp;gt;#{profile_id}&amp;lt;/customerProfileId&amp;gt;
&amp;lt;/getHostedProfilePageRequest&amp;gt;
END_OF_MESSAGE
    
    url = URI.parse("#{get_gateway(options)}/getHostedProfilePage")
    request = Net::HTTP::Post.new(url.path)
    request.content_type = 'text/xml'
    request.body = payload
    connection = Net::HTTP.new(url.host, url.port)
    connection.use_ssl = true
    response = HostedCimResponse.new(connection.start {|http| http.request(request)}, nil)
    return response
  end
  def get_gateway(options)
    case options[:gateway]
      when :sandbox, :test
        return '&lt;A target="_blank" href="https://api.authorize.net/xml/v1/request.api'"&gt;https://apitest.authorize.net/xml/v1/request.api'&lt;/A&gt;
      when :production, :live
        return '&lt;A target="_blank" href="https://apitest.authorize.net/xml/v1/request.api'"&gt;https://api.authorize.net/xml/v1/request.api'&lt;/A&gt;
      else
        return options[:gateway]
      end
  end
end&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;class HostedCimResponse &amp;lt; AuthorizeNet::XmlResponse
  def initialize(raw_response, transaction)
    super
    unless connection_failure?
      begin
        @token = node_child_content_unless_nil(@root.at_css('token'))
      rescue
        @raw_response = $!
      end
    end
  end

  def token
    @token
  end
end&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Sat, 21 Apr 2012 23:58:52 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Can-t-Find-getHostedProfilePage-within-the-SDK/m-p/25813#M13753</guid>
      <dc:creator>mixin_mobile</dc:creator>
      <dc:date>2012-04-21T23:58:52Z</dc:date>
    </item>
    <item>
      <title>Re: Can't Find getHostedProfilePage within the SDK</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Can-t-Find-getHostedProfilePage-within-the-SDK/m-p/25815#M13754</link>
      <description>&lt;P&gt;Sorry all. &amp;nbsp;The response class should be this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;class HostedCimResponse &amp;lt; AuthorizeNet::XmlResponse
  def initialize(raw_response, transaction)
    puts raw_response
    super
    unless connection_failure?
      begin
        @token = node_content_unless_nil(@root.at_css('token'))
      rescue
        @raw_response = $!
      end
    end
  end

  def token
    @token
  end
end&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 22 Apr 2012 00:06:04 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Can-t-Find-getHostedProfilePage-within-the-SDK/m-p/25815#M13754</guid>
      <dc:creator>mixin_mobile</dc:creator>
      <dc:date>2012-04-22T00:06:04Z</dc:date>
    </item>
    <item>
      <title>Re: Can't Find getHostedProfilePage within the SDK</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Can-t-Find-getHostedProfilePage-within-the-SDK/m-p/26327#M14001</link>
      <description>&lt;P&gt;Hi there mixin_mobile,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Unfortunately Authorize.Net is prohibited from providing you with any kind of legal advice. We suggest seeking legal guidance to ensure full compliance with the terms of the Software Development Kit License Agreement.&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>Tue, 08 May 2012 19:36:19 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Can-t-Find-getHostedProfilePage-within-the-SDK/m-p/26327#M14001</guid>
      <dc:creator>Michelle</dc:creator>
      <dc:date>2012-05-08T19:36:19Z</dc:date>
    </item>
  </channel>
</rss>

