<?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: activemerchant-- The transaction cannot be found in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/activemerchant-The-transaction-cannot-be-found/m-p/64822#M38625</link>
    <description>&lt;P&gt;Answering my own question...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Upon closer examination I realized that the amount of the transaction was 0.&amp;nbsp; That did not compute.&amp;nbsp; Making said amount not 0 fixed the problem.&amp;nbsp; Also, I did this _without_ any reference to the sandbox solution id.&lt;/P&gt;</description>
    <pubDate>Sun, 21 Oct 2018 00:34:19 GMT</pubDate>
    <dc:creator>sandydrum</dc:creator>
    <dc:date>2018-10-21T00:34:19Z</dc:date>
    <item>
      <title>activemerchant-- The transaction cannot be found</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/activemerchant-The-transaction-cannot-be-found/m-p/64821#M38624</link>
      <description>&lt;P&gt;I am using the activemerchant 1.85.0 Gem (2018-Sep) with Rails 5.2 in order to access an Authorize.net sandbox account. Unfortunately this is proving to be a futile effort. I hereby grovel for clues...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The basic issue is that I attempt to authorize a transaction first, and then capture the payment. Everything's ok up until the capture, which fails because of "The transaction cannot be found"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;One clue that I've found so far is to reference a Solution ID, using one of the sandbox solution ids, somewhere in here. Unfortunately, it's not at all clear to me where I would insert this info.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;More particularly...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;gateway = ActiveMerchant::Billing::Base.gateway(:authorize_net).new(&lt;/P&gt;&lt;P&gt;&amp;nbsp; :login =&amp;gt; 'our sandbox id',&lt;/P&gt;&lt;P&gt;&amp;nbsp; :password =&amp;gt; 'our password' )&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;amt = calculate the the amount credit_card = a card that is checked to be valid&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;purchase_options = { customer name, billing address, etc... }&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;auth_response = gateway.authorize(amt, credit_card, purchase_options )&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This produces...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;#:authorize, "response_code"=&amp;gt;1, "response_reason_code"=&amp;gt;"1", "response_reason_text"=&amp;gt;"This transaction has been approved", "avs_result_code"=&amp;gt;"Y", "transaction_id"=&amp;gt;"60110267604", "card_code"=&amp;gt;"P", "authorization_code"=&amp;gt;"D", "cardholder_authentication_code"=&amp;gt;"2", "account_number"=&amp;gt;"1111", "test_request"=&amp;gt;"0", "full_response_code"=&amp;gt;"I00001"}, @@message="This transaction has been approved", @success=true, &lt;a href="https://community.developer.cybersource.com/t5/user/viewprofilepage/user-id/12060"&gt;@Test&lt;/a&gt;=true, @@authorization="60110267604#1111#authorize", @fraud_review=false, @error_code=nil, @emv_authorization=nil, @avs_result={"code"=&amp;gt;"Y", "message"=&amp;gt;"Street address and 5-digit postal code match.", "street_match"=&amp;gt;"Y", "postal_match"=&amp;gt;"Y"}, @cvv_result={"code"=&amp;gt;"P", "message"=&amp;gt;"CVV not processed"}&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Which looks fairly optimistic.&amp;nbsp; But then...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;capture_response = Order.gateway.capture(amount, auth_response.authorization, purchase_options)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;produces...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;#:capture, "response_code"=&amp;gt;3, "response_reason_code"=&amp;gt;"16", "response_reason_text"=&amp;gt;"The transaction cannot be found", "avs_result_code"=&amp;gt;"P", "transaction_id"=&amp;gt;"0", "card_code"=&amp;gt;nil, "authorization_code"=&amp;gt;nil, "cardholder_authentication_code"=&amp;gt;nil, "account_number"=&amp;gt;nil, "test_request"=&amp;gt;"0", "full_response_code"=&amp;gt;"E00027"}, @message="The transaction cannot be found", @success=false, &lt;a href="https://community.developer.cybersource.com/t5/user/viewprofilepage/user-id/12060"&gt;@Test&lt;/a&gt;=true, @authorization="0##capture", @fraud_review=false, @@error_code=nil, @emv_authorization=nil, @avs_result={"code"=&amp;gt;"I", "message"=&amp;gt;"Address not verified.", "street_match"=&amp;gt;nil, "postal_match"=&amp;gt;nil}, @cvv_result={"code"=&amp;gt;nil, "message"=&amp;gt;nil}&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any clues would be greatly appreciated. Thanks.&lt;/P&gt;</description>
      <pubDate>Sun, 21 Oct 2018 00:03:04 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/activemerchant-The-transaction-cannot-be-found/m-p/64821#M38624</guid>
      <dc:creator>sandydrum</dc:creator>
      <dc:date>2018-10-21T00:03:04Z</dc:date>
    </item>
    <item>
      <title>Re: activemerchant-- The transaction cannot be found</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/activemerchant-The-transaction-cannot-be-found/m-p/64822#M38625</link>
      <description>&lt;P&gt;Answering my own question...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Upon closer examination I realized that the amount of the transaction was 0.&amp;nbsp; That did not compute.&amp;nbsp; Making said amount not 0 fixed the problem.&amp;nbsp; Also, I did this _without_ any reference to the sandbox solution id.&lt;/P&gt;</description>
      <pubDate>Sun, 21 Oct 2018 00:34:19 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/activemerchant-The-transaction-cannot-be-found/m-p/64822#M38625</guid>
      <dc:creator>sandydrum</dc:creator>
      <dc:date>2018-10-21T00:34:19Z</dc:date>
    </item>
  </channel>
</rss>

