Class SwipeCard

java.lang.Object
paypal.payflow.SwipeCard

public final class SwipeCard extends Object
Used for swipe card information *

Used to pass the Track 1 or Track 2 data (the card's magnetic stripe information) for card-present transactions. Include either Track 1 or Track 2 data'not both. If Track 1 is physically damaged, the POS application can send Track 2 data instead. *

SwipeCard is associated with CardTender. CardTender

  • Constructor Details

    • SwipeCard

      public SwipeCard(String swipe)
      Constructor for SwipeCard
      Parameters:
      swipe - Card Swipe value *

      This is used as Payment Device for the CardTender.

      Maps to Payflow Parameter: SWIPE *

      //Create the SwipeCard object SwipeCard payDevice = new SwipeCard("XXXXXXXXXXXXXXXXXXXXXXXXXXX");

  • Method Details

    • 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