<?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: Sandbox testing payment error: unexpected error. Please try again. in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Sandbox-testing-payment-error-unexpected-error-Please-try-again/m-p/72051#M44442</link>
    <description>&lt;P&gt;Hi,&lt;BR /&gt;Apologies for the inconvenience caused.&lt;BR /&gt;There seems to be a bug in the way that DateTime values are handled in the C# SDK.&lt;/P&gt;&lt;P&gt;A fix has been sent and is pending release (&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://github.com/AuthorizeNet/sdk-dotnet/pull/257" target="_blank" rel="noopener"&gt;.NET SDK #257&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;).&lt;/P&gt;&lt;P&gt;Your code for doing the payment does not have any issues. I believe the issue is from the GetAnAcceptPaymentPage sample, if you are also using the order information in the request.&lt;/P&gt;&lt;P&gt;A&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;temporary workaround&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;for this is to include a valid date for order.purchaseOrderDateUTC in the format "YYYY-mm-dd".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;transactionRequest = new transactionRequestType {
        amount = "100.00",
        transactionType = transactionTypeEnum.authCaptureTransaction.ToString(),
        order = new orderType {
            invoiceNumber = invoiceId,
            description = invoiceId,
            purchaseOrderDateUTC = new DateTime(2018, 03, 23, 11, 00, 00, DateTimeKind.Utc)
        }
}&lt;/PRE&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;&lt;FONT size="1 2 3 4 5 6 7"&gt;&lt;A href="https://www.upsers.website/" target="_self"&gt;&lt;SPAN&gt;&lt;FONT color="#FFFFFF"&gt;UPSers&lt;/FONT&gt;&lt;/SPAN&gt;&lt;FONT color="#FFFFFF"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/A&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 26 May 2020 04:11:59 GMT</pubDate>
    <dc:creator>Bryant47</dc:creator>
    <dc:date>2020-05-26T04:11:59Z</dc:date>
    <item>
      <title>Sandbox testing payment error: unexpected error. Please try again.</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Sandbox-testing-payment-error-unexpected-error-Please-try-again/m-p/72046#M44439</link>
      <description>&lt;P&gt;I use this integration method &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;BR /&gt;I use your libraries in c# .net. Call getHostedPaymentPageRequest in sandbox environment and get token. I use my loginid and transactionkey.&lt;BR /&gt;Then I redirect to &lt;A href="https://test.authorize.net/payment/payment" target="_blank"&gt;https://test.authorize.net/payment/payment&lt;/A&gt; and post token. Then form for credit card is shown and I write testing card. Get error on button pay: unexpected error. Please try again.&lt;BR /&gt;What I am doing wrong?&lt;/P&gt;</description>
      <pubDate>Mon, 25 May 2020 10:44:18 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Sandbox-testing-payment-error-unexpected-error-Please-try-again/m-p/72046#M44439</guid>
      <dc:creator>stajnert</dc:creator>
      <dc:date>2020-05-25T10:44:18Z</dc:date>
    </item>
    <item>
      <title>Re: Sandbox testing payment error: unexpected error. Please try again.</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Sandbox-testing-payment-error-unexpected-error-Please-try-again/m-p/72051#M44442</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;Apologies for the inconvenience caused.&lt;BR /&gt;There seems to be a bug in the way that DateTime values are handled in the C# SDK.&lt;/P&gt;&lt;P&gt;A fix has been sent and is pending release (&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://github.com/AuthorizeNet/sdk-dotnet/pull/257" target="_blank" rel="noopener"&gt;.NET SDK #257&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;).&lt;/P&gt;&lt;P&gt;Your code for doing the payment does not have any issues. I believe the issue is from the GetAnAcceptPaymentPage sample, if you are also using the order information in the request.&lt;/P&gt;&lt;P&gt;A&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;temporary workaround&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;for this is to include a valid date for order.purchaseOrderDateUTC in the format "YYYY-mm-dd".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;transactionRequest = new transactionRequestType {
        amount = "100.00",
        transactionType = transactionTypeEnum.authCaptureTransaction.ToString(),
        order = new orderType {
            invoiceNumber = invoiceId,
            description = invoiceId,
            purchaseOrderDateUTC = new DateTime(2018, 03, 23, 11, 00, 00, DateTimeKind.Utc)
        }
}&lt;/PRE&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;&lt;FONT size="1 2 3 4 5 6 7"&gt;&lt;A href="https://www.upsers.website/" target="_self"&gt;&lt;SPAN&gt;&lt;FONT color="#FFFFFF"&gt;UPSers&lt;/FONT&gt;&lt;/SPAN&gt;&lt;FONT color="#FFFFFF"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/A&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 26 May 2020 04:11:59 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Sandbox-testing-payment-error-unexpected-error-Please-try-again/m-p/72051#M44442</guid>
      <dc:creator>Bryant47</dc:creator>
      <dc:date>2020-05-26T04:11:59Z</dc:date>
    </item>
    <item>
      <title>Re: Sandbox testing payment error: unexpected error. Please try again.</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Sandbox-testing-payment-error-unexpected-error-Please-try-again/m-p/80125#M50474</link>
      <description>&lt;P&gt;Payroll unexpected error wo how we handle it can you explain it.&lt;/P&gt;&lt;P&gt;&lt;A href="https://apkact.com" target="_self"&gt;https://apkact.com&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 28 Nov 2021 19:43:12 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Sandbox-testing-payment-error-unexpected-error-Please-try-again/m-p/80125#M50474</guid>
      <dc:creator>aqsa1231</dc:creator>
      <dc:date>2021-11-28T19:43:12Z</dc:date>
    </item>
  </channel>
</rss>

