Class BaseTender
- Direct Known Subclasses:
ACHTender,CardTender,CheckTender,PayPalTender
BankAcct
CardTender - CreditCard PurchaseCard SwipeCard
CheckTender- CheckPayment-
Constructor Summary
ConstructorsConstructorDescriptionBaseTender(String tender, paypal.payflow.PaymentDevice payDevice) Constructor for BaseTender. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidGenerates the transaction request.voidgetAuthType(String authType) Gets the Authtype.Gets the checkNumber.Gets the check Type.protected ContextgetDL()gets the drivers License Number.protected StringBufferGets the Requestbuffer used for creating the actual request string.getSS()returns the account holders social security numberGets the Tender Type.voidsetAuthType(String authType) returns the authorization typevoidSets the check Number.voidsetChkType(String chkType) sets the check typeprotected voidsetContext(Context context) voidgets the drivers License Number.protected voidsetRequestBuffer(StringBuffer value) sets the StringBuffer to hold the request string.voidreturns the account holders social security number
-
Constructor Details
-
BaseTender
Constructor for BaseTender. Abstract class. Instance cannot be created directly.- Parameters:
tender- StringpayDevice- PaymentDevice
-
-
Method Details
-
getChkNum
Gets the checkNumber.For ACH - The check serial number. Required for POP, ARC, and RCK. For TeleCheck - Account holder's next unused (available) check number.
- Returns:
- chkNum String
Maps to Payflow Parameter: CHKNUM
-
setChkNum
Sets the check Number.For ACH - The check serial number. Required for POP, ARC, and RCK. For TeleCheck - Account holder's next unused (available) check number.
- Parameters:
chkNum- StringMaps to Payflow Parameter: CHKNUM
-
getAuthType
Gets the Authtype. *Allowed AuthTypes for ACH: CCD (B2B), PPD (B2C), ARC (Accounts Receivables) RCK (Re-presentment), WEB (Internet), TEL (Telephone, mailorder), POP (Point of Purchase) *
Allowed AuthTypes for TeleCheck: I (Internet), P (Telephone, mailorder), D (Prearranged Deposits)
- Parameters:
authType- StringMaps to Payflow Parameter: AUTHTYPE
-
getChkType
Gets the check Type.Allowed CheckTypes are: Check Type - Description P - Personal C - Company
- Returns:
- chkNum String
Maps to Payflow Parameter: CHKTYPE
-
setChkType
sets the check type- Parameters:
chkType- StringAllowed CheckTypes are: Check Type - Description P - Personal C - Company
Maps to Payflow Parameter: CHKTYPE
-
getDL
gets the drivers License Number.- Returns:
- dL String
Format: XXnnnnnnnn
XX = State Code, nnnnnnnn = DL Number
Maps to Payflow Parameter: DL
-
getTender
Gets the Tender Type.- Returns:
- tender
Maps to Payflow Parameter: TENDER
-
setDL
gets the drivers License Number.- Parameters:
dL- StringFormat: XXnnnnnnnn
XX = State Code, nnnnnnnn = DL Number
Maps to Payflow Parameter: DL
-
getSS
returns the account holders social security number- Returns:
- sS String
Maps to Payflow Parameter: SS
-
setSS
returns the account holders social security numberMaps to Payflow Parameter: SS
- Parameters:
sS- String
-
setAuthType
returns the authorization typeMaps to Payflow Parameter: AUTHTYPE
- Parameters:
authType- String
-
generateRequest
protected void generateRequest()Generates the transaction request. -
getContext
-
setContext
-
getRequestBuffer
Gets the Requestbuffer used for creating the actual request string.- Returns:
- mRequestBuffer StringBuffer
-
setRequestBuffer
sets the StringBuffer to hold the request string.- Parameters:
value- StringBuffer
-