-
Notifications
You must be signed in to change notification settings - Fork 15
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
Raise exception on errors #5
Comments
@rwdaigle ruby code nitpicking requested for those errors. |
Great! Couple design points: This library should have one job - to decrypt the payment token. So, we should do as little else as possible, including modifying the decrypted keys. Whatever the keys/values are in the token, we should just return it and not make any assumptions about key naming. If we remove the key renaming, I believe we will also be able to remove the need to do any Also, looking at If we do the above, I think we remove the need for |
Exactly the type of feedback I was looking for. Thanks. |
Like we do in Gala, we should raise an error when known error states are encountered. Looking at the lib it looks like one such state is when the mac verification fails.
Perhaps
DigestVerificationError
?The text was updated successfully, but these errors were encountered: