<?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: API error E00001 when calling getHostedPaymentPageRequest using example data in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/API-error-E00001-when-calling-getHostedPaymentPageRequest-using/m-p/58571#M33197</link>
    <description>&lt;P&gt;Sure is button with an onclick event attached that perform this post request:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;$.post("https://apitest.authorize.net/xml/v1/request.api",
{
"getHostedPaymentPageRequest": {
"merchantAuthentication": {
"name": "3fHh95RmE",
"transactionKey": "3p5mZ7fBN46F7Jt6"
},
"transactionRequest": {
"transactionType": "authCaptureTransaction",
"amount": "20.00",
"customer": {
"email": "bmcmanus@mail.com"
},
"billTo": {
"firstName": "Ellen",
"lastName": "Johnson",
"company": "Souveniropolis",
"address": "14 Main Street",
"city": "Pecan Springs",
"state": "TX",
"zip": "44628",
"country": "USA"
}
},
"hostedPaymentSettings": {
"setting": [{
"settingName": "hostedPaymentBillingAddressOptions",
"settingValue": "{\"show\": true, \"required\":true}"
}, {
"settingName": "hostedPaymentButtonOptions",
"settingValue": "{\"text\": \"Pay\"}"
}, {
"settingName": "hostedPaymentCustomerOptions",
"settingValue": "{\"showEmail\":true,\"requiredEmail\":true}"
}, {
"settingName": "hostedPaymentPaymentOptions",
"settingValue": "{\"cardCodeRequired\":true}"
}, {
"settingName": "hostedPaymentReturnOptions",
"settingValue": "{\"url\":\"https://www.mysite.com/continue\",\"urlText\":\"Continue\",\"cancelUrl\":\"https://mysite.com/cancel\",\"cancelUrlText\":\"Cancel\"}"
}, {
"settingName": "hostedPaymentSecurityOptions",
"settingValue": "{\"captcha\": false}"
}, {
"settingName": "hostedPaymentShippingAddressOptions",
"settingValue": "{\"show\":false,\"required\":true}"
}, {
"settingName": "hostedPaymentStyleOptions",
"settingValue": "{\"bgColor\": \"EE00EE\"}"
}]
}
}
},
function(data,status){
alert("Data: " + data + "\nStatus: " + status);
}
);&lt;/PRE&gt;&lt;P&gt;what i get is a 200 ok response but in the message body i got this:&lt;/P&gt;&lt;PRE&gt;{"messages":{"resultCode":"Error","message":[{"code":"E00001","text":"Unexpected character encountered while parsing value: g. Path '', line 0, position 0."}]}}&lt;/PRE&gt;</description>
    <pubDate>Fri, 23 Jun 2017 13:11:47 GMT</pubDate>
    <dc:creator>denlopez88</dc:creator>
    <dc:date>2017-06-23T13:11:47Z</dc:date>
    <item>
      <title>API error E00001 when calling getHostedPaymentPageRequest using example data</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/API-error-E00001-when-calling-getHostedPaymentPageRequest-using/m-p/56572#M31354</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to test the Accept Hosted integration method and am getting error when calling getHostedPaymentPageRequest. The error is E00001 "An error occurred during processing. Please try again." &amp;nbsp;I know the data must be formatted correctly because I'm using the exact Authorize.Net data from the example, just replacing the login ID and transaction key with mine.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is my input data which I got directly from the &lt;STRONG&gt;GetHostedPaymentForm() – Sample Request and Response&lt;/STRONG&gt; section of the &lt;A href="http://developer.authorize.net/api/reference/features/accept_hosted.html" target="_self"&gt;Accept Hosted&lt;/A&gt; reference page.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;{
	"getHostedPaymentPageRequest": {
		"merchantAuthentication": {
			"name": "API_LOGIN_ID",
			"transactionKey": "TRANSACTION_KEY"
		},
		"transactionRequest": {
			"transactionType": "authCaptureTransaction",
			"amount": "20.00",
			"customer": {
				"email": "bmcmanus@mail.com"
			},
			"billTo": {
				"firstName": "Ellen",
				"lastName": "Johnson",
				"company": "Souveniropolis",
				"address": "14 Main Street",
				"city": "Pecan Springs",
				"state": "TX",
				"zip": "44628",
				"country": "USA"
			}
		},
		"hostedPaymentSettings": {
			"setting": [{
				"settingName": "hostedPaymentBillingAddressOptions",
				"settingValue": "{\"show\": true, \"required\":true}"
			}, {
				"settingName": "hostedPaymentButtonOptions",
				"settingValue": "{\"text\": \"Pay\"}"
			}, {
				"settingName": "hostedPaymentCustomerOptions",
				"settingValue": "{\"showEmail\":true,\"requiredEmail\":true}"
			}, {
				"settingName": "hostedPaymentPaymentOptions",
				"settingValue": "{\"cardCodeRequired\":true}"
			}, {
				"settingName": "hostedPaymentReturnOptions",
				"settingValue": "{\"url\":\"https://www.google.com\",\"urlText\":\"Continue\",\"cancelUrl\":\"https://mysite.com/cancel\",\"cancelUrlText\":\"hkjhkjhkjhk\"}"
			}, {
				"settingName": "hostedPaymentSecurityOptions",
				"settingValue": "{\"captcha\": false}"
			}, {
				"settingName": "hostedPaymentShippingAddressOptions",
				"settingValue": "{\"show\":false,\"required\":true}"
			}, {
				"settingName": "hostedPaymentStyleOptions",
				"settingValue": "{\"bgColor\": \"EE00EE\"}"
			}]
		}
	}&lt;BR /&gt;}
		&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried running this through code, through Fiddler and even directly from the &lt;A href="https://developer.authorize.net/api/reference/#authentication" target="_self"&gt;API reference page&lt;/A&gt; by pasting it&amp;nbsp;into the "Try It" box and clicking Send. &amp;nbsp;All give the E00001 error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What is the issue?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jan 2017 23:20:23 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/API-error-E00001-when-calling-getHostedPaymentPageRequest-using/m-p/56572#M31354</guid>
      <dc:creator>wp</dc:creator>
      <dc:date>2017-01-05T23:20:23Z</dc:date>
    </item>
    <item>
      <title>Re: API error E00001 when calling getHostedPaymentPageRequest using example data</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/API-error-E00001-when-calling-getHostedPaymentPageRequest-using/m-p/56574#M31355</link>
      <description>&lt;P&gt;&lt;a href="https://community.developer.cybersource.com/t5/user/viewprofilepage/user-id/21064"&gt;@wp&lt;/a&gt;&amp;nbsp;Did you generate a signature key as mentioned in this post: &lt;A href="https://community.developer.authorize.net/t5/Integration-and-Testing/Help-Migrating-from-SIM-to-CIM-Form-with-Recurring/m-p/56510#M31296" target="_blank"&gt;https://community.developer.authorize.net/t5/Integration-and-Testing/Help-Migrating-from-SIM-to-CIM-Form-with-Recurring/m-p/56510#M31296&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Richard&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jan 2017 23:35:48 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/API-error-E00001-when-calling-getHostedPaymentPageRequest-using/m-p/56574#M31355</guid>
      <dc:creator>RichardH</dc:creator>
      <dc:date>2017-01-05T23:35:48Z</dc:date>
    </item>
    <item>
      <title>Re: API error E00001 when calling getHostedPaymentPageRequest using example data</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/API-error-E00001-when-calling-getHostedPaymentPageRequest-using/m-p/56575#M31356</link>
      <description>&lt;P&gt;Yep, that was it. &amp;nbsp;And now of course I see that it mentions&amp;nbsp;that requirement right on the reference page. &amp;nbsp;I guess I saw&amp;nbsp;key and thought transaction key. &amp;nbsp;Oh well maybe this will help&amp;nbsp;the next person who doesn't RTFM&amp;nbsp;:)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 06 Jan 2017 01:54:32 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/API-error-E00001-when-calling-getHostedPaymentPageRequest-using/m-p/56575#M31356</guid>
      <dc:creator>wp</dc:creator>
      <dc:date>2017-01-06T01:54:32Z</dc:date>
    </item>
    <item>
      <title>Re: API error E00001 when calling getHostedPaymentPageRequest using example data</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/API-error-E00001-when-calling-getHostedPaymentPageRequest-using/m-p/58563#M33191</link>
      <description>&lt;P&gt;Hi, I've been having the same error despite being able to create the s&lt;SPAN&gt;ignature key&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I'm trying an implementation with CFML&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Jun 2017 21:29:09 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/API-error-E00001-when-calling-getHostedPaymentPageRequest-using/m-p/58563#M33191</guid>
      <dc:creator>denlopez88</dc:creator>
      <dc:date>2017-06-22T21:29:09Z</dc:date>
    </item>
    <item>
      <title>Re: API error E00001 when calling getHostedPaymentPageRequest using example data</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/API-error-E00001-when-calling-getHostedPaymentPageRequest-using/m-p/58565#M33193</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.developer.cybersource.com/t5/user/viewprofilepage/user-id/20750"&gt;@denlopez88&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you post the request that your code creates?&lt;/P&gt;</description>
      <pubDate>Thu, 22 Jun 2017 22:52:11 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/API-error-E00001-when-calling-getHostedPaymentPageRequest-using/m-p/58565#M33193</guid>
      <dc:creator>Aaron</dc:creator>
      <dc:date>2017-06-22T22:52:11Z</dc:date>
    </item>
    <item>
      <title>Re: API error E00001 when calling getHostedPaymentPageRequest using example data</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/API-error-E00001-when-calling-getHostedPaymentPageRequest-using/m-p/58571#M33197</link>
      <description>&lt;P&gt;Sure is button with an onclick event attached that perform this post request:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;$.post("https://apitest.authorize.net/xml/v1/request.api",
{
"getHostedPaymentPageRequest": {
"merchantAuthentication": {
"name": "3fHh95RmE",
"transactionKey": "3p5mZ7fBN46F7Jt6"
},
"transactionRequest": {
"transactionType": "authCaptureTransaction",
"amount": "20.00",
"customer": {
"email": "bmcmanus@mail.com"
},
"billTo": {
"firstName": "Ellen",
"lastName": "Johnson",
"company": "Souveniropolis",
"address": "14 Main Street",
"city": "Pecan Springs",
"state": "TX",
"zip": "44628",
"country": "USA"
}
},
"hostedPaymentSettings": {
"setting": [{
"settingName": "hostedPaymentBillingAddressOptions",
"settingValue": "{\"show\": true, \"required\":true}"
}, {
"settingName": "hostedPaymentButtonOptions",
"settingValue": "{\"text\": \"Pay\"}"
}, {
"settingName": "hostedPaymentCustomerOptions",
"settingValue": "{\"showEmail\":true,\"requiredEmail\":true}"
}, {
"settingName": "hostedPaymentPaymentOptions",
"settingValue": "{\"cardCodeRequired\":true}"
}, {
"settingName": "hostedPaymentReturnOptions",
"settingValue": "{\"url\":\"https://www.mysite.com/continue\",\"urlText\":\"Continue\",\"cancelUrl\":\"https://mysite.com/cancel\",\"cancelUrlText\":\"Cancel\"}"
}, {
"settingName": "hostedPaymentSecurityOptions",
"settingValue": "{\"captcha\": false}"
}, {
"settingName": "hostedPaymentShippingAddressOptions",
"settingValue": "{\"show\":false,\"required\":true}"
}, {
"settingName": "hostedPaymentStyleOptions",
"settingValue": "{\"bgColor\": \"EE00EE\"}"
}]
}
}
},
function(data,status){
alert("Data: " + data + "\nStatus: " + status);
}
);&lt;/PRE&gt;&lt;P&gt;what i get is a 200 ok response but in the message body i got this:&lt;/P&gt;&lt;PRE&gt;{"messages":{"resultCode":"Error","message":[{"code":"E00001","text":"Unexpected character encountered while parsing value: g. Path '', line 0, position 0."}]}}&lt;/PRE&gt;</description>
      <pubDate>Fri, 23 Jun 2017 13:11:47 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/API-error-E00001-when-calling-getHostedPaymentPageRequest-using/m-p/58571#M33197</guid>
      <dc:creator>denlopez88</dc:creator>
      <dc:date>2017-06-23T13:11:47Z</dc:date>
    </item>
    <item>
      <title>Re: API error E00001 when calling getHostedPaymentPageRequest using example data</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/API-error-E00001-when-calling-getHostedPaymentPageRequest-using/m-p/58572#M33198</link>
      <description>&lt;P&gt;Hi thanks for the quick response, i already manage to get a succesfull response from the authorize.net API, I think I had an issue with how my data was beeing sent in the post request I use JSON.stringify to format my data and finally get my token.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Jun 2017 13:32:03 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/API-error-E00001-when-calling-getHostedPaymentPageRequest-using/m-p/58572#M33198</guid>
      <dc:creator>denlopez88</dc:creator>
      <dc:date>2017-06-23T13:32:03Z</dc:date>
    </item>
  </channel>
</rss>

