Interface semper.payment.PurseServices
All Packages Class Hierarchy This Package Previous Next Index
Interface semper.payment.PurseServices
- public interface PurseServices
- extends Object
This interface defines all the generic services that a payment
system should typically provide. This interface is implemented by
leaf subclasses of the PaymentTransaction class. Additional
generic services that are optional are defined elsewhere (e.g. in
the MicropaymentServices interface)
- Version:
- $Revision: 1.7 $ $Date: 1996/08/07 13:05:38 $
- Author:
- N. Asokan ([email protected])
- See Also:
- AccountBasedPurseServices, CashLikePurseServices, MicropaymentServices
-
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.
pay
public abstract void pay(PaymentEntity payee,
Amount amount,
Vector options,
String a_ext_ref[]) throws PaymentServiceException
- Move specified amount from payer to payee.
Parameters with names beginning with an "a_" are one-element arrays
used to pass their elements by reference.
- Parameters:
- payee - Object containing necessary information to
identify the recipient address
- amount - Amount to be moved
- options - List of options for the transaction (Vector of
SecurityOption objects)
- a_ext_ref - External reference string
- Returns:
- none
- Throws: PaymentServiceException
- for misc errors
- See Also:
- receivePayment, SecurityOption
receivePayment
public abstract void receivePayment(PaymentEntity payer,
Amount amount,
Vector options,
String a_ext_ref[]) throws PaymentServiceException
- Accept incoming payment from a payer.
Parameters with names beginning with an "a_" are one-element arrays
used to pass their elements by reference.
- Parameters:
- payer - Object containing necessary information to
identify the payer
- options - List of options for the transaction (Vector of
SecurityOption objects)
- amount - Amount to be moved
- a_ext_ref - External reference string
- Returns:
- none
- Throws: PaymentServiceException
- for misc errors
- See Also:
- pay, SecurityOption
reversePayment
public abstract void reversePayment(PaymentTransactionRecord payment_reference)
- Request reversal of a previously made payment.
- Parameters:
- payment_reference - PaymentTransaction object corresponding to
the payment to be reversed.
- Returns:
- none
- See Also:
- pay
reverseReceivedPayment
public abstract void reverseReceivedPayment(PaymentTransactionRecord payment_reference)
- Process request for reversing a previously received payment.
- Parameters:
- payment_reference - PaymentTransaction object corresponding to
the paymentto be reversed.
- Returns:
- none
- See Also:
- receivePayment
All Packages Class Hierarchy This Package Previous Next Index