<?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: ANetApiResponse doesn't seem to have a transactionResponse in it -referencing it gives compile e in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/ANetApiResponse-doesn-t-seem-to-have-a-transactionResponse-in-it/m-p/63165#M37344</link>
    <description>&lt;P&gt;I figured it out...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The response was a createTransactionResponse rather than an ANetApiResponse&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dim p_cResponse As New AuthorizeNet.Api.Contracts.V1.createTransactionResponse&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(although does anyone find that class name a bit odd?)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 22 May 2018 15:56:46 GMT</pubDate>
    <dc:creator>deanhupp</dc:creator>
    <dc:date>2018-05-22T15:56:46Z</dc:date>
    <item>
      <title>ANetApiResponse doesn't seem to have a transactionResponse in it -referencing it gives compile error</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/ANetApiResponse-doesn-t-seem-to-have-a-transactionResponse-in-it/m-p/63160#M37339</link>
      <description>&lt;P&gt;I am using .net with Visual Basic.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The following code all works perfectly fine.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;System.Net.ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12&lt;/P&gt;&lt;P&gt;Dim p_cRequest = New createTransactionRequest()&lt;BR /&gt;p_cRequest.transactionRequest = p_cTransactionRequest&lt;/P&gt;&lt;P&gt;Dim p_cController As New createTransactionController(p_cRequest)&lt;/P&gt;&lt;P&gt;p_cController.Execute()&lt;/P&gt;&lt;P&gt;Dim p_cResponse As New ANetApiResponse&lt;/P&gt;&lt;P&gt;p_cResponse = p_cController.GetApiResponse&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The problem I am having is that the&amp;nbsp;sample code (in C#) has a reference like this...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;response.transcationResponse.responseCode&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That line is used to see if the card was approved, declined, etc...&amp;nbsp; The problem I am having is that the p_cResponse object that is set with the&amp;nbsp;&lt;SPAN&gt;p_cController.GetApiResponse line doesn't seem to even *have* a transactionResponse object in it.&amp;nbsp; the intellisense doesn't show it as an addressable option and manually adding it causes a compile error.&amp;nbsp; I am stuck and lost.&amp;nbsp; I thought perhaps I was creating the "wrong" kind of response object but after searching through the doc and looking at what is being returned I think I have declared the same object type that is being returned.&amp;nbsp; Where/how do I get access to the transactionResponse object so I can see if the payment was declined?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If p_cResponse.transactionResponse.responseCode = ... &amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt; line that is problem, acts like transactionResponse is not a member of ANetApiResponse but doc says it should be there.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 May 2018 14:38:36 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/ANetApiResponse-doesn-t-seem-to-have-a-transactionResponse-in-it/m-p/63160#M37339</guid>
      <dc:creator>deanhupp</dc:creator>
      <dc:date>2018-05-22T14:38:36Z</dc:date>
    </item>
    <item>
      <title>Re: ANetApiResponse doesn't seem to have a transactionResponse in it -referencing it gives compile e</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/ANetApiResponse-doesn-t-seem-to-have-a-transactionResponse-in-it/m-p/63165#M37344</link>
      <description>&lt;P&gt;I figured it out...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The response was a createTransactionResponse rather than an ANetApiResponse&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dim p_cResponse As New AuthorizeNet.Api.Contracts.V1.createTransactionResponse&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(although does anyone find that class name a bit odd?)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 May 2018 15:56:46 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/ANetApiResponse-doesn-t-seem-to-have-a-transactionResponse-in-it/m-p/63165#M37344</guid>
      <dc:creator>deanhupp</dc:creator>
      <dc:date>2018-05-22T15:56:46Z</dc:date>
    </item>
    <item>
      <title>Re: ANetApiResponse doesn't seem to have a transactionResponse in it -referencing it gives compile e</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/ANetApiResponse-doesn-t-seem-to-have-a-transactionResponse-in-it/m-p/70439#M43254</link>
      <description>&lt;P&gt;Thank you for figuring this out.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Authorize.Net example at:&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/AuthorizeNet/sample-code-csharp/blob/master/AcceptSuite/CreateAnAcceptPaymentTransaction.cs" target="_blank"&gt;https://github.com/AuthorizeNet/sample-code-csharp/blob/master/AcceptSuite/CreateAnAcceptPaymentTransaction.cs&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;On line 14 has:&lt;/P&gt;&lt;P&gt;public static &lt;STRONG&gt;ANetApiResponse&lt;/STRONG&gt; Run(…&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Where it should be:&lt;/P&gt;&lt;P&gt;public static &lt;STRONG&gt;createTransactionResponse&lt;/STRONG&gt; Run(…&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jan 2020 16:48:15 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/ANetApiResponse-doesn-t-seem-to-have-a-transactionResponse-in-it/m-p/70439#M43254</guid>
      <dc:creator>i10Knoxville</dc:creator>
      <dc:date>2020-01-24T16:48:15Z</dc:date>
    </item>
  </channel>
</rss>

