<?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 Accept Hosted Form Error in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Sandbox-Accept-Hosted-Form-Error/m-p/66615#M40133</link>
    <description>&lt;P&gt;&lt;a href="https://community.developer.cybersource.com/t5/user/viewprofilepage/user-id/7546"&gt;@RichardH&lt;/a&gt;&amp;nbsp;logged this&amp;nbsp;&lt;A href="https://github.com/AuthorizeNet/sdk-dotnet/issues/253" target="_self"&gt;GitHub Issue&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 27 Feb 2019 16:25:02 GMT</pubDate>
    <dc:creator>grantgoodart81</dc:creator>
    <dc:date>2019-02-27T16:25:02Z</dc:date>
    <item>
      <title>Sandbox Accept Hosted Form Error</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Sandbox-Accept-Hosted-Form-Error/m-p/66498#M40032</link>
      <description>&lt;P&gt;&lt;SPAN class="name-and-value"&gt;&lt;SPAN class="name"&gt;We are trying to get off the legacy hosted payment form, but every time I click pay I get the error below:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="name-and-value"&gt;&lt;SPAN class="name"&gt;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="name-and-value"&gt;&lt;SPAN class="name"&gt;messageCode&lt;/SPAN&gt;:&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="object-value-string value"&gt;&lt;SPAN class="object-value-string-quote"&gt;"&lt;/SPAN&gt;E00001&lt;SPAN class="object-value-string-quote"&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="name-and-value"&gt;&lt;SPAN class="name"&gt;messageText&lt;/SPAN&gt;:&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="object-value-string value"&gt;&lt;SPAN class="object-value-string-quote"&gt;"&lt;/SPAN&gt;Unexpected error. Please try again.&lt;SPAN class="object-value-string-quote"&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="name-and-value"&gt;&lt;SPAN class="object-value-string value"&gt;&lt;SPAN class="object-value-string-quote"&gt;The problem is coming when running transactions via the Accept Suite. I am able to use the API Live Console to get reporting data and also get a Accept Hosted Token, but I am unable to process transactions in the sandox at all!?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Feb 2019 15:11:49 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Sandbox-Accept-Hosted-Form-Error/m-p/66498#M40032</guid>
      <dc:creator>grantgoodart81</dc:creator>
      <dc:date>2019-02-22T15:11:49Z</dc:date>
    </item>
    <item>
      <title>Re: Sandbox Accept Hosted Form Error</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Sandbox-Accept-Hosted-Form-Error/m-p/66609#M40127</link>
      <description>My best guess is that your issue is with the post location you are using to call the hosted payment page. Are you using the endpoint in the api docs? The correct endpoint is something like &lt;A href="https://test.authorize.net/payment/payment" target="_blank"&gt;https://test.authorize.net/payment/payment&lt;/A&gt; for the sandbox. Look in the API reference bc I’m going off of memory.</description>
      <pubDate>Wed, 27 Feb 2019 10:42:29 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Sandbox-Accept-Hosted-Form-Error/m-p/66609#M40127</guid>
      <dc:creator>Renaissance</dc:creator>
      <dc:date>2019-02-27T10:42:29Z</dc:date>
    </item>
    <item>
      <title>Re: Sandbox Accept Hosted Form Error</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Sandbox-Accept-Hosted-Form-Error/m-p/66611#M40129</link>
      <description>Nope it has to do with the latest version of the nuget package version. The sandbox accept hosted form will render fine if you pass orderType in the order property, but it will not process the payment due to an internal error. I will post example code in a bit.</description>
      <pubDate>Wed, 27 Feb 2019 13:19:01 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Sandbox-Accept-Hosted-Form-Error/m-p/66611#M40129</guid>
      <dc:creator>grantgoodart81</dc:creator>
      <dc:date>2019-02-27T13:19:01Z</dc:date>
    </item>
    <item>
      <title>Re: Sandbox Accept Hosted Form Error</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Sandbox-Accept-Hosted-Form-Error/m-p/66613#M40131</link>
      <description>&lt;P&gt;I created a new MVC Application in Visual Studio using .NET Framework 4.5.2.&amp;nbsp; &amp;nbsp;The code below works if I use nuget pakckage version&amp;nbsp;&lt;SPAN&gt;1.9.6 if I use 1.9.7 this same payment will fail until I remove the transactionRequest order property.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Global.asax.cs&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;public class MvcApplication : System.Web.HttpApplication
    {
        protected void Application_Start()
        {
            ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12 | SecurityProtocolType.Tls11 | SecurityProtocolType.Tls;
            AreaRegistration.RegisterAllAreas();
            FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);
            RouteConfig.RegisterRoutes(RouteTable.Routes);
            BundleConfig.RegisterBundles(BundleTable.Bundles);
        }
    }&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;HomeController.cs&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;&lt;BR /&gt;&lt;BR /&gt;public class HomeController : Controller
    {
        public ActionResult Index()
        {
            var invoiceId = "18448294934052571560";
            var custacct = "000000000010";
            var custom_data = string.Format("{0}-{1}", invoiceId, custacct);

            ApiOperationBase&amp;lt;ANetApiRequest, ANetApiResponse&amp;gt;.RunEnvironment = AuthorizeNet.Environment.SANDBOX;
            ApiOperationBase&amp;lt;ANetApiRequest, ANetApiResponse&amp;gt;.MerchantAuthentication = new merchantAuthenticationType
            {
                name = "&amp;lt;LoginID&amp;gt;&amp;gt;",
                Item = "&amp;lt;TransactionKey&amp;gt;",
                ItemElementName = ItemChoiceType.transactionKey
            };

            var controller = new getHostedPaymentPageController(new getHostedPaymentPageRequest
            {
                hostedPaymentSettings = new settingType[]
                {
                    new settingType
                    {
                       settingName = "hostedPaymentReturnOptions",
                       settingValue =  string.Format(@"{{""showReceipt"":false,""url"":""{0}""}}",
                       "&amp;lt;Ngrok Address for me&amp;gt;/AuthNetTest/Home/Receipt")
                    },
                    new settingType
                    {
                        settingName = "hostedPaymentButtonOptions",
                        settingValue = "{\"text\":\"Pay\"}"
                    },
                    new settingType
                    {
                        settingName = "hostedPaymentPaymentOptions",
                        settingValue = string.Format(@"{{""cardCodeRequired"": false, ""showCreditCard"": {0}, ""showBankAccount"": {1}}}",
                            "true",
                            "false")
                    },
                    new settingType
                    {
                        settingName = "hostedPaymentSecurityOptions",
                        settingValue = "{\"captcha\": false}"
                    },
                    new settingType
                    {
                        settingName = "hostedPaymentShippingAddressOptions",
                        settingValue = "{\"show\": false, \"required\": false}"
                    },
                    new settingType
                    {
                        settingName = "hostedPaymentBillingAddressOptions",
                        settingValue = "{\"show\": true, \"required\": false}"
                    },
                    new settingType
                    {
                        settingName = "hostedPaymentCustomerOptions",
                        settingValue = "{\"showEmail\": true, \"requiredEmail\": false, \"addPaymentProfile\": false}"
                    }
                },
                transactionRequest = new transactionRequestType
                {
                    amount = 10.00M,
                    transactionType = transactionTypeEnum.authCaptureTransaction.ToString(),
                    order = new orderType
                    {
                        invoiceNumber = invoiceId,
                        description = invoiceId,

                    },
                    userFields = new userField[]
                    {
                        new userField
                        {
                            name = nameof(custom_data),
                            value = custom_data
                        }
                    }

                },

            });

            var hostedPaymentResult =  controller.ExecuteWithApiResponse();
            ViewBag.Token = hostedPaymentResult.token;
            return View();
        }

        public ActionResult Receipt()
        {
            ViewBag.Message = "Payment Finished";

            return View();
        }&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;Index.cshtml&lt;/P&gt;&lt;PRE&gt;@{
    ViewBag.Title = "Home Page";
}

&amp;lt;form method="post" action="https://test.authorize.net/payment/payment" id="formAuthorizeNetTestPage" name="formAuthorizeNetTestPage"&amp;gt;
    &amp;lt;input type="hidden" name="token" value="@(ViewBag.Token)" /&amp;gt;
    Continue to Authorize.Net to Payment Page
    &amp;lt;button id="btnContinue"&amp;gt;Continue to next page&amp;lt;/button&amp;gt;
&amp;lt;/form&amp;gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 27 Feb 2019 14:46:44 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Sandbox-Accept-Hosted-Form-Error/m-p/66613#M40131</guid>
      <dc:creator>grantgoodart81</dc:creator>
      <dc:date>2019-02-27T14:46:44Z</dc:date>
    </item>
    <item>
      <title>Re: Sandbox Accept Hosted Form Error</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Sandbox-Accept-Hosted-Form-Error/m-p/66614#M40132</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.developer.cybersource.com/t5/user/viewprofilepage/user-id/15584"&gt;@grantgoodart81&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This looks similar to an &lt;A href="https://community.developer.authorize.net/t5/Integration-and-Testing/OrderType-is-causing-Unexpected-error-during-Payment-withour/m-p/65309/highlight/true#M38996" target="_self"&gt;earlier thread&lt;/A&gt; but I don't see a solution yet.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I will escalate this to a support engineer, but I would also suggest raising an issue on GitHub.&amp;nbsp; Doing so will notify the team working on this SDK directly.&lt;BR /&gt;&lt;BR /&gt;Richard&lt;/P&gt;</description>
      <pubDate>Wed, 27 Feb 2019 15:48:18 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Sandbox-Accept-Hosted-Form-Error/m-p/66614#M40132</guid>
      <dc:creator>RichardH</dc:creator>
      <dc:date>2019-02-27T15:48:18Z</dc:date>
    </item>
    <item>
      <title>Re: Sandbox Accept Hosted Form Error</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Sandbox-Accept-Hosted-Form-Error/m-p/66615#M40133</link>
      <description>&lt;P&gt;&lt;a href="https://community.developer.cybersource.com/t5/user/viewprofilepage/user-id/7546"&gt;@RichardH&lt;/a&gt;&amp;nbsp;logged this&amp;nbsp;&lt;A href="https://github.com/AuthorizeNet/sdk-dotnet/issues/253" target="_self"&gt;GitHub Issue&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Feb 2019 16:25:02 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Sandbox-Accept-Hosted-Form-Error/m-p/66615#M40133</guid>
      <dc:creator>grantgoodart81</dc:creator>
      <dc:date>2019-02-27T16:25:02Z</dc:date>
    </item>
    <item>
      <title>Re: Sandbox Accept Hosted Form Error</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Sandbox-Accept-Hosted-Form-Error/m-p/69855#M42796</link>
      <description>&lt;P&gt;Plz help,&lt;BR /&gt;Getting error in Sanbox mode, when trying to payment via AuthroziedNet_AccpetHosted&lt;/P&gt;&lt;P&gt;see the &lt;A title="Screenshot" href="https://snipboard.io/4RU21g.jpg" target="_blank" rel="noopener"&gt;Screenshot&lt;/A&gt; i have linked&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 29 Nov 2019 07:21:17 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Sandbox-Accept-Hosted-Form-Error/m-p/69855#M42796</guid>
      <dc:creator>hybrid01</dc:creator>
      <dc:date>2019-11-29T07:21:17Z</dc:date>
    </item>
  </channel>
</rss>

