vcatalano / py-authorize

A full-featured Python API for the Authorize.net payment gateway.
MIT License
42 stars 35 forks source link

AttributeError: type object 'Configuration' has no attribute 'api' #49

Closed shaunc869 closed 8 years ago

shaunc869 commented 8 years ago

Hi!

When I am trying to do a:

result = authorize.Transaction.sale({ 'amount': amount, 'customer_id': cust_id 'payment_id': pay_id })

Any ideas? Thank you!

vcatalano commented 8 years ago

Before running any commands you must first run the configure function:

authorize.Configuration.configure(
    authorize.Environment.TEST,
    'api_login_id',
    'api_transaction_key',
)
shaunc869 commented 8 years ago

Yup, totally being dumb, sorry about that and thanks for the help!