| February
11, 2013
For some mysterious
reason once in a while a
transaction authorized by
AuthorizeNet didn't get into
the orders database.
SilentPost is used to
trigger the database entry.
A method was needed to pull
down a list of transactions
from AuthorizeNet and check
each one for being in the
database. Doing it manually
was just too tedious.
Initially it was assummed that
the API could be used to pull
down settled transactions. It
turns out that it is a lot more
complicated than a simple API
call. It isnecessary to first
download a list of batched
settlements, and then make
another call to get the
transactions from each batch. A
date range can be put in to
limit the number of batched
settlements. The AuthorizeNet
API in Java was downloaded as
source and compiled. It is
available at
http://dvdsdirect.us/notes/anet-1.4.6.jar.
If you need them, the
dependencies are at
http://dvdsdirect.us/notes/dependencies/anetlib.jar Here is the Java
source for the project. Notice
that there are two references in
the second listing, GetSettledTransactions: GetAuthorizeNetProfile getprofile = new GetAuthorizeNetProfile(); AuthorizeNetContext context = getprofile.apiContext(); |