<?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: Accept Hosted - transactionRequestType.Order causes Unexpected Error in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Accept-Hosted-transactionRequestType-Order-causes-Unexpected/m-p/87965#M55404</link>
    <description>&lt;P&gt;We already found the solution.&lt;/P&gt;&lt;P&gt;In the orderType Class, there was a &lt;STRONG&gt;purchaseOrderDateUTC&lt;/STRONG&gt; property which was set as required.&lt;/P&gt;&lt;P&gt;Delete &lt;STRONG&gt;purchaseOrderDateUTC&lt;/STRONG&gt; property under "Utility/AnetApiSchema.generated.cs"&lt;/P&gt;</description>
    <pubDate>Thu, 02 Nov 2023 07:10:43 GMT</pubDate>
    <dc:creator>rybias87</dc:creator>
    <dc:date>2023-11-02T07:10:43Z</dc:date>
    <item>
      <title>Accept Hosted - transactionRequestType.Order causes Unexpected Error</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Accept-Hosted-transactionRequestType-Order-causes-Unexpected/m-p/66972#M40462</link>
      <description>&lt;P&gt;ASP.Net&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried exacly what is in the sample code:&lt;/P&gt;&lt;P&gt;&lt;A href="https://developer.authorize.net/api/reference/features/accept_hosted.html" target="_blank"&gt;https://developer.authorize.net/api/reference/features/accept_hosted.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;...by going to this link for the&amp;nbsp; sample code&lt;/P&gt;&lt;P&gt;&lt;A href="https://developer.authorize.net/api/reference/#accept-suite-get-an-accept-payment-page" target="_blank"&gt;https://developer.authorize.net/api/reference/#accept-suite-get-an-accept-payment-page&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SAMPLE CODE:&lt;/P&gt;&lt;P&gt;var transactionRequest = new transactionRequestType&lt;BR /&gt;{&lt;BR /&gt;transactionType = transactionTypeEnum.authCaptureTransaction.ToString(), // authorize capture only&lt;BR /&gt;amount = amount,&lt;BR /&gt;order = new orderType&lt;BR /&gt;{&lt;BR /&gt;invoiceNumber = "INV-123456",&lt;BR /&gt;description = "TEST INVOICE"&lt;BR /&gt;}&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Almost everything runs fine, right up to pressing the "Pay" button, then I get:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;"Unexpected error. Please try again."&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;When I comment out the "order = new orderType..." section of the code, EVERYTHING then runs perfectly - the tranaction goes through, the receipt is displayed, email with receipt is received...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;However, I do *NOT* get the invoiceNumber in the order - because I didn't set the values to avoid this weird "Unexpected error...".&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I've ONLY tried this in the Sandbox.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I've also stepped through the code, and the values ARE proerly set before the nonce Token is created.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;It's been many hours hunting for an answer - I can't believe I'm the first person to copy the sample code and have it blow up...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thoughts?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Mar 2019 02:54:37 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Accept-Hosted-transactionRequestType-Order-causes-Unexpected/m-p/66972#M40462</guid>
      <dc:creator>jdr</dc:creator>
      <dc:date>2019-03-16T02:54:37Z</dc:date>
    </item>
    <item>
      <title>Re: Accept Hosted - transactionRequestType.Order causes Unexpected Error</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Accept-Hosted-transactionRequestType-Order-causes-Unexpected/m-p/66973#M40463</link>
      <description>&lt;P&gt;SOLVED - temporarily...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Rolled back the ASP.NET Authroize.Net SDK from version 2.0.0 to version 1.9.6&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I found this posting saying 1.9.7 and 2.0.0 both have issues:&lt;BR /&gt;&lt;A href="https://community.developer.authorize.net/t5/Integration-and-Testing/OrderType-is-causing-Unexpected-error-during-Payment-withour/td-p/65309/highlight/true/page/2" target="_blank"&gt;https://community.developer.authorize.net/t5/Integration-and-Testing/OrderType-is-causing-Unexpected-error-during-Payment-withour/td-p/65309/highlight/true/page/2&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Mar 2019 03:09:12 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Accept-Hosted-transactionRequestType-Order-causes-Unexpected/m-p/66973#M40463</guid>
      <dc:creator>jdr</dc:creator>
      <dc:date>2019-03-16T03:09:12Z</dc:date>
    </item>
    <item>
      <title>Re: Accept Hosted - transactionRequestType.Order causes Unexpected Error</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Accept-Hosted-transactionRequestType-Order-causes-Unexpected/m-p/72808#M45004</link>
      <description>&lt;P&gt;This is crazy.&amp;nbsp; I commented out the New Order information.&amp;nbsp; Who supports this code?&lt;/P&gt;&lt;P&gt;The bug was identified a year and a half ago!&lt;/P&gt;</description>
      <pubDate>Mon, 10 Aug 2020 16:34:37 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Accept-Hosted-transactionRequestType-Order-causes-Unexpected/m-p/72808#M45004</guid>
      <dc:creator>mancusor1929</dc:creator>
      <dc:date>2020-08-10T16:34:37Z</dc:date>
    </item>
    <item>
      <title>Re: Accept Hosted - transactionRequestType.Order causes Unexpected Error</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Accept-Hosted-transactionRequestType-Order-causes-Unexpected/m-p/73718#M45700</link>
      <description>&lt;P&gt;i have same issue kindly suggest a solution please.&lt;/P&gt;</description>
      <pubDate>Mon, 26 Oct 2020 05:38:27 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Accept-Hosted-transactionRequestType-Order-causes-Unexpected/m-p/73718#M45700</guid>
      <dc:creator>Ashar</dc:creator>
      <dc:date>2020-10-26T05:38:27Z</dc:date>
    </item>
    <item>
      <title>Re: Accept Hosted - transactionRequestType.Order causes Unexpected Error</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Accept-Hosted-transactionRequestType-Order-causes-Unexpected/m-p/73722#M45704</link>
      <description>&lt;P&gt;please help me out&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Oct 2020 07:14:53 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Accept-Hosted-transactionRequestType-Order-causes-Unexpected/m-p/73722#M45704</guid>
      <dc:creator>Ashar</dc:creator>
      <dc:date>2020-10-26T07:14:53Z</dc:date>
    </item>
    <item>
      <title>Re: Accept Hosted - transactionRequestType.Order causes Unexpected Error</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Accept-Hosted-transactionRequestType-Order-causes-Unexpected/m-p/87965#M55404</link>
      <description>&lt;P&gt;We already found the solution.&lt;/P&gt;&lt;P&gt;In the orderType Class, there was a &lt;STRONG&gt;purchaseOrderDateUTC&lt;/STRONG&gt; property which was set as required.&lt;/P&gt;&lt;P&gt;Delete &lt;STRONG&gt;purchaseOrderDateUTC&lt;/STRONG&gt; property under "Utility/AnetApiSchema.generated.cs"&lt;/P&gt;</description>
      <pubDate>Thu, 02 Nov 2023 07:10:43 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Accept-Hosted-transactionRequestType-Order-causes-Unexpected/m-p/87965#M55404</guid>
      <dc:creator>rybias87</dc:creator>
      <dc:date>2023-11-02T07:10:43Z</dc:date>
    </item>
  </channel>
</rss>

