<?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 Adding Invoice/Description to Ruby SDK - AIM in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Adding-Invoice-Description-to-Ruby-SDK-AIM/m-p/50120#M25618</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm working on integrating the AIM payment method using the Ruby SDK. I've followed the instructions in the readme and can successfully process payment:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;  transaction &lt;SPAN class="pl-k"&gt;=&lt;/SPAN&gt; &lt;SPAN class="pl-c1"&gt;AuthorizeNet&lt;/SPAN&gt;::&lt;SPAN class="pl-c1"&gt;AIM&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;API_LOGIN&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;API_KEY&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;)
  credit_card &lt;SPAN class="pl-k"&gt;=&lt;/SPAN&gt; &lt;SPAN class="pl-c1"&gt;AuthorizeNet&lt;/SPAN&gt;::&lt;SPAN class="pl-c1"&gt;CreditCard&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;4111111111111111&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;1120&lt;SPAN class="pl-pds"&gt;'&lt;/SPAN&gt;&lt;/SPAN&gt;)&lt;BR /&gt;
  response &lt;SPAN class="pl-k"&gt;=&lt;/SPAN&gt; transaction.purchase(&lt;SPAN class="pl-s"&gt;&lt;SPAN class="pl-pds"&gt;'&lt;/SPAN&gt;10.00&lt;SPAN class="pl-pds"&gt;'&lt;/SPAN&gt;&lt;/SPAN&gt;, credit_card)&lt;/PRE&gt;&lt;P&gt;Now, I'd like to add an invoice number and description to the transaction before I make a purchase. I'm lost on how to do this - it looks like I need to create an Order object and somehow attach it to the transaction:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;order = AuthorizeNet::Order.new(invoice_num: invoice_number, description: description)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Calling "transaction.order=" doesn't work however. I'm confused because it seems like there are different transaction models for all of the different payment options...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 27 Mar 2015 21:02:18 GMT</pubDate>
    <dc:creator>jrohrbaugh</dc:creator>
    <dc:date>2015-03-27T21:02:18Z</dc:date>
    <item>
      <title>Adding Invoice/Description to Ruby SDK - AIM</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Adding-Invoice-Description-to-Ruby-SDK-AIM/m-p/50120#M25618</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm working on integrating the AIM payment method using the Ruby SDK. I've followed the instructions in the readme and can successfully process payment:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;  transaction &lt;SPAN class="pl-k"&gt;=&lt;/SPAN&gt; &lt;SPAN class="pl-c1"&gt;AuthorizeNet&lt;/SPAN&gt;::&lt;SPAN class="pl-c1"&gt;AIM&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;API_LOGIN&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;API_KEY&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;)
  credit_card &lt;SPAN class="pl-k"&gt;=&lt;/SPAN&gt; &lt;SPAN class="pl-c1"&gt;AuthorizeNet&lt;/SPAN&gt;::&lt;SPAN class="pl-c1"&gt;CreditCard&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;4111111111111111&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;1120&lt;SPAN class="pl-pds"&gt;'&lt;/SPAN&gt;&lt;/SPAN&gt;)&lt;BR /&gt;
  response &lt;SPAN class="pl-k"&gt;=&lt;/SPAN&gt; transaction.purchase(&lt;SPAN class="pl-s"&gt;&lt;SPAN class="pl-pds"&gt;'&lt;/SPAN&gt;10.00&lt;SPAN class="pl-pds"&gt;'&lt;/SPAN&gt;&lt;/SPAN&gt;, credit_card)&lt;/PRE&gt;&lt;P&gt;Now, I'd like to add an invoice number and description to the transaction before I make a purchase. I'm lost on how to do this - it looks like I need to create an Order object and somehow attach it to the transaction:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;order = AuthorizeNet::Order.new(invoice_num: invoice_number, description: description)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Calling "transaction.order=" doesn't work however. I'm confused because it seems like there are different transaction models for all of the different payment options...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Mar 2015 21:02:18 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Adding-Invoice-Description-to-Ruby-SDK-AIM/m-p/50120#M25618</guid>
      <dc:creator>jrohrbaugh</dc:creator>
      <dc:date>2015-03-27T21:02:18Z</dc:date>
    </item>
    <item>
      <title>Re: Adding Invoice/Description to Ruby SDK - AIM</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Adding-Invoice-Description-to-Ruby-SDK-AIM/m-p/50135#M25632</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hi &lt;SPAN class="UserName lia-user-name"&gt;&lt;A id="link_29" class="lia-link-navigation lia-page-link lia-user-name-link" href="https://community.developer.cybersource.com/t5/user/viewprofilepage/user-id/18123" target="_self"&gt;&lt;SPAN class=""&gt;jrohrbaugh&lt;/SPAN&gt;&lt;/A&gt;&lt;/SPAN&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There is not an exact way or method to set the invoice number description with your transaction request. The transaction object allows you to use set_fields to set any AIM API field. Please check: &lt;A href="http://www.rubydoc.info/gems/authorizenet/1.8.3/AuthorizeNet/Transaction:set_fields" target="_blank"&gt;http://www.rubydoc.info/gems/authorizenet/1.8.3/AuthorizeNet/Transaction:set_fields&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Joy&lt;/P&gt;</description>
      <pubDate>Mon, 30 Mar 2015 22:13:38 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Adding-Invoice-Description-to-Ruby-SDK-AIM/m-p/50135#M25632</guid>
      <dc:creator>Joy</dc:creator>
      <dc:date>2015-03-30T22:13:38Z</dc:date>
    </item>
    <item>
      <title>Re: Adding Invoice/Description to Ruby SDK - AIM</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Adding-Invoice-Description-to-Ruby-SDK-AIM/m-p/56858#M31635</link>
      <description>&lt;P&gt;Hi, did you ever figure out how to add the Order object with invoice number and description in Ruby? &amp;nbsp;I'm struggling and the documentation is terrible.&lt;/P&gt;</description>
      <pubDate>Sat, 04 Feb 2017 17:15:10 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Adding-Invoice-Description-to-Ruby-SDK-AIM/m-p/56858#M31635</guid>
      <dc:creator>firebird</dc:creator>
      <dc:date>2017-02-04T17:15:10Z</dc:date>
    </item>
  </channel>
</rss>

