psoft.epayment
Interface MerchantGatewayLog


public interface MerchantGatewayLog

Used to log transactions for MerchantGateway should be subclassed and implemented depending on your needs


Method Summary
 void transaction(int id, double amount, java.util.Date date, int type)
          Writes charge to the merchant account
 long write(long id, long accid, double amount, int trtype, java.lang.String dataOut, java.lang.String dataIn, java.lang.String error, boolean success, int mgid)
          Writes to the log the transacition
 

Method Detail

write

public long write(long id,
                  long accid,
                  double amount,
                  int trtype,
                  java.lang.String dataOut,
                  java.lang.String dataIn,
                  java.lang.String error,
                  boolean success,
                  int mgid)
Writes to the log the transacition

Parameters:
id - transaction id to update information
accid - account id
amount - amount of money
trtype - transaction type (charge, authorize, capture, void)
dataOut - data passed to merchant gateway
error - Error messages returned by gateway
success - Transaction result
mgid - merchant gateway ID
Returns:
transaction Id

transaction

public void transaction(int id,
                        double amount,
                        java.util.Date date,
                        int type)
Writes charge to the merchant account

Parameters:
id - - merchant id
amount - - amount of money
date - - date of transaction
type - - type of transaction


Copyright © 2005 Positive Software Corporation. All Rights Reserved.