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
-
OP_BS_CANCELED
- PaymentTransaction state (payer): User canceled Op.
-
OP_BS_CONFIRMED
- PaymentTransaction state (payer): Payment confirmed
-
OP_BS_DENIED
- PaymentTransaction state (payer): Negative confirm
-
OP_BS_ERROR
- PaymentTransaction state (payer): Unrecoverable error
-
OP_BS_INITIATED
- PaymentTransaction state (payer): Transaction initiated
-
OP_BS_PAID
- PaymentTransaction state (payer): sent payment
-
OP_CS_ANY
- PaymentTransaction state (misc): Mask for any
-
OP_CS_NONE
- Just created
-
OP_SS_CANCELED
- PaymentTransaction state (payee): User canceled op
-
OP_SS_ERROR
- PaymentTransaction state (payee): Unrecoverable error
-
OP_SS_INITIATED
- PaymentTransaction state (payee): Transaction initated
-
OP_SS_PAYRCVD
- PaymentTransaction state (payee): Recevd Payment
-
PaymentTransaction()
-
-
abort()
- Abort the current transaction, if possible.
-
getStatus()
- Return the status of the Transaction.
-
getTransactionRecord()
- Return a reference to the PaymentTransactionRecord associated
with this Transaction.
-
pay(PaymentEntity, Amount, Vector, String[])
- Move specified amount from payer to payee.
-
receivePayment(PaymentEntity, Amount, Vector, String[])
- Accept incoming payment from a payer.
-
reversePayment(PaymentTransactionRecord)
- Request reversal of a previously made payment.
-
reverseReceivedPayment(PaymentTransactionRecord)
- Process request for reversing a previously received payment.
OP_CS_NONE
public final static int OP_CS_NONE
- Just created
OP_BS_INITIATED
public final static int OP_BS_INITIATED
- PaymentTransaction state (payer): Transaction initiated
OP_BS_PAID
public final static int OP_BS_PAID
- PaymentTransaction state (payer): sent payment
OP_BS_CONFIRMED
public final static int OP_BS_CONFIRMED
- PaymentTransaction state (payer): Payment confirmed
OP_BS_DENIED
public final static int OP_BS_DENIED
- PaymentTransaction state (payer): Negative confirm
OP_BS_CANCELED
public final static int OP_BS_CANCELED
- PaymentTransaction state (payer): User canceled Op.
OP_BS_ERROR
public final static int OP_BS_ERROR
- PaymentTransaction state (payer): Unrecoverable error
OP_SS_INITIATED
public final static int OP_SS_INITIATED
- PaymentTransaction state (payee): Transaction initated
OP_SS_PAYRCVD
public final static int OP_SS_PAYRCVD
- PaymentTransaction state (payee): Recevd Payment
OP_SS_CANCELED
public final static int OP_SS_CANCELED
- PaymentTransaction state (payee): User canceled op
OP_SS_ERROR
public final static int OP_SS_ERROR
- PaymentTransaction state (payee): Unrecoverable error
OP_CS_ANY
public final static int OP_CS_ANY
- PaymentTransaction state (misc): Mask for any
PaymentTransaction
public PaymentTransaction()
abort
public abstract void abort()
- Abort the current transaction, if possible.
getStatus
public abstract int getStatus()
- Return the status of the Transaction. We have yet to define the
list of possible status values.
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