This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
integration-api:detailed [2018/06/26 09:43] tjotov |
— (current) | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== ADUCID Integration API Description ====== | ||
| - | //advanced method to pass more parameters like transaction amount, description, | ||
| - | aducid.setInitParams = function(param) { | ||
| - | initParams = param; | ||
| - | } | ||
| - | |||
| - | //tell server to generate QR / or not to reduce payload | ||
| - | aducid.setGenerateQr = function(param) { | ||
| - | generateQr = param; | ||
| - | } | ||
| - | |||
| - | //QR code and animation location jQuery | ||
| - | aducid.setQrCode = function(param) { | ||
| - | qrCode = param; | ||
| - | } | ||
| - | | ||
| - | //QR code hint jQuery | ||
| - | aducid.setQrHint = function(param) { | ||
| - | qrHint = param; | ||
| - | } | ||
| - | |||
| - | //Embedded timer location | ||
| - | aducid.setQrTimer = function(param) { | ||
| - | qrTimer = param; | ||
| - | } | ||
| - | |||
| - | debug DOM to display internal messages | ||
| - | aducid.setDebug = function(param) { | ||
| - | aducidDebug = param; | ||
| - | } | ||
| - | |||
| - | server URL typically provided by server side controller | ||
| - | aducid.setStartOperationUrl = function(param) { | ||
| - | startOperationUrl = param; | ||
| - | } | ||
| - | |||
| - | //check method provided by server side - what API call when PEIG finishes | ||
| - | aducid.setResultOperationUrl = function(param) { | ||
| - | resultOperationUrl = param; | ||
| - | } | ||
| - | |||
| - | //URL with proxy method provided | ||
| - | //returns status oft running operation from AIM until finish | ||
| - | aducid.setProxyUrl = function(param) { | ||
| - | proxyUrl = param; | ||
| - | } | ||
| - | |||
| - | //GET or POST | ||
| - | //POST is used to deliver more data like transaction parameters | ||
| - | aducid.setAjaxMethod = function(param) { | ||
| - | ajaxMethod = param; | ||
| - | } | ||
| - | |||
| - | aducid.setRedirectUrl = function(param) { | ||
| - | redirectUrl = param; | ||
| - | } | ||
| - | |||
| - | //button with bound operation | ||
| - | aducid.setButton = function(param) { | ||
| - | aducidButton = param; | ||
| - | param.click(function() { | ||
| - | if (currentRequest != null) instance.startOperation(); | ||
| - | else instance.init(true); | ||
| - | }); | ||
| - | } | ||
| - | |||
| - | aducid.setSessionBinding = function(param) { | ||
| - | if (param == " | ||
| - | } | ||
| - | else param = ""; | ||
| - | localStorage[' | ||
| - | } | ||
| - | |||
| - | aducid.getSessionBinding = function() { | ||
| - | return localStorage[' | ||
| - | } | ||
| - | |||
| - | aducid.isURI = function() { | ||
| - | return instance.getSessionBinding() == " | ||
| - | } | ||
| - | aducid.isQR = function() { | ||
| - | return instance.getSessionBinding() == " | ||
| - | } | ||
| - | |||
| - | aducid.setAuthentication = function() { | ||
| - | instance.setSessionBinding(null); | ||
| - | } | ||
| - | |||
| - | aducid.showQRHint = function(param) { | ||
| - | if (qrHint != null) qrHint.html(localize(" | ||
| - | } | ||
| - | |||
| - | aducid.hideQRHint = function(param) { | ||
| - | if (qrHint != null) qrHint.html("" | ||
| - | } | ||
| - | |||
| - | aducid.showRunningHint = function(param) { | ||
| - | if (qrHint != null) qrHint.html(localize(" | ||
| - | } | ||
| - | |||
| - | aducid.hideRunningHint = function(param) { | ||
| - | if (qrHint != null) qrHint.html("" | ||
| - | } | ||
| - | |||
| - | //Params | ||
| - | var proxyParams = { | ||
| - | " | ||
| - | " | ||
| - | }; | ||