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

AuthorizeInvalidError for amounts greater than $20,000 #67

Open
gonzalodelgado opened this issue Feb 23, 2017 · 2 comments
Open

AuthorizeInvalidError for amounts greater than $20,000 #67

gonzalodelgado opened this issue Feb 23, 2017 · 2 comments

Comments

@gonzalodelgado
Copy link

Amount SchemaNodes have an arbitrary and hardcoded max value of 20000 for apparently no reason, preventing transactions for higher values from going through.

The following code causes that error:

import authorize

authorize.Configuration.configure(
    authorize.Environment.TEST,
    'api_login_id',
    'api_transaction_key',
)

result = authorize.Transaction.sale({
    'amount': 20001.00,
    'credit_card': {
        'card_number': '4111111111111111',
        'expiration_date': '04/2019',
        'card_code': '343',
    }
})

The error stems from the schemas.py file. Removing the max values of 20000 (there are others) fixes this, but I'm wondering if there's a reason for having those hardcoded values there (Authorize.net claims to not impose any upper limits on transaction amounts).

Thanks!

gonzalodelgado added a commit to gonzalodelgado/py-authorize that referenced this issue Feb 23, 2017
@prakashpp
Copy link

@vcatalano we were just impacted by the same issue.

Would be great if you could merge and release this patch

Thank you for maintaining this library 👍 and happy to help should you need some help

@vcatalano
Copy link
Owner

Getting back to this after a loooong break. @prakashpp, not sure if you would still be interested in taking a look at this one?

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

No branches or pull requests

3 participants