|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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.
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 |
---|
void persist(String invId, int amount, String approvalCode, BigDecimal transId, String vehicle) throws SQLException, AuthNetException
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
- WRITEMEapprovalCode
- WRITEMEtransId
- WRITEMEvehicle
- WRITEME
SQLException
- WRITEME
AuthNetException
- WRITEMEAimTransaction.setInvoiceNum(int)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |