<?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.js hosted form with aspx page in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Accept-js-hosted-form-with-aspx-page/m-p/90806#M57085</link>
    <description>&lt;P&gt;Hello vgtucker,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I see you have onClick event on your button , are you submitting the form or you have the code behind event for&amp;nbsp;&lt;SPAN&gt;btnPayCC_Click ? Could you please add debug point or logging on your code behind and see whether your call go through code behind ?&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 22 Nov 2024 01:59:23 GMT</pubDate>
    <dc:creator>dipespat</dc:creator>
    <dc:date>2024-11-22T01:59:23Z</dc:date>
    <item>
      <title>Accept.js hosted form with aspx page</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Accept-js-hosted-form-with-aspx-page/m-p/90663#M56994</link>
      <description>&lt;P&gt;I am working on integrating the Accept.js hosted payment form with my existing application. It is written in C# using webforms. The button brings up the lightbox and I get a token back on submit. My problem is it's not triggering the onClick event to send everything to the aspx.cs file. Their instructions say you can add your onclick event to the button so it will do both. I am collecting some other basic info on my form and want to write that data to my database and use my existing API calls to send the payment request with the nonce. I suspect the issue is with the action atribute in the form tag (action="&lt;A href="https://YourServer/PathToExistingPaymentProcessingScript" target="_blank" rel="noopener"&gt;https://YourServer/PathToExistingPaymentProcessingScript&lt;/A&gt;"&amp;gt;). I currently have it set to &lt;A href="http://localhost:55451/Payment.aspx" target="_blank" rel="noopener"&gt;http://localhost:11111/Payment.aspx&lt;/A&gt; which is the page with the button for the lightbox and I'm testing on my local machine. I would like it to process like a regular webforms page does by sending the&amp;nbsp;form data (and opaquedata) to the payment.aspx.cs page. I'm not getting any error, it just drops my back on my payment.aspx page instead of triggering the actions in the onClick event.&lt;/P&gt;&lt;P&gt;The code for the button is below...&lt;/P&gt;&lt;P class=""&gt;&amp;lt;&lt;SPAN class=""&gt;asp&lt;/SPAN&gt;:&lt;SPAN class=""&gt;Button&lt;/SPAN&gt; &lt;SPAN class=""&gt;ID&lt;/SPAN&gt;="btnPayCC" &lt;SPAN class=""&gt;OnClick&lt;/SPAN&gt;="btnPayCC_Click" &lt;SPAN class=""&gt;runat&lt;/SPAN&gt;="server" &lt;SPAN class=""&gt;Text&lt;/SPAN&gt;="Pay Now" &lt;SPAN class=""&gt;class&lt;/SPAN&gt;="AcceptUI"&lt;BR /&gt;&lt;SPAN class=""&gt;data-billingAddressOptions&lt;/SPAN&gt;='{"show":true, "required":false}'&lt;BR /&gt;&lt;SPAN class=""&gt;data-apiLoginID&lt;/SPAN&gt;="xxxx"&lt;BR /&gt;&lt;SPAN class=""&gt;data-clientKey&lt;/SPAN&gt;="xxxx"&lt;BR /&gt;data-acceptUIFormBtnTxt&lt;SPAN class=""&gt;="Submit"&lt;BR /&gt;&lt;/SPAN&gt;data-acceptUIFormHeaderTxt&lt;SPAN class=""&gt;="Card Information"&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;data-paymentOptions&lt;/SPAN&gt;='{"showCreditCard": true, "showBankAccount": true}'&lt;BR /&gt;data-responseHandler&lt;SPAN class=""&gt;="responseHandler"&lt;/SPAN&gt; &lt;SPAN class=""&gt;/&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;I have had a lot of trouble finding a c# webforms example for using accept.js so any help would be greatly appreciated.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Nov 2024 19:44:04 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Accept-js-hosted-form-with-aspx-page/m-p/90663#M56994</guid>
      <dc:creator>vgtucker</dc:creator>
      <dc:date>2024-11-01T19:44:04Z</dc:date>
    </item>
    <item>
      <title>Re: Accept.js hosted form with aspx page</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Accept-js-hosted-form-with-aspx-page/m-p/90806#M57085</link>
      <description>&lt;P&gt;Hello vgtucker,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I see you have onClick event on your button , are you submitting the form or you have the code behind event for&amp;nbsp;&lt;SPAN&gt;btnPayCC_Click ? Could you please add debug point or logging on your code behind and see whether your call go through code behind ?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Nov 2024 01:59:23 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Accept-js-hosted-form-with-aspx-page/m-p/90806#M57085</guid>
      <dc:creator>dipespat</dc:creator>
      <dc:date>2024-11-22T01:59:23Z</dc:date>
    </item>
  </channel>
</rss>

