Posts: 1
Registered: ‎05-16-2019

AcceptUI.js integration - responseHandler being called twice

[ Edited ]


I am integrating AcceptUI.js in my angularjs app.  I found that the responseHandler method is being called twice (one succeeds and one fails) onclicking the paynow button.


I want to avoid this situation.  Please guide me.


I am making the call to createTransaction api, after i get the nonce from responseHandler, via angularjs http call.  Our architecture is AngularJS + Java RESTAPIs, and we want to avoid making calls to the external payment apis from our REST APIs.


Let me know if you need further details.