<?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 Showreceipt set to false makes the Pay button stuck showing&amp;quot;processing&amp;quot; in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Showreceipt-set-to-false-makes-the-Pay-button-stuck-showing-quot/m-p/68603#M41776</link>
    <description>&lt;P&gt;I am trying to integrate by embedding the iframe . The communicator page sends response to the events. When I click on the Pay button, the button is stuck showing "processing.." This happens when the showreceipt is set to "false", but when I set it to true, the payment is processed and shows the receipt page.&lt;/P&gt;&lt;P&gt;After clicking Pay button I want it to be forwarded back to our site to display custom receipt after payment processing that is the reason for setting showreceipt to "false".&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does somebody have any thoughts or suggestions for this issue?&lt;/P&gt;</description>
    <pubDate>Wed, 31 Jul 2019 04:46:38 GMT</pubDate>
    <dc:creator>schitti_123</dc:creator>
    <dc:date>2019-07-31T04:46:38Z</dc:date>
    <item>
      <title>Showreceipt set to false makes the Pay button stuck showing"processing"</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Showreceipt-set-to-false-makes-the-Pay-button-stuck-showing-quot/m-p/68603#M41776</link>
      <description>&lt;P&gt;I am trying to integrate by embedding the iframe . The communicator page sends response to the events. When I click on the Pay button, the button is stuck showing "processing.." This happens when the showreceipt is set to "false", but when I set it to true, the payment is processed and shows the receipt page.&lt;/P&gt;&lt;P&gt;After clicking Pay button I want it to be forwarded back to our site to display custom receipt after payment processing that is the reason for setting showreceipt to "false".&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does somebody have any thoughts or suggestions for this issue?&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jul 2019 04:46:38 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Showreceipt-set-to-false-makes-the-Pay-button-stuck-showing-quot/m-p/68603#M41776</guid>
      <dc:creator>schitti_123</dc:creator>
      <dc:date>2019-07-31T04:46:38Z</dc:date>
    </item>
    <item>
      <title>Re: Showreceipt set to false makes the Pay button stuck showing"processing"</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Showreceipt-set-to-false-makes-the-Pay-button-stuck-showing-quot/m-p/68612#M41784</link>
      <description>&lt;a href="https://community.developer.cybersource.com/t5/user/viewprofilepage/user-id/31919"&gt;@schitti_123&lt;/a&gt;&lt;BR /&gt;&lt;BR /&gt;Post your code and I may be able to help you.</description>
      <pubDate>Wed, 31 Jul 2019 16:34:27 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Showreceipt-set-to-false-makes-the-Pay-button-stuck-showing-quot/m-p/68612#M41784</guid>
      <dc:creator>Renaissance</dc:creator>
      <dc:date>2019-07-31T16:34:27Z</dc:date>
    </item>
    <item>
      <title>Re: Showreceipt set to false makes the Pay button stuck showing"processing"</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Showreceipt-set-to-false-makes-the-Pay-button-stuck-showing-quot/m-p/68623#M41794</link>
      <description>&lt;P&gt;&lt;a href="https://community.developer.cybersource.com/t5/user/viewprofilepage/user-id/26959"&gt;@Renaissance&lt;/a&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;public class HomeController : Controller&lt;BR /&gt;{&lt;BR /&gt;IHostingEnvironment _env;&lt;BR /&gt;IConfiguration _config;&lt;BR /&gt;public HomeController(IHostingEnvironment env, IConfiguration config)&lt;BR /&gt;{&lt;BR /&gt;_env = env;&lt;BR /&gt;_config = config;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;public IActionResult Index()&lt;BR /&gt;{&lt;BR /&gt;customerAddressType BillTo = new customerAddressType&lt;BR /&gt;{&lt;BR /&gt;address = "120 Sceneic Drive",&lt;BR /&gt;city = "Twinsburg ",&lt;BR /&gt;state = "OH",&lt;BR /&gt;zip = "14326",&lt;BR /&gt;firstName = "Sam",&lt;BR /&gt;lastName = "Donald",&lt;BR /&gt;country = "USA",&lt;BR /&gt;phoneNumber = "4454546589",&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;int CreditCardTransactionID = 121212;&lt;BR /&gt;decimal Amount = 100;&lt;BR /&gt;int OrderID = 1234567;&lt;BR /&gt;string IPAddress = "127.0.0.1";&lt;BR /&gt;int CustomerID = 5129999;&lt;BR /&gt;transactionTypeEnum transtype = transactionTypeEnum.authCaptureTransaction;&lt;/P&gt;&lt;P&gt;merchantAuthenticationType mat = new merchantAuthenticationType&lt;BR /&gt;{&lt;BR /&gt;name = _config.GetValue&amp;lt;string&amp;gt;("Authorize.Net:TransactionKey"),&lt;BR /&gt;ItemElementName = ItemChoiceType.transactionKey,&lt;BR /&gt;Item = _config.GetValue&amp;lt;string&amp;gt;("Authorize.Net:Password"),&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;string CancelURL;&lt;BR /&gt;string ReturnURL;&lt;BR /&gt;string URL;&lt;BR /&gt;string CommunicatorURL;&lt;BR /&gt;string PaymentPageURL;&lt;BR /&gt;string ShowReceipt = "false";&lt;/P&gt;&lt;P&gt;string HostURL = _config.GetValue&amp;lt;string&amp;gt;("RootURL");&lt;/P&gt;&lt;P&gt;switch ((_env.EnvironmentName ?? "").Trim().ToUpper())&lt;BR /&gt;{&lt;BR /&gt;case "DEVELOPMENT":&lt;BR /&gt;string NGrokPath = $"{HostURL}/Home";&lt;BR /&gt;CommunicatorURL = $"{NGrokPath}/Communicator";&lt;BR /&gt;CancelURL = $"{NGrokPath}/Cancel";&lt;BR /&gt;ReturnURL = $"{NGrokPath}/Returning";&lt;BR /&gt;PaymentPageURL = $"{NGrokPath}/";&lt;BR /&gt;URL = $"{NGrokPath}";&lt;BR /&gt;break;&lt;BR /&gt;case "STAGING":&lt;BR /&gt;case "PRODUCTION":&lt;BR /&gt;CommunicatorURL = $"{HostURL}/Home/Communicator";&lt;BR /&gt;CancelURL = $"{HostURL}/Home/Cancel";&lt;BR /&gt;ReturnURL = $"{HostURL}/Home/Returning";&lt;BR /&gt;PaymentPageURL = $"{HostURL}/";&lt;BR /&gt;ShowReceipt = "true";&lt;BR /&gt;break;&lt;BR /&gt;default:&lt;BR /&gt;return Error();&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;HostedPayment hp = new HostedPayment(mat, AuthorizeNet.Environment.SANDBOX);&lt;BR /&gt;HostedToken ht = hp.AttemptTransaction(CreditCardTransactionID, Amount, OrderID, IPAddress, CustomerID, null, false, transtype, BillTo, ReturnURL, CancelURL, CommunicatorURL, PaymentPageURL, ShowReceipt);&lt;BR /&gt;return View(ht);&lt;BR /&gt;}&lt;BR /&gt;public IActionResult Cancel()&lt;BR /&gt;{&lt;BR /&gt;return Content("Cancelled");&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;public IActionResult Returning()&lt;BR /&gt;{&lt;BR /&gt;return Content("Done!");&lt;BR /&gt;}&lt;BR /&gt;public IActionResult Communicator()&lt;BR /&gt;{&lt;BR /&gt;return View();&lt;BR /&gt;}&lt;BR /&gt;[Route("/Home/Empty1")]&lt;BR /&gt;[Route("/Home/Home/Empty1")]&lt;BR /&gt;public IActionResult Empty1()&lt;BR /&gt;{&lt;BR /&gt;return View();&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;[HttpPost]&lt;BR /&gt;public IActionResult WebHook()&lt;BR /&gt;{&lt;BR /&gt;string s = "";&lt;BR /&gt;using (StreamReader reader = new StreamReader(Request.Body, Encoding.UTF8))&lt;BR /&gt;{&lt;BR /&gt;s = reader.ReadToEnd();&lt;BR /&gt;}&lt;BR /&gt;System.Diagnostics.Debug.WriteLine("##### " + s);&lt;BR /&gt;return Ok();&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;[ResponseCache(Duration = 0, Location = ResponseCacheLocation.None, NoStore = true)]&lt;BR /&gt;public IActionResult Error()&lt;BR /&gt;{&lt;BR /&gt;return View(new ErrorViewModel { RequestId = Activity.Current?.Id ?? HttpContext.TraceIdentifier });&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;}&lt;/P&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;I used the suggestion in this link for now as a workaround. Also I want the json result to be pushed to webhook, if you could share any thoughts about that that would be helpful.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://stackoverflow.com/questions/43700622/how-to-implement-authorize-net-hosted-payments-iframe-laravel/43700623#43700623" target="_blank" rel="noopener"&gt;https://stackoverflow.com/questions/43700622/how-to-implement-authorize-net-hosted-payments-iframe-laravel/43700623#43700623&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Chitti&lt;/P&gt;</description>
      <pubDate>Thu, 01 Aug 2019 14:28:07 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Showreceipt-set-to-false-makes-the-Pay-button-stuck-showing-quot/m-p/68623#M41794</guid>
      <dc:creator>schitti_123</dc:creator>
      <dc:date>2019-08-01T14:28:07Z</dc:date>
    </item>
    <item>
      <title>Re: Showreceipt set to false makes the Pay button stuck showing"processing"</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Showreceipt-set-to-false-makes-the-Pay-button-stuck-showing-quot/m-p/68626#M41795</link>
      <description>&lt;a href="https://community.developer.cybersource.com/t5/user/viewprofilepage/user-id/31919"&gt;@schitti_123&lt;/a&gt;&lt;BR /&gt;&lt;BR /&gt;What happens when you click the cancel button? And can you print out what is being output as the Host URL?</description>
      <pubDate>Fri, 02 Aug 2019 21:43:02 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Showreceipt-set-to-false-makes-the-Pay-button-stuck-showing-quot/m-p/68626#M41795</guid>
      <dc:creator>Renaissance</dc:creator>
      <dc:date>2019-08-02T21:43:02Z</dc:date>
    </item>
    <item>
      <title>Re: Showreceipt set to false makes the Pay button stuck showing"processing"</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Showreceipt-set-to-false-makes-the-Pay-button-stuck-showing-quot/m-p/68642#M41807</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;a href="https://community.developer.cybersource.com/t5/user/viewprofilepage/user-id/26959"&gt;@Renaissance&lt;/a&gt;&amp;nbsp;Sorry for the delay in responding. The Cancel button works, If I give CancelUrl it redirects to that Url. I use ngrok tunnel for testing as I cannot use the local host. The issue now is pushing the json data to our server for validation. Not sure how to do that in Asp.net MVC.&lt;/P&gt;</description>
      <pubDate>Mon, 05 Aug 2019 21:18:15 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Showreceipt-set-to-false-makes-the-Pay-button-stuck-showing-quot/m-p/68642#M41807</guid>
      <dc:creator>schitti_123</dc:creator>
      <dc:date>2019-08-05T21:18:15Z</dc:date>
    </item>
    <item>
      <title>Re: Showreceipt set to false makes the Pay button stuck showing"processing"</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Showreceipt-set-to-false-makes-the-Pay-button-stuck-showing-quot/m-p/69127#M42212</link>
      <description>&lt;P&gt;&lt;a href="https://community.developer.cybersource.com/t5/user/viewprofilepage/user-id/31919"&gt;@schitti_123&lt;/a&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;Did you ever work this out? I am now having the same issue on an integration I am working on. Very odd.&lt;/P&gt;</description>
      <pubDate>Tue, 17 Sep 2019 20:44:22 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Showreceipt-set-to-false-makes-the-Pay-button-stuck-showing-quot/m-p/69127#M42212</guid>
      <dc:creator>Renaissance</dc:creator>
      <dc:date>2019-09-17T20:44:22Z</dc:date>
    </item>
    <item>
      <title>Re: Showreceipt set to false makes the Pay button stuck showing"processing"</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Showreceipt-set-to-false-makes-the-Pay-button-stuck-showing-quot/m-p/69134#M42219</link>
      <description>Tied the issue back to my communicator not working properly.</description>
      <pubDate>Wed, 18 Sep 2019 00:58:59 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Showreceipt-set-to-false-makes-the-Pay-button-stuck-showing-quot/m-p/69134#M42219</guid>
      <dc:creator>Renaissance</dc:creator>
      <dc:date>2019-09-18T00:58:59Z</dc:date>
    </item>
  </channel>
</rss>

