Class BaseTender

java.lang.Object
paypal.payflow.BaseTender
Direct Known Subclasses:
ACHTender, CardTender, CheckTender, PayPalTender

public class BaseTender extends Object
This abstract class serves as base class of all tender objects. Each tender type is associated with a Payment Device. Following are the Payment Devices associated with different tender types: Tender Type Payment Device Data Object ACHTender - BankAcct CardTender - CreditCard PurchaseCard SwipeCard CheckTender- CheckPayment
  • Constructor Details

    • BaseTender

      public BaseTender(String tender, paypal.payflow.PaymentDevice payDevice)
      Constructor for BaseTender. Abstract class. Instance cannot be created directly.
      Parameters:
      tender - String
      payDevice - PaymentDevice
  • Method Details

    • getChkNum

      public String 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

      public void setChkNum(String chkNum)
      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 - String

      Maps to Payflow Parameter: CHKNUM

    • getAuthType

      public void getAuthType(String authType)
      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 - String

      Maps to Payflow Parameter: AUTHTYPE

    • getChkType

      public String getChkType()
      Gets the check Type.

      Allowed CheckTypes are: Check Type - Description P - Personal C - Company

      Returns:
      chkNum String

      Maps to Payflow Parameter: CHKTYPE

    • setChkType

      public void setChkType(String chkType)
      sets the check type
      Parameters:
      chkType - String

      Allowed CheckTypes are: Check Type - Description P - Personal C - Company

      Maps to Payflow Parameter: CHKTYPE

    • getDL

      public String getDL()
      gets the drivers License Number.
      Returns:
      dL String

      Format: XXnnnnnnnn

      XX = State Code, nnnnnnnn = DL Number

      Maps to Payflow Parameter: DL

    • getTender

      public String getTender()
      Gets the Tender Type.
      Returns:
      tender

      Maps to Payflow Parameter: TENDER

    • setDL

      public void setDL(String dL)
      gets the drivers License Number.
      Parameters:
      dL - String

      Format: XXnnnnnnnn

      XX = State Code, nnnnnnnn = DL Number

      Maps to Payflow Parameter: DL

    • getSS

      public String getSS()
      returns the account holders social security number
      Returns:
      sS String

      Maps to Payflow Parameter: SS

    • setSS

      public void setSS(String sS)
      returns the account holders social security number

      Maps to Payflow Parameter: SS

      Parameters:
      sS - String
    • setAuthType

      public void setAuthType(String authType)
      returns the authorization type

      Maps to Payflow Parameter: AUTHTYPE

      Parameters:
      authType - String
    • generateRequest

      protected void generateRequest()
      Generates the transaction request.
    • getContext

      protected Context getContext()
    • setContext

      protected void setContext(Context context)
    • getRequestBuffer

      protected StringBuffer getRequestBuffer()
      Gets the Requestbuffer used for creating the actual request string.
      Returns:
      mRequestBuffer StringBuffer
    • setRequestBuffer

      protected void setRequestBuffer(StringBuffer value)
      sets the StringBuffer to hold the request string.
      Parameters:
      value - StringBuffer