Birch customer display connector
Add to Chrome
Opens the official Chrome Web Store
About Birch customer display connector
Birtch customer display app
// The ID of the extension we want to talk to.
var customerDisplayExtensionId = "ihfgcklpchljeoocpbokhcibeflhhojg";
let message = { // One of dealRow, total or payment
dealRow: {
productName: 'This is product name!',
productCode: 'productCode',
price: '1.95583',
quantity: '10000',
total: '5112.918811962185'
},
total:{
fee: '2.00',
total: '90.67'
},
payment:{
received: '100.00',
return: '9.33'
}
};
chrome.runtime.sendMessage(customerDisplayExtensionId, {message: message},
(response) => {
if (!response)
console.log('No response');
});
var customerDisplayExtensionId = "ihfgcklpchljeoocpbokhcibeflhhojg";
let message = { // One of dealRow, total or payment
dealRow: {
productName: 'This is product name!',
productCode: 'productCode',
price: '1.95583',
quantity: '10000',
total: '5112.918811962185'
},
total:{
fee: '2.00',
total: '90.67'
},
payment:{
received: '100.00',
return: '9.33'
}
};
chrome.runtime.sendMessage(customerDisplayExtensionId, {message: message},
(response) => {
if (!response)
console.log('No response');
});
Permissions & site access
No access to the websites you visit.
Other permissions:
serial storage
Read from the extension's manifest. Chrome shows the same warnings before installation.