You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The method is just being passed through in the CloverConnection.js class, and then it is called in the POSCloverConnectorListener.js in the onDeviceReady method
onDeviceReady(merchantInfo){ // called when the Clover device is ready to communicate
console.log('onDeviceReady', merchantInfo);
this.store.setStoreName(merchantInfo.merchantName);
this.store.setDeviceId(merchantInfo.deviceInfo.serial);
this.toggleConnection(true); <--------- Here
}
Hey guys, trying to look through your code to see how you setup a POS system, but running into some stumbling blocks.
How is this line of code called here?
https://github.com/clover/remote-pay-cloud-examples/blob/master/remote-pay-cloud-pos-react/src/utils/CloverConnection.js#L64
Basically trying to see how toggleConnectionState is being called, and it's not really clear.
The text was updated successfully, but these errors were encountered: