<?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 responseHandler not callback in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/responseHandler-not-callback/m-p/73855#M45802</link>
    <description>&lt;P&gt;We are using AcceptUI.js impement payment function.&amp;nbsp; &amp;nbsp; &amp;nbsp;Everyting&amp;nbsp; working fine for more than 2 years.&amp;nbsp; But recently some users feedback after enterning credit card number information the&amp;nbsp; payment popup form display loading forever.&amp;nbsp; We added logs found&amp;nbsp;&amp;nbsp;responseHandler() never callback in their case.&amp;nbsp; I&amp;nbsp; want to know&amp;nbsp; in what's case this would be happen and how to fix it.&amp;nbsp; Hope someone could help me out,&amp;nbsp; it's really frustrate,&amp;nbsp; since seems the issues happend in accept.js it self, we can not do anymore actions,&amp;nbsp; the callback not execute&amp;nbsp; so do not know what's error get.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Following is&amp;nbsp; code we are using:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;   &amp;lt;input type="hidden" name="dataValue" id="dataValue" /&amp;gt;
						        &amp;lt;input type="hidden" name="dataDescriptor" id="dataDescriptor" /&amp;gt;
						        &amp;lt;input 
						            type="button" 
						            class="AcceptUI btnPlaceOrder btnPlaceOrderAuthorize btn-pcusa"
									value="Payment | Place Order"									
						            style="
						                width: 100%;
						                padding: 8px 20px;
						                font-weight: normal;
						                margin-bottom: 10px;
						                font-size: 16pt;
						            "
						            data-billingAddressOptions='{"show":true, "required":false}' 
						            data-apiLoginID="&amp;lt;%=creditCardApiLoginID %&amp;gt;" 
									data-clientKey="&amp;lt;%=creditCardClientKey %&amp;gt;"
						            data-acceptUIFormBtnTxt="Place Order" 
						            data-acceptUIFormHeaderTxt="Card Information" 
						            data-responseHandler="responseHandler"
                                /&amp;gt;
 &amp;lt;script type="text/javascript"&amp;gt;
                          //Authorize.net payment
                          function responseHandler(response) {
                              pageViewController.postOrderEvent("Authorize responseHandler call back: " + JSON.stringify(response));
                              if (response.messages.resultCode === "Error") {
                                  var i = 0;
                                  var error = 'Checkout Credicard Pay Error:';
                                  while (i &amp;lt; response.messages.message.length) {
                                      console.log(
                                          response.messages.message[i].code + ": " +
                                          response.messages.message[i].text
                                      );
                                      if (error != '') {
                                          error += "\n";
                                      }
                                      error += response.messages.message[i].text;
                                      i = i + 1;
                                  }
                                  jsErrorHandler.postErrorToServer(error);
                                  setTimeout(alert(error), 1000);

                                  pageViewController.postOrderEvent("Authorize callback error");
                              } else {
                                  pageViewController.postOrderEvent("Authorize callback success");
                                  paymentFormUpdate(response);
                              }
                          }

                          function paymentFormUpdate(response) {
                              var opaqueData = response.opaqueData;
                              document.getElementById("dataDescriptor").value = opaqueData.dataDescriptor;
                              document.getElementById("dataValue").value = opaqueData.dataValue;
                              //document.getElementById("aspnetForm").submit();
                              pageViewController.postOrderEvent("Authorize callback success start  creditCardProcess");
                              pageViewController.creditCardProcess(response);
                          }
                      &amp;lt;/script&amp;gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 05 Nov 2020 04:49:32 GMT</pubDate>
    <dc:creator>tomwangsl</dc:creator>
    <dc:date>2020-11-05T04:49:32Z</dc:date>
    <item>
      <title>responseHandler not callback</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/responseHandler-not-callback/m-p/73855#M45802</link>
      <description>&lt;P&gt;We are using AcceptUI.js impement payment function.&amp;nbsp; &amp;nbsp; &amp;nbsp;Everyting&amp;nbsp; working fine for more than 2 years.&amp;nbsp; But recently some users feedback after enterning credit card number information the&amp;nbsp; payment popup form display loading forever.&amp;nbsp; We added logs found&amp;nbsp;&amp;nbsp;responseHandler() never callback in their case.&amp;nbsp; I&amp;nbsp; want to know&amp;nbsp; in what's case this would be happen and how to fix it.&amp;nbsp; Hope someone could help me out,&amp;nbsp; it's really frustrate,&amp;nbsp; since seems the issues happend in accept.js it self, we can not do anymore actions,&amp;nbsp; the callback not execute&amp;nbsp; so do not know what's error get.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Following is&amp;nbsp; code we are using:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;   &amp;lt;input type="hidden" name="dataValue" id="dataValue" /&amp;gt;
						        &amp;lt;input type="hidden" name="dataDescriptor" id="dataDescriptor" /&amp;gt;
						        &amp;lt;input 
						            type="button" 
						            class="AcceptUI btnPlaceOrder btnPlaceOrderAuthorize btn-pcusa"
									value="Payment | Place Order"									
						            style="
						                width: 100%;
						                padding: 8px 20px;
						                font-weight: normal;
						                margin-bottom: 10px;
						                font-size: 16pt;
						            "
						            data-billingAddressOptions='{"show":true, "required":false}' 
						            data-apiLoginID="&amp;lt;%=creditCardApiLoginID %&amp;gt;" 
									data-clientKey="&amp;lt;%=creditCardClientKey %&amp;gt;"
						            data-acceptUIFormBtnTxt="Place Order" 
						            data-acceptUIFormHeaderTxt="Card Information" 
						            data-responseHandler="responseHandler"
                                /&amp;gt;
 &amp;lt;script type="text/javascript"&amp;gt;
                          //Authorize.net payment
                          function responseHandler(response) {
                              pageViewController.postOrderEvent("Authorize responseHandler call back: " + JSON.stringify(response));
                              if (response.messages.resultCode === "Error") {
                                  var i = 0;
                                  var error = 'Checkout Credicard Pay Error:';
                                  while (i &amp;lt; response.messages.message.length) {
                                      console.log(
                                          response.messages.message[i].code + ": " +
                                          response.messages.message[i].text
                                      );
                                      if (error != '') {
                                          error += "\n";
                                      }
                                      error += response.messages.message[i].text;
                                      i = i + 1;
                                  }
                                  jsErrorHandler.postErrorToServer(error);
                                  setTimeout(alert(error), 1000);

                                  pageViewController.postOrderEvent("Authorize callback error");
                              } else {
                                  pageViewController.postOrderEvent("Authorize callback success");
                                  paymentFormUpdate(response);
                              }
                          }

                          function paymentFormUpdate(response) {
                              var opaqueData = response.opaqueData;
                              document.getElementById("dataDescriptor").value = opaqueData.dataDescriptor;
                              document.getElementById("dataValue").value = opaqueData.dataValue;
                              //document.getElementById("aspnetForm").submit();
                              pageViewController.postOrderEvent("Authorize callback success start  creditCardProcess");
                              pageViewController.creditCardProcess(response);
                          }
                      &amp;lt;/script&amp;gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 05 Nov 2020 04:49:32 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/responseHandler-not-callback/m-p/73855#M45802</guid>
      <dc:creator>tomwangsl</dc:creator>
      <dc:date>2020-11-05T04:49:32Z</dc:date>
    </item>
    <item>
      <title>Re: responseHandler not callback</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/responseHandler-not-callback/m-p/73856#M45803</link>
      <description>&lt;P&gt;BTW the UI stuck at "Loading" popup dialog for ever,&amp;nbsp; user has tried many times with refersh page, but still can not solve it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Nov 2020 04:58:53 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/responseHandler-not-callback/m-p/73856#M45803</guid>
      <dc:creator>tomwangsl</dc:creator>
      <dc:date>2020-11-05T04:58:53Z</dc:date>
    </item>
    <item>
      <title>Re: responseHandler not callback</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/responseHandler-not-callback/m-p/73862#M45807</link>
      <description>&lt;P class="_1qeIAgB0cPwnLhDF9XSiJM"&gt;&lt;SPAN&gt;I&amp;nbsp;&lt;/SPAN&gt;am always confused about the difference between these two. If the chunk below was the app, how would a unit test look like? And an integration test?&amp;nbsp;&lt;A href="https://www.myccpay.ltd/" target="_self"&gt;&lt;SPAN&gt;MyCCPay&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;&lt;P class="_1qeIAgB0cPwnLhDF9XSiJM"&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;def add(a, b):
    return a + b

def mult(a, b):
    return a * b

if __name__ == "__main__":
    mult(10, add(2, 5))&lt;/PRE&gt;&lt;P class="_1qeIAgB0cPwnLhDF9XSiJM"&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Nov 2020 07:49:38 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/responseHandler-not-callback/m-p/73862#M45807</guid>
      <dc:creator>Lennie</dc:creator>
      <dc:date>2020-11-05T07:49:38Z</dc:date>
    </item>
    <item>
      <title>Re: responseHandler not callback</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/responseHandler-not-callback/m-p/79097#M49727</link>
      <description>&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;i could not able to call my update method from the bolt responsehandler.please helpme on this issue.angular6:error.js.1673 error&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Sat, 09 Oct 2021 08:30:20 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/responseHandler-not-callback/m-p/79097#M49727</guid>
      <dc:creator>securitasepay</dc:creator>
      <dc:date>2021-10-09T08:30:20Z</dc:date>
    </item>
    <item>
      <title>Re: responseHandler not callback</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/responseHandler-not-callback/m-p/79126#M49743</link>
      <description>&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;i could not able to call my update method from the bolt responsehandler.please helpme on this issue.angular6:error.js.1673 error&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;&lt;A title="securitasepay" href="https://securitasepay.one/" target="_blank" rel="noopener"&gt;securitasepay&lt;/A&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Sun, 10 Oct 2021 09:20:26 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/responseHandler-not-callback/m-p/79126#M49743</guid>
      <dc:creator>securitasepay</dc:creator>
      <dc:date>2021-10-10T09:20:26Z</dc:date>
    </item>
  </channel>
</rss>

