net.authorize.admc.authnet
Interface AimTransaction.Persistor

Enclosing class:
AimTransaction

public static interface AimTransaction.Persistor

An implementation of this interface may be passed to the postPurchase method to perform any custom post-purchase processing.

This allows you to do any post-processing in your own class without needing to work with the AIM reply fields of the AimTransaction object directly. Just have your existing class implement this interface. See the supplied *SamplePersistor classes for tempalte persist methods.

Absolutely nothing wrong with ignoring the Persistor interface, calling postProcess() and handling persistence yourself manually with the AimTransaction object.

See Also:
AimTransaction.postPurchase(Persistor)

Method Summary
 void persist(String invId, int amount, String approvalCode, BigDecimal transId, String vehicle)
          Perform some custom post-purchase processing.
 

Method Detail

persist

void persist(String invId,
             int amount,
             String approvalCode,
             BigDecimal transId,
             String vehicle)
             throws SQLException,
                    AuthNetException
Perform some custom post-purchase processing. Your implementation does not need to declare (or throw) the SQLException or AuthNetException.

Parameters:
invId - will be null if you didn't set it in order. If you're going to use this method, it's useful to use setInvoiceNum() so the invoice can be used to associate your order with the Authorize.net transaction record.
amount - WRITEME
approvalCode - WRITEME
transId - WRITEME
vehicle - WRITEME
Throws:
SQLException - WRITEME
AuthNetException - WRITEME
See Also:
AimTransaction.setInvoiceNum(int)