<?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 Accept Hosted -Call java script on click of pay button in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Accept-Hosted-Call-java-script-on-click-of-pay-button/m-p/58538#M33168</link>
    <description>&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We are using accept hosted form that embeded in our main page in iframe.(no popup).&lt;/P&gt;&lt;P&gt;Now along with this page we have terms and condition checkbox in main page and this should be check before submitting payment.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can we add such kind of validation before clicking on pay in accept hosted form.&lt;/P&gt;</description>
    <pubDate>Wed, 21 Jun 2017 13:57:36 GMT</pubDate>
    <dc:creator>raviparmarce88</dc:creator>
    <dc:date>2017-06-21T13:57:36Z</dc:date>
    <item>
      <title>Accept Hosted -Call java script on click of pay button</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Accept-Hosted-Call-java-script-on-click-of-pay-button/m-p/58538#M33168</link>
      <description>&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We are using accept hosted form that embeded in our main page in iframe.(no popup).&lt;/P&gt;&lt;P&gt;Now along with this page we have terms and condition checkbox in main page and this should be check before submitting payment.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can we add such kind of validation before clicking on pay in accept hosted form.&lt;/P&gt;</description>
      <pubDate>Wed, 21 Jun 2017 13:57:36 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Accept-Hosted-Call-java-script-on-click-of-pay-button/m-p/58538#M33168</guid>
      <dc:creator>raviparmarce88</dc:creator>
      <dc:date>2017-06-21T13:57:36Z</dc:date>
    </item>
    <item>
      <title>Re: Accept Hosted -Call java script on click of pay button</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Accept-Hosted-Call-java-script-on-click-of-pay-button/m-p/58540#M33170</link>
      <description>&lt;P&gt;One way, using Jquery:&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&amp;lt;input class="accept_terms" type="checkbox" name="accept_terms" value="1" onchange="valueChanged()"/&amp;gt;

&amp;lt;script type="text/javascript"&amp;gt;
function valueChanged()
{
    if($('.accept_terms').is(":checked"))   
        $("#IFRAME_DIV").show();
    else
        $("#IFRAME_DIV").hide();
}
&amp;lt;/script&amp;gt;&lt;/PRE&gt;&lt;P&gt;Or another way, would be to start with your iframe div id having a style of display:none; then when the checkbox is selected:&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;$("#ACCEPT_TERMS").click(function() {
            $("#IFRAME_DIV").toggle();
        });&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Jun 2017 15:42:26 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Accept-Hosted-Call-java-script-on-click-of-pay-button/m-p/58540#M33170</guid>
      <dc:creator>NexusSoftware</dc:creator>
      <dc:date>2017-06-21T15:42:26Z</dc:date>
    </item>
    <item>
      <title>Re: Accept Hosted -Call java script on click of pay button</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Accept-Hosted-Call-java-script-on-click-of-pay-button/m-p/58570#M33196</link>
      <description>&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;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Let me check with you suggestion.&lt;/P&gt;</description>
      <pubDate>Fri, 23 Jun 2017 06:16:47 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Accept-Hosted-Call-java-script-on-click-of-pay-button/m-p/58570#M33196</guid>
      <dc:creator>raviparmarce88</dc:creator>
      <dc:date>2017-06-23T06:16:47Z</dc:date>
    </item>
  </channel>
</rss>

