psoft.epayment
Interface CreditCard

All Superinterfaces:
PaymentInstrument

public interface CreditCard
extends PaymentInstrument

Interface CreditCard is an abstract class that defines methods and properties for all CreditCard subclasses


Field Summary
 
Fields inherited from interface psoft.epayment.PaymentInstrument
AUTH, EXTERNAL, INSTANT, NONE, TRIAL
 
Method Summary
 java.lang.String getAddress()
          returns credit card owner's street address
 java.lang.String getCity()
          returns credit card owner's city
 java.lang.String getCountry()
          returns credit card owner's country
 java.lang.String getCVV()
          Returns credit card verification value
 java.lang.String getEmail()
          returns credit card owner's email address
 java.lang.String getExp()
          returns credit card expiration date
 java.lang.String getExp(java.text.DateFormat df)
          returns credit card expiration date in the format received as the parameter
 java.lang.String getFirstName()
          returns credit card owner's first name
 java.lang.String getHiddenNumber()
          Returns credit card number with the first several digits changed to X's for security purposes.
 java.lang.String getIssueNo()
          returns Credit Card Issue Number(Switch/Solo only)
 java.lang.String getLastName()
          returns credit card owner's last name
 java.lang.String getName()
          returns credit card owner's name
 java.lang.String getNumber()
          Returns credit card number
 java.lang.String getPhone()
          returns credit card owner's phone number
 java.lang.String getStartDate()
          returns Credit Card Start Date(Switch/Solo only)
 java.lang.String getStartDate(java.text.DateFormat df)
          returns Credit Card Start Date in the format received as the parameter (Switch/Solo only)
 java.lang.String getState()
          returns credit card owner's state
 java.lang.String getType()
          returns Credit Card type
 java.lang.String getZip()
          returns credit card owner's zip code
 short isCVVChecked()
          Returns CVV status
 boolean isExpired()
          Tests whether the credit card is expired
 void setCVVChecked(boolean result)
          Writes to H-Sphere database if the CVV transaction went through
 
Methods inherited from interface psoft.epayment.PaymentInstrument
checkValid, copy, getBillingType
 

Method Detail

getNumber

public java.lang.String getNumber()
                           throws java.lang.Exception
Returns credit card number

Returns:
String credit card number
Throws:
java.lang.Exception

getCVV

public java.lang.String getCVV()
                        throws java.lang.Exception
Returns credit card verification value

Returns:
String credit card verification value
Throws:
java.lang.Exception

getHiddenNumber

public java.lang.String getHiddenNumber()
Returns credit card number with the first several digits changed to X's for security purposes. Can be used to display credit card numbers on web pages.

Returns:
String secure presentation of the credit card number

getExp

public java.lang.String getExp()
returns credit card expiration date

Returns:
credit card expiration date

getExp

public java.lang.String getExp(java.text.DateFormat df)
returns credit card expiration date in the format received as the parameter

Returns:
credit card expiration date in the format received as the parameter

isExpired

public boolean isExpired()
Tests whether the credit card is expired

Returns:
False if the credit card is expired. True otherwise.

getFirstName

public java.lang.String getFirstName()
returns credit card owner's first name

Returns:
credit card owner's first name

getLastName

public java.lang.String getLastName()
returns credit card owner's last name

Returns:
credit card owner's last name

getName

public java.lang.String getName()
returns credit card owner's name

Returns:
credit card owner's name

getAddress

public java.lang.String getAddress()
returns credit card owner's street address

Returns:
credit card owner's street address

getCity

public java.lang.String getCity()
returns credit card owner's city

Returns:
credit card owner's city

getState

public java.lang.String getState()
returns credit card owner's state

Returns:
credit card owner's state

getZip

public java.lang.String getZip()
returns credit card owner's zip code

Returns:
credit card owner's zip code

getCountry

public java.lang.String getCountry()
returns credit card owner's country

Returns:
credit card owner's country

getType

public java.lang.String getType()
returns Credit Card type

Specified by:
getType in interface PaymentInstrument
Returns:
Credit Card type (VISA, MasterCard, etc.)

getEmail

public java.lang.String getEmail()
returns credit card owner's email address

Returns:
credit card owner's email address

getPhone

public java.lang.String getPhone()
returns credit card owner's phone number

Returns:
credit card owner's phone number

getIssueNo

public java.lang.String getIssueNo()
returns Credit Card Issue Number(Switch/Solo only)

Returns:
Credit Card Issue Number

getStartDate

public java.lang.String getStartDate()
returns Credit Card Start Date(Switch/Solo only)

Returns:
Credit Card Start Date

getStartDate

public java.lang.String getStartDate(java.text.DateFormat df)
returns Credit Card Start Date in the format received as the parameter (Switch/Solo only)

Returns:
Credit Card Start Date in the format received as the parameter

setCVVChecked

public void setCVVChecked(boolean result)
Writes to H-Sphere database if the CVV transaction went through

Parameters:
result - - true if the CVV transaction was successful; false otherwise

isCVVChecked

public short isCVVChecked()
Returns CVV status

Returns:
1 if CVV is not checked; 2 if CVV was successfully checked; 3 if CVV check failed.


Copyright © 2005 Positive Software Corporation. All Rights Reserved.