<?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: ruby sdk API for encrypted data in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/ruby-sdk-API-for-encrypted-data/m-p/50110#M25609</link>
    <description>&lt;P&gt;Hello &lt;a href="https://community.developer.cybersource.com/t5/user/viewprofilepage/user-id/18100"&gt;@sa_jiva&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I've reported this to the API team and they are looking at creating some sample code for you. &amp;nbsp;As soon as it's available, I'll post it here.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would recommend subscribing to this topic so that you'll be alerted via email if anyone from the community is able to respond with any comments. To subscribe, click Topic Options at the top of this thread and then select Subscribe. You'll then receive an email once anyone replies.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;&lt;BR /&gt;Richard&lt;/P&gt;</description>
    <pubDate>Thu, 26 Mar 2015 22:44:20 GMT</pubDate>
    <dc:creator>RichardH</dc:creator>
    <dc:date>2015-03-26T22:44:20Z</dc:date>
    <item>
      <title>ruby sdk API for encrypted data</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/ruby-sdk-API-for-encrypted-data/m-p/50066#M25568</link>
      <description>&lt;P&gt;I am using the sdk-ruby gem 'authorizenet' in my rails app that integrates with a mobile app. I need to write code that will create a transaction with encrypted data which is going to be passed to my api by the mobile app (through swipe card reader).&lt;/P&gt;&lt;P&gt;I was looking at the authorizenet gem documentation and found this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A target="_blank" href="https://github.com/AuthorizeNet/sdk-ruby"&gt;https://github.com/AuthorizeNet/sdk-ruby&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Apple pay example&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN class="pl-k"&gt;require&lt;/SPAN&gt; &lt;SPAN class="pl-s"&gt;&lt;SPAN class="pl-pds"&gt;'&lt;/SPAN&gt;rubygems&lt;SPAN class="pl-pds"&gt;'&lt;/SPAN&gt;&lt;/SPAN&gt;
  &lt;SPAN class="pl-k"&gt;require&lt;/SPAN&gt; &lt;SPAN class="pl-s"&gt;&lt;SPAN class="pl-pds"&gt;'&lt;/SPAN&gt;authorizenet&lt;SPAN class="pl-pds"&gt;'&lt;/SPAN&gt;&lt;/SPAN&gt;

  &lt;SPAN class="pl-k"&gt;include&lt;/SPAN&gt; &lt;SPAN class="pl-c1"&gt;AuthorizeNet&lt;/SPAN&gt;::&lt;SPAN class="pl-c1"&gt;API&lt;/SPAN&gt;

  transaction &lt;SPAN class="pl-k"&gt;=&lt;/SPAN&gt; &lt;SPAN class="pl-c1"&gt;Transaction&lt;/SPAN&gt;.&lt;SPAN class="pl-k"&gt;new&lt;/SPAN&gt;(&lt;SPAN class="pl-s"&gt;&lt;SPAN class="pl-pds"&gt;'&lt;/SPAN&gt;5KP3u95bQpv&lt;SPAN class="pl-pds"&gt;'&lt;/SPAN&gt;&lt;/SPAN&gt;, &lt;SPAN class="pl-s"&gt;&lt;SPAN class="pl-pds"&gt;'&lt;/SPAN&gt;4Ktq966gC55GAX7S&lt;SPAN class="pl-pds"&gt;'&lt;/SPAN&gt;&lt;/SPAN&gt;, &lt;SPAN class="pl-c1"&gt;:gateway&lt;/SPAN&gt; =&amp;gt; &lt;SPAN class="pl-c1"&gt;:sandbox&lt;/SPAN&gt;)
  request &lt;SPAN class="pl-k"&gt;=&lt;/SPAN&gt; &lt;SPAN class="pl-c1"&gt;CreateTransactionRequest&lt;/SPAN&gt;.&lt;SPAN class="pl-k"&gt;new&lt;/SPAN&gt;
  request.transactionRequest &lt;SPAN class="pl-k"&gt;=&lt;/SPAN&gt; &lt;SPAN class="pl-c1"&gt;TransactionRequestType&lt;/SPAN&gt;.&lt;SPAN class="pl-k"&gt;new&lt;/SPAN&gt;
  request.transactionRequest.amount &lt;SPAN class="pl-k"&gt;=&lt;/SPAN&gt; &lt;SPAN class="pl-c1"&gt;39.55&lt;/SPAN&gt;

  request.transactionRequest.payment &lt;SPAN class="pl-k"&gt;=&lt;/SPAN&gt; &lt;SPAN class="pl-c1"&gt;PaymentType&lt;/SPAN&gt;.&lt;SPAN class="pl-k"&gt;new&lt;/SPAN&gt;
  request.transactionRequest.payment.opaqueData = OpaqueDataType.new('COMMON.APPLE.INAPP.PAYMENT','eyJkYXRhIjoiQkRQTldTdE1tR2V3UVVXR2c0bzdFXC9qKzFjcTFUNzhxeVU4NGI2N2l0amNZSTh3UFlBT2hzaGpoWlBycWRVcjRYd1BNYmo0emNHTWR5KysxSDJWa1BPWStCT01GMjV1YjE5Y1g0bkN2a1hVVU9UakRsbEIxVGdTcjhKSFp4Z3A5ckNnc1NVZ2JCZ0tmNjBYS3V0WGY2YWpcL284WkliS25yS1E4U2gwb3VMQUtsb1VNbit2UHU0K0E3V0tycXJhdXo5SnZPUXA2dmhJcStIS2pVY1VOQ0lUUHlGaG1PRXRxK0grdzB2UmExQ0U2V2hGQk5uQ0hxenpXS2NrQlwvMG5xTFpSVFliRjBwK3Z5QmlWYVdIZWdoRVJmSHhSdGJ6cGVjelJQUHVGc2ZwSFZzNDhvUExDXC9rXC8xTU5kNDdrelwvcEhEY1JcL0R5NmFVTStsTmZvaWx5XC9RSk4rdFMzbTBIZk90SVNBUHFPbVhlbXZyNnhKQ2pDWmxDdXcwQzltWHpcL29iSHBvZnVJRVM4cjljcUdHc1VBUERwdzdnNjQybTRQendLRitIQnVZVW5lV0RCTlNEMnU2amJBRzMiLCJ2ZXJzaW9uIjoiR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xTS2Z1U2dRWDhLWFFZdVpMazJScjYzTjhBcFhzWHdCTDNjSjB4Z2VBd2dkMENBUUV3T3pBbk1TVXdJd1lEVlFRREhod0FZd0JvQUcwQVlRQnBBRUFBZGdCcEFITUFZUUF1QUdNQWJ3QnRBaEJjbCtQZjMrVTRwazEzblZEOW53UVFNQWtHQlNzT0F3SWFCUUF3RFFZSktvWklodmNOQVFFQkJRQUVnWUJhSzNFbE9zdGJIOFdvb3NlREFCZitKZ1wvMTI5SmNJYXdtN2M2VnhuN1phc05iQXEzdEF0OFB0eSt1UUNnc3NYcVprTEE3a3oyR3pNb2xOdHY5d1ltdTlVandhcjFQSFlTK0JcL29Hbm96NTkxd2phZ1hXUnowbk1vNXkzTzFLelgwZDhDUkhBVmE4OFNyVjFhNUpJaVJldjNvU3RJcXd2NXh1WmxkYWc2VHI4dz09In0=') 

  request.transactionRequest.transactionType &lt;SPAN class="pl-k"&gt;=&lt;/SPAN&gt; &lt;SPAN class="pl-c1"&gt;TransactionTypeEnum&lt;/SPAN&gt;::&lt;SPAN class="pl-c1"&gt;AuthCaptureTransaction&lt;/SPAN&gt;

  response &lt;SPAN class="pl-k"&gt;=&lt;/SPAN&gt; transaction.create_transaction(request)

  &lt;SPAN class="pl-k"&gt;if&lt;/SPAN&gt; response.messages.resultCode &lt;SPAN class="pl-k"&gt;==&lt;/SPAN&gt; &lt;SPAN class="pl-c1"&gt;MessageTypeEnum&lt;/SPAN&gt;::&lt;SPAN class="pl-c1"&gt;Ok&lt;/SPAN&gt;
    puts &lt;SPAN class="pl-s"&gt;&lt;SPAN class="pl-pds"&gt;"&lt;/SPAN&gt;Successfully made a purchase (authorization code: &lt;SPAN class="pl-pse"&gt;#{&lt;/SPAN&gt;&lt;SPAN class="pl-s1"&gt;response.transactionResponse.authCode&lt;/SPAN&gt;&lt;SPAN class="pl-pse"&gt;&lt;SPAN class="pl-s1"&gt;}&lt;/SPAN&gt;&lt;/SPAN&gt;)&lt;SPAN class="pl-pds"&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt;
  &lt;SPAN class="pl-k"&gt;else&lt;/SPAN&gt;
    &lt;SPAN class="pl-k"&gt;raise&lt;/SPAN&gt; &lt;SPAN class="pl-s"&gt;&lt;SPAN class="pl-pds"&gt;"&lt;/SPAN&gt;Failed to make purchase.&lt;SPAN class="pl-pds"&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt;
  &lt;SPAN class="pl-k"&gt;end&lt;/SPAN&gt;

&lt;/PRE&gt;&lt;P&gt;How do I write similar code for encrypteddata. Does the new model mentioned on the github site support encrypted data? If not, do I have to create the xml request as per the AIM documentation.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried this&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;request.transactionRequest.payment.encrypteTypeData =EncryptedData.new(...)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and got an error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Help on this is much appreciated! TIA&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Mar 2015 07:02:23 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/ruby-sdk-API-for-encrypted-data/m-p/50066#M25568</guid>
      <dc:creator>sa_jiva</dc:creator>
      <dc:date>2015-03-23T07:02:23Z</dc:date>
    </item>
    <item>
      <title>Re: ruby sdk API for encrypted data</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/ruby-sdk-API-for-encrypted-data/m-p/50110#M25609</link>
      <description>&lt;P&gt;Hello &lt;a href="https://community.developer.cybersource.com/t5/user/viewprofilepage/user-id/18100"&gt;@sa_jiva&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I've reported this to the API team and they are looking at creating some sample code for you. &amp;nbsp;As soon as it's available, I'll post it here.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would recommend subscribing to this topic so that you'll be alerted via email if anyone from the community is able to respond with any comments. To subscribe, click Topic Options at the top of this thread and then select Subscribe. You'll then receive an email once anyone replies.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;&lt;BR /&gt;Richard&lt;/P&gt;</description>
      <pubDate>Thu, 26 Mar 2015 22:44:20 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/ruby-sdk-API-for-encrypted-data/m-p/50110#M25609</guid>
      <dc:creator>RichardH</dc:creator>
      <dc:date>2015-03-26T22:44:20Z</dc:date>
    </item>
    <item>
      <title>Re: ruby sdk API for encrypted data</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/ruby-sdk-API-for-encrypted-data/m-p/50127#M25624</link>
      <description>&lt;P&gt;Thanks! Looking forward to seeing the sample code.&lt;/P&gt;</description>
      <pubDate>Mon, 30 Mar 2015 17:35:02 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/ruby-sdk-API-for-encrypted-data/m-p/50127#M25624</guid>
      <dc:creator>sa_jiva</dc:creator>
      <dc:date>2015-03-30T17:35:02Z</dc:date>
    </item>
    <item>
      <title>Re: ruby sdk API for encrypted data</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/ruby-sdk-API-for-encrypted-data/m-p/50253#M25724</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;See the sample code and also notes on pulling the latest SDK code, here:&amp;nbsp;&lt;A href="https://github.com/AuthorizeNet/sdk-ruby/issues/38" target="_blank"&gt;https://github.com/AuthorizeNet/sdk-ruby/issues/38&lt;/A&gt;&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;Brian&lt;/P&gt;</description>
      <pubDate>Wed, 08 Apr 2015 14:41:03 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/ruby-sdk-API-for-encrypted-data/m-p/50253#M25724</guid>
      <dc:creator>brianmc</dc:creator>
      <dc:date>2015-04-08T14:41:03Z</dc:date>
    </item>
    <item>
      <title>Re: ruby sdk API for encrypted data</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/ruby-sdk-API-for-encrypted-data/m-p/50294#M25759</link>
      <description>&lt;P&gt;Hi Brian,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks so much for posting the solution. I tried this with the sample data in the documentation and was able to make a successful transaction. However, when I hook it to the encrypted data coming back from a third party app, I get a response that says "E00027 The transaction was unsuccessful.". The error code is 6 and error text says "The credit card number is invalid". Will only the sample data work for a transaction in a sandbox account ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 13 Apr 2015 17:44:23 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/ruby-sdk-API-for-encrypted-data/m-p/50294#M25759</guid>
      <dc:creator>sa_jiva</dc:creator>
      <dc:date>2015-04-13T17:44:23Z</dc:date>
    </item>
    <item>
      <title>Re: ruby sdk API for encrypted data</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/ruby-sdk-API-for-encrypted-data/m-p/50295#M25760</link>
      <description>&lt;P&gt;&amp;nbsp;Can you confirm the encrypted data is coming from a certified card reader? &amp;nbsp;This needs to be a sandbox-specific reader e.g.&amp;nbsp;&lt;A href="http://authorizenet.posportal.com/idtech-shuttle-for-authorize-net-developers-id-80110010-004-new-black.html" target="_blank"&gt;http://authorizenet.posportal.com/idtech-shuttle-for-authorize-net-developers-id-80110010-004-new-black.html&lt;/A&gt;&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;Brian&lt;/P&gt;</description>
      <pubDate>Mon, 13 Apr 2015 17:59:30 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/ruby-sdk-API-for-encrypted-data/m-p/50295#M25760</guid>
      <dc:creator>brianmc</dc:creator>
      <dc:date>2015-04-13T17:59:30Z</dc:date>
    </item>
    <item>
      <title>Re: ruby sdk API for encrypted data</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/ruby-sdk-API-for-encrypted-data/m-p/50304#M25768</link>
      <description>&lt;P&gt;Yes the app is using&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;IDTech Shuttle for Authorize.Net Developers&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;Was just wondering, should I be using the same sandbox as the app thats swiping the card?&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Apr 2015 05:50:14 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/ruby-sdk-API-for-encrypted-data/m-p/50304#M25768</guid>
      <dc:creator>sa_jiva</dc:creator>
      <dc:date>2015-04-14T05:50:14Z</dc:date>
    </item>
    <item>
      <title>Re: ruby sdk API for encrypted data</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/ruby-sdk-API-for-encrypted-data/m-p/50307#M25771</link>
      <description>Yes, it should be the same sandbox merchant account.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 14 Apr 2015 12:02:55 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/ruby-sdk-API-for-encrypted-data/m-p/50307#M25771</guid>
      <dc:creator>brianmc</dc:creator>
      <dc:date>2015-04-14T12:02:55Z</dc:date>
    </item>
  </channel>
</rss>

