psoft.epayment
Interface PaymentInstrument

All Known Subinterfaces:
CreditCard

public interface PaymentInstrument

PaymentInstrument interface is implemented to provide integration with merchant gateways. The implementation has to be thread safe. Single instance of the class will be used to run payment transactions.


Field Summary
static int AUTH
           
static int EXTERNAL
           
static int INSTANT
           
static int NONE
           
static int TRIAL
           
 
Method Summary
 void checkValid()
          Checks whether the payment instrument is valid and if not, throws corresponding exception.
 PaymentInstrument copy(psoft.hsphere.resource.epayment.BillingInfo bi)
           
 int getBillingType()
          returns payment instrument type (credit card can be charged instantly)
 java.lang.String getType()
          returns the type of the Payment Instrument
 

Field Detail

TRIAL

public static final int TRIAL
See Also:
Constant Field Values

NONE

public static final int NONE
See Also:
Constant Field Values

INSTANT

public static final int INSTANT
See Also:
Constant Field Values

AUTH

public static final int AUTH
See Also:
Constant Field Values

EXTERNAL

public static final int EXTERNAL
See Also:
Constant Field Values
Method Detail

copy

public PaymentInstrument copy(psoft.hsphere.resource.epayment.BillingInfo bi)
                       throws java.lang.Exception
Throws:
java.lang.Exception

getBillingType

public int getBillingType()
returns payment instrument type (credit card can be charged instantly)

Returns:
1 for credit cards

getType

public java.lang.String getType()
returns the type of the Payment Instrument

Returns:
For Credit Cards, credit card type (VISA, MasterCard, etc.)

checkValid

public void checkValid()
                throws PaymentInstrumentException,
                       java.lang.Exception
Checks whether the payment instrument is valid and if not, throws corresponding exception.

Throws:
PaymentInstrumentException
java.lang.Exception


Copyright © 2005 Positive Software Corporation. All Rights Reserved.