Class CreditCard

java.lang.Object
paypal.payflow.CreditCard

public final class CreditCard extends Object
Used for Credit Card related information CreditCard is associated with CardTender. CardTender
  • Constructor Details

    • CreditCard

      public CreditCard(String acct, String expDate)
      Parameters:
      acct - Credit card number
      expDate - Card expiry date This is used as Payment Device for the CardTender. *

      Maps to Payflow Parameter: ACCT , EXPDATE //Create the CreditCard object CreditCard payDevice = new CreditCard("XXXXXXXXXX","XXXX");

  • Method Details

    • getCvv2

      public String getCvv2()
      Gets the CVV2 value. Card validation code. This is the 3 or 4 digit code present at the back side of the card.
      Returns:
      CVV2 value *

      Maps to Payflow Parameters as follows: CVV2

    • setCvv2

      public void setCvv2(String cvv2)
      Sets the CVV2 value. Card validation code. This is the 3 or 4 digit code present at the back side of the card.
      Parameters:
      cvv2 - CVV2 value *

      Maps to Payflow Parameters as follows: CVV2

    • getCardIssue

      public String getCardIssue()
      Gets the cardIssue

      Used in Switch/Solo cards

      Returns:
      cardIssue String *

      Maps to Payflow Parameter : CARDISSUE

    • setCardIssue

      public void setCardIssue(String cardIssue)
      Sets the cardIssue

      Used in Switch/Solo cards

      Parameters:
      cardIssue - String *

      Maps to Payflow Parameter : CARDISSUE

    • getCardStart

      public String getCardStart()
      Gets the cardStart

      Used in Switch/Solo cards

      Returns:
      cardStart String *

      Maps to Payflow Parameter : CARDSTART

    • setCardStart

      public void setCardStart(String cardStart)
      Sets the cardStart

      Used in Switch/Solo cards

      Parameters:
      cardStart - String *

      Maps to Payflow Parameter : CARDSTART

    • getCardOnFile

      public String getCardOnFile()
      Gets the cardOnFile

      Used to store credit card (stored credential)

      Returns:
      cardOnFile String *

      Maps to Payflow Parameter : CARDONFILE

    • setCardOnFile

      public void setCardOnFile(String cardOnFile)
      Sets the cardOnFile

      Used to store credit card (stored credential)

      Parameters:
      cardOnFile - String *

      Maps to Payflow Parameter : CARDONFILE

    • getTxId

      public String getTxId()
      Gets the TxId

      The transaction Id to reference a stored credential.

      Returns:
      txId String *

      Maps to Payflow Parameter : TXID

    • setTxId

      public void setTxId(String txId)
      Sets the Transaction Id (stored credential).

      The transaction Id to reference a stored credential.

      Parameters:
      txId - String *

      Maps to Payflow Parameter : TXID

    • getParId

      public String getParId()
      Gets the par

      unique Primary Account Number (PAN)

      Returns:
      par String *

      Maps to Payflow Parameter : PAR

    • setPar

      public void setPar(String par)
      Sets the Payment Account Reference.

      A non-financial reference number assigned to each unique Primary Account Number (PAN) and mapped to all its affiliated Payment Tokens.

      Parameters:
      par - String *

      Maps to Payflow Parameter : PAR

    • generateRequest

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

      public String getAcct()
      gets the Account holder's account number.
      Returns:
      String Maps to Payflow Parameters as follows: ACCT - Transactions with CreditCard, PurchaseCard, BankAcct payment devices MICR - Transactions with CheckPayment SWIPE - Transactions with SwipeCard
    • getName

      public String getName()
      gets the account holder's name.
      Returns:
      String *

      Maps to Payflow Parameters as follows: NAME

    • setName

      public void setName(String name)
      gets the account holder's name.
      Parameters:
      name - *

      Maps to Payflow Parameters as follows: NAME

    • getMagTek

      public String getMagTek(MagTekInfo mT)
    • setMagtek

      public void setMagtek(String magtek)
      gets the MagTek Encrypted Swipe Data.
      Parameters:
      magtek - Magtek Encrypted Swipe Data
    • 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