CortexATM
This is angular/2/7 module to interact with offaly cortex atm peripherals.
Add module
@NgModule({
imports: [
CortexAtmModule
]
})
export class AppModule { }
Open cash receiver
constructor(private service: CortexAtmPeripheralsService) {}
this.service.openBillAcceptor([application-id], [application-name], [customer-number]).onmessage = (message) => {
// message will bring amount of inserted cash message type is BillAcceptor
})
-
application-id: will be provided by your atm-store account
-
application-name: your application name
-
customer-number: public customer identity such as phone number, etc. It will be printed on the receipt
Close cash receiver
constructor(private service: CortexAtmPeripheralsService) {}
this.closeBillAcceptor()
Cash dispense
constructor(private service: CortexAtmPeripheralsService) {}
this.dispense([amount])