<?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 Form problems in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Accept-Hosted-Form-problems/m-p/58693#M33308</link>
    <description>&lt;P&gt;Aaron,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;First, here is the Github doc I have been following to create the API request: &lt;A href="https://github.com/AuthorizeNet/sample-code-csharp/blob/master/PaymentTransactions/GetAnAcceptPaymentPage.cs" target="_self"&gt;https://github.com/AuthorizeNet/sample-code-csharp/blob/master/PaymentTransactions/GetAnAcceptPaymentPage.cs&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the C# server code I am using to generate the Token based on that sample code page&lt;/P&gt;&lt;PRE&gt;public static string GetANetToken(decimal amount)
		{
			System.Net.ServicePointManager.SecurityProtocol = System.Net.SecurityProtocolType.Ssl3 | System.Net.SecurityProtocolType.Tls12;
#if DEBUG
			ApiOperationBase&amp;lt;ANetApiRequest, ANetApiResponse&amp;gt;.RunEnvironment = AuthorizeNet.Environment.SANDBOX;
#else
			ApiOperationBase&amp;lt;ANetApiRequest, ANetApiResponse&amp;gt;.RunEnvironment = AuthorizeNet.Environment.HOSTED_VM;
#endif
			ApiOperationBase&amp;lt;ANetApiRequest, ANetApiResponse&amp;gt;.MerchantAuthentication = new merchantAuthenticationType()
			{
				name = AFMerch,
				ItemElementName = ItemChoiceType.transactionKey,
				Item = AFTrans
			};
			var transactionRequest = new transactionRequestType
			{
				transactionType = transactionTypeEnum.authCaptureTransaction.ToString(),
				amount = amount,
				amountSpecified = true
			};
			
			var request = new getHostedPaymentPageRequest();
			request.transactionRequest = transactionRequest;
			var settings = new List&amp;lt;settingType&amp;gt;();
			settings.Add(new settingType()
			{
				settingName = settingNameEnum.hostedPaymentButtonOptions.ToString(),
				settingValue = @"{""text"": ""Donate""}"
			});
			settings.Add(new settingType()
			{
				settingName = settingNameEnum.hostedPaymentOrderOptions.ToString(),
				settingValue = @"{""show"": false}"
			});
			settings.Add(new settingType()
			{
				settingName = settingNameEnum.hostedPaymentShippingAddressOptions.ToString(),
				settingValue = @"{""show"" : false }"
			});
			settings.Add(new settingType()
			{
				settingName = settingNameEnum.hostedPaymentBillingAddressOptions.ToString(),
				settingValue = @"{""show"" : true, ""required"" : true }"
			});
			settings.Add(new settingType()
			{
				settingName = settingNameEnum.hostedPaymentReturnOptions.ToString(),
				settingValue = @"{ ""showReceipt"" : true, ""url"" : ""https://www.uwlax.edu/foundation2/"", ""urlText"" : ""Continue"", ""cancelUrl"" : ""https://www.uwlax.edu/foundation2/?transaction=cancelled"" }"
			});
			request.hostedPaymentSettings = settings.ToArray();

			UwlSharedClassLibrary.Helpers.General.WriteLog.LogObject(request);
			var controller = new getHostedPaymentPageController(request);
			controller.Execute();
			var response = controller.GetApiResponse();
			if(response != null &amp;amp;&amp;amp; response.messages.resultCode == messageTypeEnum.Ok)
			{
				return response.token;
			}
			else
			{
				return "";
			}
			//System.Net.ServicePointManager.SecurityProtocol = System.Net.SecurityProtocolType.Ssl3;
		}&lt;/PRE&gt;&lt;P&gt;If some of the names aren't your field names, is the C# API access point out of date, or is that sample page out of date perhaps?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After the token is generated, the form posts to &lt;A href="https://test.authorize.net/payment/payment/" target="_blank"&gt;https://test.authorize.net/payment/payment/&lt;/A&gt;. I have tried different browsers (Chrome, Firefox and IE 11), but am unable to test different networks yet since the page is in development and only exists on my dev machine and a server on our network.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Mason&lt;/P&gt;</description>
    <pubDate>Thu, 06 Jul 2017 17:04:26 GMT</pubDate>
    <dc:creator>uwlmhardy</dc:creator>
    <dc:date>2017-07-06T17:04:26Z</dc:date>
    <item>
      <title>Accept Hosted Form problems</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Accept-Hosted-Form-problems/m-p/57511#M32227</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am successfully getting a token from the getHostedPaymentPageRequest.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I then post the hidden token to the payment api and getting HTML returned. However, the CSS and Script tags are not being found and the button text is not being replaced. I'm very confused.&amp;nbsp;heres some HTML as example:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;lt;script src="&lt;STRONG&gt;../&lt;/STRONG&gt;payment/scripts/components/paymentComponent/1_0/payment-min.js"&amp;gt;&amp;lt;/script&amp;gt; &amp;lt;script src="&lt;STRONG&gt;../&lt;/STRONG&gt;payment/scripts/components/addressComponent/1_0/address-min.js"&amp;gt;&amp;lt;/script&amp;gt; &amp;lt;script src="&lt;STRONG&gt;../&lt;/STRONG&gt;payment/scripts/components/bankAccountComponent/1_0/bankAccount-min.js"&amp;gt;&amp;lt;/script&amp;gt; &amp;lt;script src="&lt;STRONG&gt;scripts&lt;/STRONG&gt;/app-min.js"&amp;gt;&amp;lt;/script&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;lt;button class="btn btn-primary payButton pull-right bg-color" id="payBtn" ng-click="payBtnHandler()" ng-disabled="!(paymentForm.$valid &amp;amp;amp;&amp;amp;amp; isValidCaptchResponse)"&amp;gt;&lt;STRONG&gt;{{payButtonText}}&lt;/STRONG&gt;&amp;lt;/button&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt;Zach&lt;/P&gt;</description>
      <pubDate>Tue, 04 Apr 2017 02:24:10 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Accept-Hosted-Form-problems/m-p/57511#M32227</guid>
      <dc:creator>ZachE844</dc:creator>
      <dc:date>2017-04-04T02:24:10Z</dc:date>
    </item>
    <item>
      <title>Re: Accept Hosted Form problems</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Accept-Hosted-Form-problems/m-p/57514#M32228</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.developer.cybersource.com/t5/user/viewprofilepage/user-id/21490"&gt;@ZachE844&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you give us a little more information?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For example, could you give us a sample token request so we can see what parameters you're sending in the request with which values?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Which URL are you posting the token to?&lt;/P&gt;</description>
      <pubDate>Tue, 04 Apr 2017 17:18:48 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Accept-Hosted-Form-problems/m-p/57514#M32228</guid>
      <dc:creator>Aaron</dc:creator>
      <dc:date>2017-04-04T17:18:48Z</dc:date>
    </item>
    <item>
      <title>Re: Accept Hosted Form problems</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Accept-Hosted-Form-problems/m-p/58623#M33244</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.developer.cybersource.com/t5/user/viewprofilepage/user-id/20843"&gt;@Aaron&lt;/a&gt;&amp;nbsp;and&amp;nbsp;&lt;a href="https://community.developer.cybersource.com/t5/user/viewprofilepage/user-id/21490"&gt;@ZachE844&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Was there ever a solution to this? I am encountering the same issues at the moment, with every JS/CSS file in the sandbox returning a 550 error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Mason&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jun 2017 19:57:10 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Accept-Hosted-Form-problems/m-p/58623#M33244</guid>
      <dc:creator>uwlmhardy</dc:creator>
      <dc:date>2017-06-28T19:57:10Z</dc:date>
    </item>
    <item>
      <title>Re: Accept Hosted Form problems</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Accept-Hosted-Form-problems/m-p/58624#M33245</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.developer.cybersource.com/t5/user/viewprofilepage/user-id/21950"&gt;@uwlmhardy&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Looks like the original poster never followed up, but I'll pose the same questions to you:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you give us a little more information?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For example, could you give us a sample token request so we can see what parameters you're sending in the request with which values?&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jun 2017 19:59:55 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Accept-Hosted-Form-problems/m-p/58624#M33245</guid>
      <dc:creator>Aaron</dc:creator>
      <dc:date>2017-06-28T19:59:55Z</dc:date>
    </item>
    <item>
      <title>Re: Accept Hosted Form problems</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Accept-Hosted-Form-problems/m-p/58625#M33246</link>
      <description>&lt;P&gt;&lt;a href="https://community.developer.cybersource.com/t5/user/viewprofilepage/user-id/20843"&gt;@Aaron&lt;/a&gt;&amp;nbsp;Here's a sample token:&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;xQT8BEA7RlM7qGDZEtTSiRtTLeFaO6GOud8ICMH5UzO5jNjdgfqQQGyTUhlIHpHoMsEgzF3zj/WbXIjJzNnsIuhV1Ckh9l/aJ18alhgLDnnS7fJ7Ta+kbBXm+bRdJR9ZfaW8a83FaNwThXVWxCikdB8snlgasX1fonOoZx2KibKXo+HwsoXywXuZvnnrOyseYgIG5yT7yuj1rv8JbXRodR3fCwcEBO1ID4ZdQ4OlmNNN48xhQVPuMnfZqHPVAUpLTdZXgV4QqRwEaMeomOVsuE0fm0YhejQLgVkjW/cFP2QzfrexhNr6a9wVAM9Mz8RWXf2EdX3f+EispzHapGxInNU90t1NaMOBUJ7u4y3FqlitR31HOh8XAc4zWvnAlcNxgi16J/s2DSps1/Z0kpS/o8Vn+PP0RSgH92TvJyW5wFhHi4P8WBhJWpDhiozZKPncXJJSshxCjxygeCb7maray2lMfkWd+uGoYBtufdmkp4qYhkC7KNTRwdIMcRlhmIZ4k+sppQp9Qsw+5qVBkViVjzkWwAVxGwejXQ+VCO1w3U3e02cj98j9tQM8YbIgDkoV9xEF0GIZs3dwE76CARcVnARKh3AZZWBOXUoTF8bGnqZRdpfR1A2C6EFMFPYzH0dYN64apHdvGMThUChLv45aOn1lwq7+X5fyF+kEz46XIPsiqfblsFfJJjclNCmjkrszzVt+Lo8PlW5ZEFWHe/Y/LpiGXaAgOosMTomr7tsXFC7EX3EoEN9IxWt7OGc/3/rZCH79Qnkg4hD1X5Y3EsUD+cn6VmAkLEDaxn7WrT+qeC7YYSogvkjLpjUdlt2ysCDfVCXdiWgLjktIX41xz/yYpIJMaSSBkPZuTJFKlbm7vGOMB/ZAGPWqUeF3PYobpvetDZLjchSGQkdugt5e/gRLGkwe1DiGNv6BEjAOS/9itxdi/XO7+YJOpqoC40j2wcqWOI7GPB4dhH49Ci0odbsTazMMiC2DKzoJY24il3ykOY0iVFH5knKzagy8qmmb77ft96oYhYpDKPpq3wanNNEZMLKnEoaAJRQfG7gbZ0FUvouGdxJGZGx6P9+bPi93o5iv1z2DDteLV1Su3rm1TA71zjAQ9tWG9WC36AlWMUpO84g1m39o5kaw81PJKehGIcPJ.2f5ePY7Pp26J&lt;/PRE&gt;&lt;P&gt;Let me know what other information would be useful for me to provide.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Mason&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jun 2017 20:44:37 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Accept-Hosted-Form-problems/m-p/58625#M33246</guid>
      <dc:creator>uwlmhardy</dc:creator>
      <dc:date>2017-06-28T20:44:37Z</dc:date>
    </item>
    <item>
      <title>Re: Accept Hosted Form problems</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Accept-Hosted-Form-problems/m-p/58626#M33247</link>
      <description>&lt;P&gt;Hi Mason,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It's not so much the token I need as what information you're sending to get the token. Do you have a log of the actual request into our system to get the token?&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jun 2017 21:19:43 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Accept-Hosted-Form-problems/m-p/58626#M33247</guid>
      <dc:creator>Aaron</dc:creator>
      <dc:date>2017-06-28T21:19:43Z</dc:date>
    </item>
    <item>
      <title>Re: Accept Hosted Form problems</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Accept-Hosted-Form-problems/m-p/58632#M33253</link>
      <description>&lt;P&gt;&lt;a href="https://community.developer.cybersource.com/t5/user/viewprofilepage/user-id/20843"&gt;@Aaron&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's the JSON object I'm sending, otherwise I can copy and paste the C#code I'm using to generate the token:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;{
    "Title": "",
    "Object": {
      "transactionRequest": {
        "transactionType": "authCaptureTransaction",
        "amount": 50.0,
        "amountSpecified": true,
        "currencyCode": null,
        "payment": null,
        "profile": null,
        "solution": null,
        "callId": null,
        "terminalNumber": null,
        "authCode": null,
        "refTransId": null,
        "splitTenderId": null,
        "order": null,
        "lineItems": null,
        "tax": null,
        "duty": null,
        "shipping": null,
        "taxExemptSpecified": false,
        "poNumber": null,
        "customer": null,
        "billTo": null,
        "shipTo": null,
        "customerIP": null,
        "cardholderAuthentication": null,
        "retail": null,
        "employeeId": null,
        "transactionSettings": null,
        "userFields": null
      },
      "hostedPaymentSettings": [
        {
          "settingName": "hostedPaymentButtonOptions",
          "settingValue": "{\"text\": \"Donate\"}"
        },
        {
          "settingName": "hostedPaymentOrderOptions",
          "settingValue": "{\"show\": false}"
        },
        {
          "settingName": "hostedPaymentShippingAddressOptions",
          "settingValue": "{\"show\" : false }"
        },
        {
          "settingName": "hostedPaymentBillingAddressOptions",
          "settingValue": "{\"show\" : true, \"required\" : true }"
        },
        {
          "settingName": "hostedPaymentReturnOptions",
          "settingValue": "{ \"showReceipt\" : true, \"url\" : \"https://www.uwlax.edu/foundation2/\", \"urlText\" : \"Continue\", \"cancelUrl\" : \"https://www.uwlax.edu/foundation2/?transaction=cancelled\" }"
        }
      ],
      "merchantAuthentication": null,
      "clientId": null,
      "refId": null
    }&lt;/PRE&gt;&lt;P&gt;Is that more of what you are looking for?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Mason&lt;/P&gt;</description>
      <pubDate>Thu, 29 Jun 2017 14:40:37 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Accept-Hosted-Form-problems/m-p/58632#M33253</guid>
      <dc:creator>uwlmhardy</dc:creator>
      <dc:date>2017-06-29T14:40:37Z</dc:date>
    </item>
    <item>
      <title>Re: Accept Hosted Form problems</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Accept-Hosted-Form-problems/m-p/58640#M33261</link>
      <description>&lt;P&gt;That's closer, but what you've posted isn't an actual token request. Some of those names aren't our field names. Is this a template that your code uses to build the request or something like that?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For reference, here's a log of an actual HTTP request with a well formatted request (with my personal info redacted):&lt;/P&gt;
&lt;PRE&gt;POST /xml/v1/request.api HTTP/1.1
Host: apitest.authorize.net
Content-Type: application/json
Cache-Control: no-cache

{
	"getHostedPaymentPageRequest": {
        "merchantAuthentication": {
            "name": "API_LOGIN",
            "transactionKey": "TRANSACTION_KEY"
        },
		"transactionRequest": {
			"transactionType": "authCaptureTransaction",
			"amount": "50.00"
		},
		"hostedPaymentSettings": {
			"setting": [
		        {
		          "settingName": "hostedPaymentButtonOptions",
		          "settingValue": "{\"text\": \"Donate\"}"
		        },
		        {
		          "settingName": "hostedPaymentOrderOptions",
		          "settingValue": "{\"show\": false}"
		        },
		        {
		          "settingName": "hostedPaymentShippingAddressOptions",
		          "settingValue": "{\"show\" : false }"
		        },
		        {
		          "settingName": "hostedPaymentBillingAddressOptions",
		          "settingValue": "{\"show\" : true, \"required\" : true }"
		        },
		        {
		          "settingName": "hostedPaymentReturnOptions",
		          "settingValue": "{ \"showReceipt\" : true, \"url\" : \"https://www.uwlax.edu/foundation2/\", \"urlText\" : \"Continue\", \"cancelUrl\" : \"https://www.uwlax.edu/foundation2/?transaction=cancelled\" }"
		        }
    		]
		}
	}
}&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Let me just ask a few clarifying questions: You're not having any trouble getting the token itself, right? You send a request, you get a token back, and the you do a form submission in the browser to submit the token to&amp;nbsp;&lt;SPAN&gt;&lt;A href="https://test.authorize.net/payment/payment" target="_blank"&gt;https://test.authorize.net/payment/payment&lt;/A&gt;, right?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;At that point, the browser's not rendering anything because it's trying to retrieve files but getting 550 errors? Is that happening with every browser? From other networks as well?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;What I'm looking for is some way to reproduce this on my end. If there was something you were sending in the token request that was causing our system to generate tokens that couldn't be used, I'd want to see exactly what was being sent in the token request. Then, I could send the same information from my system for my account and get a token and see if that token caused the same behavior. If so, I can go in one direction to troubleshoot. If not, the problem would be tied to your account or system somehow, and I could move in another direction to troubleshoot.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Do you have any other way I could reproduce it? Do you have this code running on the web anywhere where I could see it failing?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Jun 2017 22:43:12 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Accept-Hosted-Form-problems/m-p/58640#M33261</guid>
      <dc:creator>Aaron</dc:creator>
      <dc:date>2017-06-29T22:43:12Z</dc:date>
    </item>
    <item>
      <title>Re: Accept Hosted Form problems</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Accept-Hosted-Form-problems/m-p/58693#M33308</link>
      <description>&lt;P&gt;Aaron,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;First, here is the Github doc I have been following to create the API request: &lt;A href="https://github.com/AuthorizeNet/sample-code-csharp/blob/master/PaymentTransactions/GetAnAcceptPaymentPage.cs" target="_self"&gt;https://github.com/AuthorizeNet/sample-code-csharp/blob/master/PaymentTransactions/GetAnAcceptPaymentPage.cs&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the C# server code I am using to generate the Token based on that sample code page&lt;/P&gt;&lt;PRE&gt;public static string GetANetToken(decimal amount)
		{
			System.Net.ServicePointManager.SecurityProtocol = System.Net.SecurityProtocolType.Ssl3 | System.Net.SecurityProtocolType.Tls12;
#if DEBUG
			ApiOperationBase&amp;lt;ANetApiRequest, ANetApiResponse&amp;gt;.RunEnvironment = AuthorizeNet.Environment.SANDBOX;
#else
			ApiOperationBase&amp;lt;ANetApiRequest, ANetApiResponse&amp;gt;.RunEnvironment = AuthorizeNet.Environment.HOSTED_VM;
#endif
			ApiOperationBase&amp;lt;ANetApiRequest, ANetApiResponse&amp;gt;.MerchantAuthentication = new merchantAuthenticationType()
			{
				name = AFMerch,
				ItemElementName = ItemChoiceType.transactionKey,
				Item = AFTrans
			};
			var transactionRequest = new transactionRequestType
			{
				transactionType = transactionTypeEnum.authCaptureTransaction.ToString(),
				amount = amount,
				amountSpecified = true
			};
			
			var request = new getHostedPaymentPageRequest();
			request.transactionRequest = transactionRequest;
			var settings = new List&amp;lt;settingType&amp;gt;();
			settings.Add(new settingType()
			{
				settingName = settingNameEnum.hostedPaymentButtonOptions.ToString(),
				settingValue = @"{""text"": ""Donate""}"
			});
			settings.Add(new settingType()
			{
				settingName = settingNameEnum.hostedPaymentOrderOptions.ToString(),
				settingValue = @"{""show"": false}"
			});
			settings.Add(new settingType()
			{
				settingName = settingNameEnum.hostedPaymentShippingAddressOptions.ToString(),
				settingValue = @"{""show"" : false }"
			});
			settings.Add(new settingType()
			{
				settingName = settingNameEnum.hostedPaymentBillingAddressOptions.ToString(),
				settingValue = @"{""show"" : true, ""required"" : true }"
			});
			settings.Add(new settingType()
			{
				settingName = settingNameEnum.hostedPaymentReturnOptions.ToString(),
				settingValue = @"{ ""showReceipt"" : true, ""url"" : ""https://www.uwlax.edu/foundation2/"", ""urlText"" : ""Continue"", ""cancelUrl"" : ""https://www.uwlax.edu/foundation2/?transaction=cancelled"" }"
			});
			request.hostedPaymentSettings = settings.ToArray();

			UwlSharedClassLibrary.Helpers.General.WriteLog.LogObject(request);
			var controller = new getHostedPaymentPageController(request);
			controller.Execute();
			var response = controller.GetApiResponse();
			if(response != null &amp;amp;&amp;amp; response.messages.resultCode == messageTypeEnum.Ok)
			{
				return response.token;
			}
			else
			{
				return "";
			}
			//System.Net.ServicePointManager.SecurityProtocol = System.Net.SecurityProtocolType.Ssl3;
		}&lt;/PRE&gt;&lt;P&gt;If some of the names aren't your field names, is the C# API access point out of date, or is that sample page out of date perhaps?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After the token is generated, the form posts to &lt;A href="https://test.authorize.net/payment/payment/" target="_blank"&gt;https://test.authorize.net/payment/payment/&lt;/A&gt;. I have tried different browsers (Chrome, Firefox and IE 11), but am unable to test different networks yet since the page is in development and only exists on my dev machine and a server on our network.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Mason&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jul 2017 17:04:26 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Accept-Hosted-Form-problems/m-p/58693#M33308</guid>
      <dc:creator>uwlmhardy</dc:creator>
      <dc:date>2017-07-06T17:04:26Z</dc:date>
    </item>
    <item>
      <title>Re: Accept Hosted Form problems</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Accept-Hosted-Form-problems/m-p/58696#M33311</link>
      <description>&lt;P&gt;Hi Mason,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Again, to clarify, where do the 550 errors come in? When the token is posted to &lt;A href="https://test.authorize.net/payment/payment" target="_blank"&gt;https://test.authorize.net/payment/payment&lt;/A&gt;? You earlier said &lt;SPAN&gt;every JS/CSS file in the sandbox&lt;/SPAN&gt;&amp;nbsp;gives the 550. So, after you post the token, an HTML response is returned to the browser? But every JS/CSS referred to in that HTML is not retrievable by the browser because each request gets a 550 response?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can still test the part that's breaking on another network even if the C# token request code is only on your dev machine/server. Use that code to request the token, but submit the token to&amp;nbsp;&lt;SPAN&gt;&lt;A href="https://test.authorize.net/payment/payment" target="_blank"&gt;https://test.authorize.net/payment/payment&lt;/A&gt; from a machine on a different network. If a browser can't access your existing dev server from outside your network, you could request the token with the C# code, send the token somewhere else (by email or whatever), then submit the token from a browser outside the network.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Basically, I'm trying to separate the token request process from the token use process. If a token received with exactly the same process can't retrieve the form&amp;nbsp;when used to request a form inside your network, but works when outside your network, clearly the problem is in the form request/rendering process, and possible blocking of things within your network. But, if the code that requests a token receives a token that doesn't work no matter where you use it, the problem is in either the token request process on your end or the token generating process on our end. Anything we can do to narrow stuff down is important.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jul 2017 17:25:27 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Accept-Hosted-Form-problems/m-p/58696#M33311</guid>
      <dc:creator>Aaron</dc:creator>
      <dc:date>2017-07-06T17:25:27Z</dc:date>
    </item>
    <item>
      <title>Re: Accept Hosted Form problems</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Accept-Hosted-Form-problems/m-p/58697#M33312</link>
      <description>&lt;P&gt;One more thing: I'm hoping to see the actual token request&amp;nbsp;&lt;EM&gt;as it would travel over the wire to our servers.&lt;/EM&gt; You're logging the request object, which the SDK has filled with a bunch of null fields that it's not actually going to end up sending. I want to get a log of the actual request that it's going to post to our servers after the SDK has fully formatted it. What kind of log can you capture if you try to log the controller object instead of the request object?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Of course this would be easier if we had better logging in our .NET SDK...&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jul 2017 17:30:00 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Accept-Hosted-Form-problems/m-p/58697#M33312</guid>
      <dc:creator>Aaron</dc:creator>
      <dc:date>2017-07-06T17:30:00Z</dc:date>
    </item>
    <item>
      <title>Re: Accept Hosted Form problems</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Accept-Hosted-Form-problems/m-p/58704#M33319</link>
      <description>&lt;P&gt;Aaron,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I did as you suggested and generated the token and submitted that on a device on a different network (my phone on the cellular network), and the CSS and Javascript files are still not being fetched properly.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am able to post the token and get to the &lt;A href="https://test.authorize.net/payment/payment/" target="_blank"&gt;https://test.authorize.net/payment/payment/&lt;/A&gt; page, but then the CSS and JS files on that page are returning 550 errors. Here is a screenshot of the resulting page, and the console errors for each file so you can see what I am seeing.&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/275957/unstyled%20and%20unscripted%20page.png" border="0" alt="Unstyled page" width="1920" height="950" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/275957/550%20Errors%20and%20Token%20object.png" border="0" alt="Script and Stylesheet errors" width="1920" height="1018" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Mason&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jul 2017 19:46:24 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Accept-Hosted-Form-problems/m-p/58704#M33319</guid>
      <dc:creator>uwlmhardy</dc:creator>
      <dc:date>2017-07-06T19:46:24Z</dc:date>
    </item>
    <item>
      <title>Re: Accept Hosted Form problems</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Accept-Hosted-Form-problems/m-p/58711#M33326</link>
      <description>&lt;P&gt;This is great, thanks! Any luck getting a log of the token request?&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jul 2017 21:12:44 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Accept-Hosted-Form-problems/m-p/58711#M33326</guid>
      <dc:creator>Aaron</dc:creator>
      <dc:date>2017-07-06T21:12:44Z</dc:date>
    </item>
    <item>
      <title>Re: Accept Hosted Form problems</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Accept-Hosted-Form-problems/m-p/58733#M33348</link>
      <description>&lt;P&gt;Hi&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://community.developer.authorize.net/t5/user/viewprofilepage/user-id/20843" target="_blank"&gt;@Aaron&lt;/A&gt;,&lt;BR /&gt;&lt;BR /&gt;I noticed a discrepancy in the referenced js and css files depending on how the application is called.&lt;BR /&gt;&lt;BR /&gt;Notice the 2 URLs below, the first is good and is what is being referenced when posting to&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://test.authorize.net/payment/payment" target="_blank" rel="nofollow noopener noreferrer"&gt;https://test.authorize.net/payment/payment&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;and the second URL is what is being referenced when posting to&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://test.authorize.net/payment/payment/" target="_blank" rel="nofollow noopener noreferrer"&gt;https://test.authorize.net/payment/payment/&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;which generates the 550 server errors, the key difference being the trailing slash.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://test.authorize.net/payment/scripts/lib/angular.min.js" target="_blank" rel="nofollow noopener noreferrer"&gt;https://test.authorize.net/payment/scripts/lib/angular.min.js&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://test.authorize.net/payment/payment/scripts/lib/angular.min.js" target="_blank" rel="nofollow noopener noreferrer"&gt;https://test.authorize.net/payment/payment/scripts/lib/angular.min.js&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;The answer is, they are probably posting to&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://test.authorize.net/payment/payment/" target="_blank" rel="nofollow noopener noreferrer"&gt;https://test.authorize.net/payment/payment/&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;instead of&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://test.authorize.net/payment/payment" target="_blank" rel="nofollow noopener noreferrer"&gt;https://test.authorize.net/payment/payment&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Although the documentation and you reference the correct URL, apparently this trailing slash is the cause of some confusion.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Easy fix to reference the the js and css files from the application&amp;nbsp;with full paths instead of relative URLs or remove the trailing slash with the following in the application's Web.config:&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&amp;lt;rewrite&amp;gt;
  &amp;lt;rules&amp;gt;
     &amp;lt;rule name="Remove trailing slash" stopProcessing="true"&amp;gt;
      &amp;lt;match url="(.*)/$" /&amp;gt;
      &amp;lt;conditions&amp;gt;
        &amp;lt;add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" /&amp;gt;
        &amp;lt;add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" /&amp;gt;
      &amp;lt;/conditions&amp;gt;
      &amp;lt;action type="Redirect" redirectType="Permanent" url="{R:1}" /&amp;gt;
    &amp;lt;/rule&amp;gt;
    
  &amp;lt;/rules&amp;gt;
&amp;lt;/rewrite&amp;gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 08 Jul 2017 22:49:46 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Accept-Hosted-Form-problems/m-p/58733#M33348</guid>
      <dc:creator>NexusSoftware</dc:creator>
      <dc:date>2017-07-08T22:49:46Z</dc:date>
    </item>
    <item>
      <title>Re: Accept Hosted Form problems</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Accept-Hosted-Form-problems/m-p/58738#M33353</link>
      <description>&lt;P&gt;Well, that did it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you,&amp;nbsp;&lt;a href="https://community.developer.cybersource.com/t5/user/viewprofilepage/user-id/21608"&gt;@NexusSoftware&lt;/a&gt;&amp;nbsp;for the solution and thank you&amp;nbsp;&lt;a href="https://community.developer.cybersource.com/t5/user/viewprofilepage/user-id/20843"&gt;@Aaron&lt;/a&gt;&amp;nbsp;for helping me try to debug.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Mason&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jul 2017 16:17:22 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Accept-Hosted-Form-problems/m-p/58738#M33353</guid>
      <dc:creator>uwlmhardy</dc:creator>
      <dc:date>2017-07-10T16:17:22Z</dc:date>
    </item>
    <item>
      <title>Re: Accept Hosted Form problems</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Accept-Hosted-Form-problems/m-p/58742#M33357</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.developer.cybersource.com/t5/user/viewprofilepage/user-id/21608"&gt;@NexusSoftware&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As usual, your contributions are outstanding! I have no doubt that the rest of us would have stumbled upon this eventually, but it may have taken us a few more days (or weeks!) of posting back and forth to get there. You've saved us all a ton of time.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'll escalate this internally so we can figure out ways to better handle the URL in the future.&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jul 2017 16:45:49 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Accept-Hosted-Form-problems/m-p/58742#M33357</guid>
      <dc:creator>Aaron</dc:creator>
      <dc:date>2017-07-10T16:45:49Z</dc:date>
    </item>
  </channel>
</rss>

