py-authorize icon indicating copy to clipboard operation
py-authorize copied to clipboard

AuthorizeInvalidError for amounts greater than $20,000

Open gonzalodelgado opened this issue 8 years ago • 2 comments

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 avatar Feb 23 '17 22:02 gonzalodelgado

@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

prakashpp avatar May 12 '17 12:05 prakashpp

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

vcatalano avatar Aug 31 '20 20:08 vcatalano