Class semper.payment.PaymentTransaction
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class semper.payment.PaymentTransaction

java.lang.Object
   |
   +----semper.payment.PaymentTransaction

public class PaymentTransaction
extends Object
implements PurseServices
Class for the primary objects implementing payment services PaymentTransaction is the primary object in the payment service blocks for carrying out transactions. Each active transaction corresponds to a PaymentTransaction object. The payment manager has a list of all active transactions. The constructor of each PaymentTransaction object is responsible for notifying the payment manager of its creation. Each PaymentTransaction object creates a PaymentTransactionRecord object and an Evidence object. At the end of the transaction, the PaymentTransaction object is typically removed while the PaymentTransactionRecord and Evidence objects are not. They stay in the archive for a longer term. The adapter of a new payment system Xyz will define XyzTransaction as a subclass of this class. So for now, we'll leave it as an abstract class. In case we need transaction records for non-purse transactions (e.g. payment manager transactions) in the payment service block, we'll later make it non-abstract.
Version:
$Revision: 1.4 $ $Date: 1996/08/28 09:39:16 $
Author:
N. Asokan ([email protected])
See Also:
PaymentManager, PaymentTransactionRecord, Evidence

Variable Index

 o OP_BS_CANCELED
PaymentTransaction state (payer): User canceled Op.
 o OP_BS_CONFIRMED
PaymentTransaction state (payer): Payment confirmed
 o OP_BS_DENIED
PaymentTransaction state (payer): Negative confirm
 o OP_BS_ERROR
PaymentTransaction state (payer): Unrecoverable error
 o OP_BS_INITIATED
PaymentTransaction state (payer): Transaction initiated
 o OP_BS_PAID
PaymentTransaction state (payer): sent payment
 o OP_CS_ANY
PaymentTransaction state (misc): Mask for any
 o OP_CS_NONE
Just created
 o OP_SS_CANCELED
PaymentTransaction state (payee): User canceled op
 o OP_SS_ERROR
PaymentTransaction state (payee): Unrecoverable error
 o OP_SS_INITIATED
PaymentTransaction state (payee): Transaction initated
 o OP_SS_PAYRCVD
PaymentTransaction state (payee): Recevd Payment

Constructor Index

 o PaymentTransaction()

Method Index

 o abort()
Abort the current transaction, if possible.
 o getStatus()
Return the status of the Transaction.
 o getTransactionRecord()
Return a reference to the PaymentTransactionRecord associated with this Transaction.
 o pay(PaymentEntity, Amount, Vector, String[])
Move specified amount from payer to payee.
 o receivePayment(PaymentEntity, Amount, Vector, String[])
Accept incoming payment from a payer.
 o reversePayment(PaymentTransactionRecord)
Request reversal of a previously made payment.
 o reverseReceivedPayment(PaymentTransactionRecord)
Process request for reversing a previously received payment.

Variables

 o OP_CS_NONE
  public final static int OP_CS_NONE
Just created
 o OP_BS_INITIATED
  public final static int OP_BS_INITIATED
PaymentTransaction state (payer): Transaction initiated
 o OP_BS_PAID
  public final static int OP_BS_PAID
PaymentTransaction state (payer): sent payment
 o OP_BS_CONFIRMED
  public final static int OP_BS_CONFIRMED
PaymentTransaction state (payer): Payment confirmed
 o OP_BS_DENIED
  public final static int OP_BS_DENIED
PaymentTransaction state (payer): Negative confirm
 o OP_BS_CANCELED
  public final static int OP_BS_CANCELED
PaymentTransaction state (payer): User canceled Op.
 o OP_BS_ERROR
  public final static int OP_BS_ERROR
PaymentTransaction state (payer): Unrecoverable error
 o OP_SS_INITIATED
  public final static int OP_SS_INITIATED
PaymentTransaction state (payee): Transaction initated
 o OP_SS_PAYRCVD
  public final static int OP_SS_PAYRCVD
PaymentTransaction state (payee): Recevd Payment
 o OP_SS_CANCELED
  public final static int OP_SS_CANCELED
PaymentTransaction state (payee): User canceled op
 o OP_SS_ERROR
  public final static int OP_SS_ERROR
PaymentTransaction state (payee): Unrecoverable error
 o OP_CS_ANY
  public final static int OP_CS_ANY
PaymentTransaction state (misc): Mask for any

Constructors

 o PaymentTransaction
  public PaymentTransaction()

Methods

 o abort
  public abstract void abort()
Abort the current transaction, if possible.
 o getStatus
  public abstract int getStatus()
Return the status of the Transaction. We have yet to define the list of possible status values.
 o getTransactionRecord
  public abstract PaymentTransactionRecord getTransactionRecord()
Return a reference to the PaymentTransactionRecord associated with this Transaction.
Returns:
PaymentTransactionRecord object corresponding to this transaction
See Also:
PaymentTransactionRecord

All Packages  Class Hierarchy  This Package  Previous  Next  Index