Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

implement decoding simple requests #10

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Conversation

monoidk
Copy link

@monoidk monoidk commented Apr 26, 2023

Implemented basic decode for a simple most common payment format.

import pay_by_square
print(pay_by_square.decode(b'00...'))
python3 -c 'import pay_by_square; from pprint import pprint; pprint(pay_by_square.decode("0005M00012LBBN6EVVIO6I2MD1A3D4NP5FR5TEPRPD1R2KAE60SS1IAQV4T4C1AMCALGA9QH2SAKAG7DVL6LBCS90RE527H8BC90QTTB8CLHNA1SRKK3A7SU86PI6A69D2EU70S000000000"))'

monoidk added 4 commits April 26, 2023 10:39
Some pay-by-square images seem to have a space in the
first field (expected empty field).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant