<?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 getTransactionDetailsResponse can't retrieve the InvoiceNumber in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/getTransactionDetailsResponse-can-t-retrieve-the-InvoiceNumber/m-p/68307#M41544</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have been searching and testing for a while, I hope someon can help me out here!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using Accept Hosted, with Redirect method, PHP SDK library and PHP language.&lt;/P&gt;&lt;P&gt;I am using WebHook to check notification of authorize+capture. I managed to get the transID and then I use it to run getTransactionDetails.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I get correctly the response and can retrieve the status, so this is work fine:&lt;/P&gt;&lt;P&gt;$status = $response-&amp;gt;getTransaction()-&amp;gt;getTransactionStatus();&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, it seems that I can't retrieve the invoiceNumber or desc. I have set them at the&amp;nbsp; createTransactionRequest step and I can actually see the invoice number and description both on Authorize Payment Step (when redirected to Authorize to enter credit card details) and in my Authorize Sandbox dashboard.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is what I use :&lt;/P&gt;&lt;P&gt;$invoice = $response-&amp;gt;getOrder()-&amp;gt;getInvoiceNumber();&lt;BR /&gt;$desc = $response-&amp;gt;getOrder()-&amp;gt;getDescription();&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have checked the getter and they seem correct so I wonder what is going wrong...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you in advance!&lt;/P&gt;</description>
    <pubDate>Sun, 07 Jul 2019 15:04:17 GMT</pubDate>
    <dc:creator>Maestreldev</dc:creator>
    <dc:date>2019-07-07T15:04:17Z</dc:date>
    <item>
      <title>getTransactionDetailsResponse can't retrieve the InvoiceNumber</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/getTransactionDetailsResponse-can-t-retrieve-the-InvoiceNumber/m-p/68307#M41544</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have been searching and testing for a while, I hope someon can help me out here!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using Accept Hosted, with Redirect method, PHP SDK library and PHP language.&lt;/P&gt;&lt;P&gt;I am using WebHook to check notification of authorize+capture. I managed to get the transID and then I use it to run getTransactionDetails.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I get correctly the response and can retrieve the status, so this is work fine:&lt;/P&gt;&lt;P&gt;$status = $response-&amp;gt;getTransaction()-&amp;gt;getTransactionStatus();&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, it seems that I can't retrieve the invoiceNumber or desc. I have set them at the&amp;nbsp; createTransactionRequest step and I can actually see the invoice number and description both on Authorize Payment Step (when redirected to Authorize to enter credit card details) and in my Authorize Sandbox dashboard.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is what I use :&lt;/P&gt;&lt;P&gt;$invoice = $response-&amp;gt;getOrder()-&amp;gt;getInvoiceNumber();&lt;BR /&gt;$desc = $response-&amp;gt;getOrder()-&amp;gt;getDescription();&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have checked the getter and they seem correct so I wonder what is going wrong...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you in advance!&lt;/P&gt;</description>
      <pubDate>Sun, 07 Jul 2019 15:04:17 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/getTransactionDetailsResponse-can-t-retrieve-the-InvoiceNumber/m-p/68307#M41544</guid>
      <dc:creator>Maestreldev</dc:creator>
      <dc:date>2019-07-07T15:04:17Z</dc:date>
    </item>
    <item>
      <title>Re: getTransactionDetailsResponse can't retrieve the InvoiceNumber</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/getTransactionDetailsResponse-can-t-retrieve-the-InvoiceNumber/m-p/68308#M41545</link>
      <description>&lt;a href="https://community.developer.cybersource.com/t5/user/viewprofilepage/user-id/31414"&gt;@Maestreldev&lt;/a&gt;&lt;BR /&gt;&lt;BR /&gt;The object is one more node down. I am sending you an IM.</description>
      <pubDate>Sun, 07 Jul 2019 20:00:11 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/getTransactionDetailsResponse-can-t-retrieve-the-InvoiceNumber/m-p/68308#M41545</guid>
      <dc:creator>Renaissance</dc:creator>
      <dc:date>2019-07-07T20:00:11Z</dc:date>
    </item>
    <item>
      <title>Re: getTransactionDetailsResponse can't retrieve the InvoiceNumber</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/getTransactionDetailsResponse-can-t-retrieve-the-InvoiceNumber/m-p/68313#M41549</link>
      <description>&lt;P&gt;Thank you! The documentation was misleading since it seems that invoiceNumber is a node of Order, yes, but not that Order is a node of Transaction...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For anyone who is looking for the getter for invoiceNumber, I post here the solution given by Renaissance :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;$result = $response-&amp;gt;getTransaction()-&amp;gt;getOrder()-&amp;gt;getInvoiceNumber();&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again. ;-)&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jul 2019 07:00:27 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/getTransactionDetailsResponse-can-t-retrieve-the-InvoiceNumber/m-p/68313#M41549</guid>
      <dc:creator>Maestreldev</dc:creator>
      <dc:date>2019-07-08T07:00:27Z</dc:date>
    </item>
  </channel>
</rss>

