<?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: Need help with getHostedPaymentPageResponse in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Need-help-with-getHostedPaymentPageResponse/m-p/58801#M33413</link>
    <description>&lt;P&gt;That got me a form. &amp;nbsp;Thank you so much!&lt;/P&gt;</description>
    <pubDate>Wed, 12 Jul 2017 23:28:41 GMT</pubDate>
    <dc:creator>prsnider73</dc:creator>
    <dc:date>2017-07-12T23:28:41Z</dc:date>
    <item>
      <title>Need help with getHostedPaymentPageResponse</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Need-help-with-getHostedPaymentPageResponse/m-p/58791#M33403</link>
      <description>&lt;P&gt;I have sucessfully run the&amp;nbsp;getHostedPaymentPageResponse call and have a token.&lt;/P&gt;&lt;P&gt;When I post the token using&amp;nbsp;an&amp;nbsp;HttpWebRequest, I get this as a&amp;nbsp;post_response:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "&lt;A href="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" target="_blank"&gt;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&lt;/A&gt;"&amp;gt;&lt;BR /&gt;&amp;lt;html xmlns="&lt;A href="http://www.w3.org/1999/xhtml" target="_blank"&gt;http://www.w3.org/1999/xhtml&lt;/A&gt;" xml:lang="en"&amp;gt;&lt;BR /&gt;&amp;lt;!-- Doesn't always work! --&amp;gt;&lt;BR /&gt;&amp;lt;meta http-equiv="X-UA-Compatible" content="IE=edge" /&amp;gt;&lt;BR /&gt;&amp;lt;meta charset="utf-8"&amp;gt;&lt;BR /&gt;&amp;lt;meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=0"&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&amp;lt;link href="scripts/lib/bootstrap/css/bootstrap.min.css" rel="stylesheet" type="text/css"&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;script src="scripts/lib/jquery.min.js"&amp;gt;&amp;lt;/script&amp;gt;&lt;BR /&gt;&amp;lt;script src="scripts/lib/angular.min.js"&amp;gt;&amp;lt;/script&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;script src="scripts/lib/bootstrap/js/bootstrap.min.js"&amp;gt;&amp;lt;/script&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;head id="Head1"&amp;gt;&amp;lt;title&amp;gt;&lt;BR /&gt;Secure Information&lt;BR /&gt;&amp;lt;/title&amp;gt;&lt;BR /&gt;&amp;lt;link href="styles/payment.css" rel="stylesheet" type="text/css" /&amp;gt;&lt;BR /&gt;&amp;lt;style type="text/css"&amp;gt;null&amp;lt;/style&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;script src="../payment/scripts/components/paymentComponent/1_0/payment-min.js"&amp;gt;&amp;lt;/script&amp;gt;&lt;BR /&gt;&amp;lt;script src="../payment/scripts/components/addressComponent/1_0/address-min.js"&amp;gt;&amp;lt;/script&amp;gt;&lt;BR /&gt;&amp;lt;script src="../payment/scripts/components/bankAccountComponent/1_0/bankAccount-min.js"&amp;gt;&amp;lt;/script&amp;gt;&lt;BR /&gt;&amp;lt;script src="scripts/app-min.js"&amp;gt;&amp;lt;/script&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&amp;lt;script type="text/javascript"&amp;gt;&lt;BR /&gt;//&amp;lt;![CDATA[&lt;BR /&gt;var g_token = "null";&lt;BR /&gt;var g_merchantData = null;&lt;BR /&gt;var g_pageOptions = null;&lt;BR /&gt;var g_iframeCommunicatorUrl = (!! (typeof g_pageOptions !== 'undefined' &amp;amp;&amp;amp; g_pageOptions !== null &amp;amp;&amp;amp; g_pageOptions.hostedPaymentIFrameCommunicatorUrl &amp;amp;&amp;amp; g_pageOptions.hostedPaymentIFrameCommunicatorUrl.url) ) ? g_pageOptions.hostedPaymentIFrameCommunicatorUrl.url : "" ;&lt;BR /&gt;&lt;BR /&gt;&amp;lt;/script&amp;gt;&lt;BR /&gt;&amp;lt;script type="text/javascript"&amp;gt;&lt;BR /&gt;var onloadCallback = function () {&lt;BR /&gt;var scope = angular.element($('div[ng-controller="mainController"]')).scope();&lt;BR /&gt;grecaptcha.render('html_element', {&lt;BR /&gt;'sitekey': '6Lc8tgYAAAAAAFfalsuPuIZ6bv_2dGT_Y9ZxURiK',&lt;BR /&gt;'theme': 'light',&lt;BR /&gt;'callback': verifyCallback&lt;BR /&gt;});&lt;BR /&gt;if(g_iframeCommunicatorUrl.length &amp;gt; 0 &amp;amp;&amp;amp; scope.isIframeCommunication){&lt;BR /&gt;IFrameCommunication.sendResizeWindowToMerchant();&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;};&lt;BR /&gt;var verifyCallback = function (response) {&lt;BR /&gt;var scope = angular.element($('div[ng-controller="mainController"]')).scope();&lt;BR /&gt;scope.isValidCaptchResponse = true ;&lt;BR /&gt;scope.$apply();&lt;BR /&gt;};&lt;BR /&gt;&amp;lt;/script&amp;gt;&lt;BR /&gt;&lt;BR /&gt;&amp;lt;script type="text/javascript"&amp;gt;&lt;BR /&gt;var g_EcheckEnabled = false;&lt;BR /&gt;var g_CreditEnabled = false;&lt;BR /&gt;&amp;lt;/script&amp;gt;&lt;BR /&gt;&amp;lt;/head&amp;gt;&lt;BR /&gt;&amp;lt;body&amp;gt;&lt;BR /&gt;&amp;lt;div class="PageOuter" id="divPageOuter"&amp;gt;&lt;BR /&gt;&amp;lt;div id="divPopupScreen" class="PopupScreen" style="display:none;"&amp;gt;&amp;lt;/div&amp;gt;&lt;BR /&gt;&amp;lt;div class="Page" id="divPage" ng-app="HostedPaymentApp"&amp;gt;&lt;BR /&gt;&amp;lt;div class="PageMain container" id="divPageMain container" ng-controller="mainController" ng-cloak&amp;gt;&lt;BR /&gt;&lt;BR /&gt;&amp;lt;div id="MainContent_divErrorPanel" class="ErrorPanel container"&amp;gt;&lt;BR /&gt;&amp;lt;div class="ErrorPanelMsg"&amp;gt;&lt;BR /&gt;&amp;lt;span id="MainContent_spnErrorMsg" class="ErrorMsg"&amp;gt;Missing or invalid token.&amp;lt;/span&amp;gt;&lt;BR /&gt;&amp;lt;/div&amp;gt;&lt;BR /&gt;&amp;lt;div id="divErrorPanelButtons" class="ErrorPanelButtons"&amp;gt;&lt;BR /&gt;&amp;lt;input id="btnCloseWindow" class="CloseButton" ng-click="cancelContinueBtnHandler('cancel')" value="Close" type="button"/&amp;gt;&lt;BR /&gt;&amp;lt;/div&amp;gt;&lt;BR /&gt;&amp;lt;/div&amp;gt;&lt;BR /&gt;&lt;BR /&gt;&amp;lt;div id="divIframeCommunicator" class="iFrameClass"&amp;gt;&amp;lt;/div&amp;gt;&lt;BR /&gt;&lt;BR /&gt;&amp;lt;/div&amp;gt;&lt;BR /&gt;&amp;lt;div class="PageMainAfter"&amp;gt;&amp;lt;/div&amp;gt;&lt;BR /&gt;&amp;lt;/div&amp;gt;&lt;BR /&gt;&amp;lt;/div&amp;gt;&lt;BR /&gt;&amp;lt;/body&amp;gt;&lt;BR /&gt;&amp;lt;/html&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I post using a form post, I get "Missing or Invalid Token".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am sure I am doing something wrong, but I have tried everything I know to do and these are the responses no matter what. &amp;nbsp;Can anyone help me?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jul 2017 17:58:55 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Need-help-with-getHostedPaymentPageResponse/m-p/58791#M33403</guid>
      <dc:creator>prsnider73</dc:creator>
      <dc:date>2017-07-12T17:58:55Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with getHostedPaymentPageResponse</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Need-help-with-getHostedPaymentPageResponse/m-p/58792#M33404</link>
      <description>&lt;P&gt;Is anyone with Authorize.net out there?&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jul 2017 20:20:02 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Need-help-with-getHostedPaymentPageResponse/m-p/58792#M33404</guid>
      <dc:creator>prsnider73</dc:creator>
      <dc:date>2017-07-12T20:20:02Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with getHostedPaymentPageResponse</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Need-help-with-getHostedPaymentPageResponse/m-p/58793#M33405</link>
      <description>&lt;P&gt;Lets see your form action, method and input.&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jul 2017 20:27:46 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Need-help-with-getHostedPaymentPageResponse/m-p/58793#M33405</guid>
      <dc:creator>NexusSoftware</dc:creator>
      <dc:date>2017-07-12T20:27:46Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with getHostedPaymentPageResponse</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Need-help-with-getHostedPaymentPageResponse/m-p/58794#M33406</link>
      <description>&lt;P&gt;I have tried this routine:&lt;/P&gt;&lt;P&gt;Private Function PostToURL(strToken As String) As String&lt;BR /&gt;Dim strMsg As String = ""&lt;/P&gt;&lt;P&gt;Dim objRequest As HttpWebRequest = Nothing&lt;BR /&gt;Dim post_values As New System.Collections.Generic.Dictionary(Of String, String)&lt;BR /&gt;Dim post_string As String = ""&lt;/P&gt;&lt;P&gt;Try&lt;BR /&gt;post_string = "token=" &amp;amp; strToken&lt;BR /&gt;objRequest = CType(WebRequest.Create(webAddress), HttpWebRequest)&lt;BR /&gt;objRequest.Method = "POST"&lt;BR /&gt;objRequest.ContentLength = post_string.Length&lt;BR /&gt;'objRequest.ContentType = "text/html"&lt;BR /&gt;objRequest.ContentType = "application/x-www-form-urlencoded"&lt;BR /&gt;Catch ex As Exception&lt;BR /&gt;strMsg = ex.Message&lt;BR /&gt;End Try&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Try&lt;BR /&gt;Dim myWriter As StreamWriter = Nothing&lt;BR /&gt;myWriter = New StreamWriter(objRequest.GetRequestStream())&lt;BR /&gt;myWriter.Write(post_string)&lt;BR /&gt;myWriter.Close()&lt;BR /&gt;Catch ex As Exception&lt;BR /&gt;strMsg = ex.Message&lt;BR /&gt;End Try&lt;/P&gt;&lt;P&gt;Dim objResponse As HttpWebResponse&lt;BR /&gt;Dim responseStream As StreamReader = Nothing&lt;BR /&gt;Dim post_response As String = Nothing&lt;/P&gt;&lt;P&gt;Try&lt;BR /&gt;objResponse = CType(objRequest.GetResponse(), HttpWebResponse)&lt;BR /&gt;responseStream = New StreamReader(objResponse.GetResponseStream())&lt;BR /&gt;post_response = responseStream.ReadToEnd()&lt;BR /&gt;Catch ex As Exception&lt;BR /&gt;strMsg = ex.Message&lt;BR /&gt;End Try&lt;BR /&gt;Try&lt;BR /&gt;responseStream.Close()&lt;BR /&gt;Catch ex As Exception&lt;BR /&gt;strMsg = ex.Message&lt;BR /&gt;End Try&lt;/P&gt;&lt;P&gt;Return "OK"&lt;BR /&gt;End Function&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And this form post where the input is auto filled in with the token:&lt;/P&gt;&lt;P&gt;&amp;lt;form id="form1" runat="server" method="post" action="&lt;A href="https://accept.authorize.net/payment/payment" target="_blank"&gt;https://accept.authorize.net/payment/payment&lt;/A&gt;"&amp;gt;&lt;BR /&gt;&amp;lt;input name="token" id="txtToken" runat="server"/&amp;gt;&lt;BR /&gt;&amp;lt;br/&amp;gt;&lt;BR /&gt;&amp;lt;input type="submit" value="Send" name="Send"/&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/form&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jul 2017 21:19:20 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Need-help-with-getHostedPaymentPageResponse/m-p/58794#M33406</guid>
      <dc:creator>prsnider73</dc:creator>
      <dc:date>2017-07-12T21:19:20Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with getHostedPaymentPageResponse</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Need-help-with-getHostedPaymentPageResponse/m-p/58795#M33407</link>
      <description>&lt;P&gt;When requesting the token, are you using live account credentials or sandbox credentials?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You probably want to be testing on the sandbox and form post to : &lt;A href="https://test.authorize.net/payment/payment" target="_blank"&gt;https://test.authorize.net/payment/payment&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jul 2017 21:27:46 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Need-help-with-getHostedPaymentPageResponse/m-p/58795#M33407</guid>
      <dc:creator>NexusSoftware</dc:creator>
      <dc:date>2017-07-12T21:27:46Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with getHostedPaymentPageResponse</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Need-help-with-getHostedPaymentPageResponse/m-p/58796#M33408</link>
      <description>&lt;P&gt;I worked off of the sandbox account for about 3 days and i couldn't get anywhere, so I switched to production in test mode and have the same issue, so I'm guessing it isn't going to matter.&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jul 2017 21:32:07 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Need-help-with-getHostedPaymentPageResponse/m-p/58796#M33408</guid>
      <dc:creator>prsnider73</dc:creator>
      <dc:date>2017-07-12T21:32:07Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with getHostedPaymentPageResponse</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Need-help-with-getHostedPaymentPageResponse/m-p/58799#M33411</link>
      <description>&lt;P&gt;I see you are defining post_values As New System.Collections.Generic.Dictionary(Of String, String), but are not using it by adding post_values.Add("token", "YOUR_TOKEN_HERE").&lt;BR /&gt;&lt;BR /&gt;Try something easy to start with, as the&amp;nbsp;&lt;SPAN&gt;post_response&amp;nbsp;is the page returned, based on the token sent and isn't goint to be of any value to you on your own server.&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;Private Function PostToURL(strToken As String) As String
Response.Clear()
Dim posturl As String = "https://test.authorize.net/payment/payment"
Dim sb As New StringBuilder()
sb.Append("&amp;lt;html&amp;gt;")
sb.AppendFormat("&amp;lt;body onload='document.forms[""form""].submit()'&amp;gt;")
sb.AppendFormat("&amp;lt;form target='payframe' name='form' action='{0}' method='post'&amp;gt;", posturl)
sb.AppendFormat("&amp;lt;input type='hidden' name='token' value='{0}'&amp;gt;", strToken)
sb.Append("&amp;lt;/form&amp;gt;")
sb.Append("&amp;lt;iframe style='height: 700px;width:100%;border-style: none;' name='payframe' id='payframe'&amp;gt;&amp;lt;/iframe&amp;gt;")
sb.Append("&amp;lt;/body&amp;gt;")
sb.Append("&amp;lt;/html&amp;gt;")
Response.Write(sb.ToString())
Response.End()
Return strToken
End Function&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jul 2017 23:22:24 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Need-help-with-getHostedPaymentPageResponse/m-p/58799#M33411</guid>
      <dc:creator>NexusSoftware</dc:creator>
      <dc:date>2017-07-12T23:22:24Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with getHostedPaymentPageResponse</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Need-help-with-getHostedPaymentPageResponse/m-p/58801#M33413</link>
      <description>&lt;P&gt;That got me a form. &amp;nbsp;Thank you so much!&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jul 2017 23:28:41 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Need-help-with-getHostedPaymentPageResponse/m-p/58801#M33413</guid>
      <dc:creator>prsnider73</dc:creator>
      <dc:date>2017-07-12T23:28:41Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with getHostedPaymentPageResponse</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Need-help-with-getHostedPaymentPageResponse/m-p/58809#M33419</link>
      <description>&lt;P&gt;You're welcome. Glad to hear you are getting a form now.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jul 2017 19:07:25 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Need-help-with-getHostedPaymentPageResponse/m-p/58809#M33419</guid>
      <dc:creator>NexusSoftware</dc:creator>
      <dc:date>2017-07-13T19:07:25Z</dc:date>
    </item>
  </channel>
</rss>

