The Commerce Cloud Endless Aisle app appears whether the payment device is communicating with the app. You do so by implementing the following functions in your module:
moduleName.verifyDeviceConnection = function() {
var connected = adyen._verifyDeviceConnection({});
Alloy.Router.paymentDeviceConnectionChecked(connected);
return connected;
};
moduleName.getNoDeviceConnectionImage = function() {
return "demandware/images/checkout/adyenPaymentTerminal.png";
};
moduleName.getNoDeviceConnectionMessage = function() {
return _L("No Connection To Payment Device Message Adyen");
};
The verifyDeviceConnection()
function returns true or
false, depending on whether the payment device is connected and ready to
communicate with the app.
The getNoDeviceConnectionImage
function returns an
image that provides instructions to the user about how to connect the
device.
The getNoDeviceConnectionMessage
function returns a
string when there is no payment device connected.