vcatalano / py-authorize

A full-featured Python API for the Authorize.net payment gateway.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Transaction.list issue in 1.2.1.0

clearcode opened this issue · comments

Hi, we found bug in the new version. In response on request:

Transaction.list(batch_id)

we always get only one transaction, even if should be more.

Responsible for it is function that parsing response, because all transactions are in XML data which come from authorize.

Possible solution: if you change in response_parser.py in LIST_FIELDS "transactions" to "transaction", transactions list will be available under keys:

result = authorize.Transaction.list('3346371')
transaction_list = result.transactions['transaction']

but we are not sure the way you want to parse it.

I think you're right. I want to make sure that this doesn't affect any other transaction fields that may be part of a request. I will look into this.