added config_byte to registration
This commit is contained in:
parent
1cc10edd0f
commit
1f637b8c21
1 changed files with 6 additions and 1 deletions
7
test_pt.py
Normal file → Executable file
7
test_pt.py
Normal file → Executable file
|
@ -1,3 +1,4 @@
|
|||
#!/usr/bin/env python
|
||||
# -*- coding: utf-8 -*-
|
||||
"""
|
||||
Example script to demonstrate a payment process.
|
||||
|
@ -16,7 +17,11 @@ if __name__ == '__main__':
|
|||
e.transport.slog = ecr.ecr_log
|
||||
print(e.detect_pt())
|
||||
if e.detect_pt():
|
||||
e.register()
|
||||
e.register(config_byte=packets.base_packets.Registration.generate_config(
|
||||
ecr_prints_receipt=False,
|
||||
ecr_prints_admin_receipt=False,
|
||||
ecr_controls_admin=True,
|
||||
ecr_controls_payment=True,))
|
||||
|
||||
status = e.status()
|
||||
if status:
|
||||
|
|
Loading…
Reference in a new issue