Class MagTekInfo

java.lang.Object
paypal.payflow.MagTekInfo

public final class MagTekInfo extends Object
Used for Magtek related information.

Use the MagtekInfo object for the Magtek encrypted card reader related information.

Following example shows how to use the MagtekInfo object.

// Swipe is the SwipeCard object

  • Constructor Details

    • MagTekInfo

      public MagTekInfo()
      Constructor

      Use this class to set the MagTek related information. Used for encrypted swipe.

  • Method Details

    • generateRequest

      protected void generateRequest()
    • getEncMP

      public String getEncMP()
      Gets the encrypted MagnePrint information.
      Returns:
      encMP String

      Maps to Payflow Parameter: ENCMP

    • setEncMP

      public void setEncMP(String encMP)
      Sets the encrypted MagnePrint information.
      Parameters:
      encMP - String

      Maps to Payflow Parameter: ENCMP

    • getEncryptionBlockTyp

      public String getEncryptionBlockTyp()
      Gets the Encryption Block Type
      Returns:
      encryptionBlockType String

      Maps to Payflow Parameter: ENCRYPTIONBLOCKTYPE

    • setEncryptionBlockType

      public void setEncryptionBlockType(String encryptionBlockType)
      Sets the Encryption Block Type
      Parameters:
      encryptionBlockType - String

      Maps to Payflow Parameter: ENCRYPTIONBLOCKTYPE

    • getEncTrack1

      public String getEncTrack1()
      Gets the Encrypted Track 1
      Returns:
      encTrack1 String

      Maps to Payflow Parameter: ENCTRACK1

    • setEncTrack1

      public void setEncTrack1(String encTrack1)
      Sets the Encrypted Track 1
      Parameters:
      encTrack1 - String

      Maps to Payflow Parameter: ENCTRACK1

    • getEncTrack2

      public String getEncTrack2()
      Gets the Encrypted Track 2
      Returns:
      encTrack2 String

      Maps to Payflow Parameter: ENCTRACK2

    • setEncTrack2

      public void setEncTrack2(String encTrack2)
      Sets the Encrypted Track 2
      Parameters:
      encTrack2 - String

      Maps to Payflow Parameter: ENCTRACK2

    • getEncTrack3

      public String getEncTrack3()
      Gets the Encrypted Track 3
      Returns:
      encTrack3 String

      Maps to Payflow Parameter: ENCTRACK3

    • setEncTrack3

      public void setEncTrack3(String encTrack3)
      Sets the Encrypted Track 3
      Parameters:
      encTrack3 - String

      Maps to Payflow Parameter: ENCTRACK3

    • getKsn

      public String getKsn()
      Gets the KSN.
      Returns:
      ksn String

      Maps to Payflow Parameter: KSN

    • setKsn

      public void setKsn(String ksn)
      Sets the KSN.
      Parameters:
      ksn - String

      Maps to Payflow Parameter: KSN

    • getMagtekCardType

      public String getMagtekCardType()
      Gets the MagTek Card Type
      Returns:
      magtekCardType String

      Maps to Payflow Parameter: MAGTEKCARDTYPE

    • setMagtekCardType

      public void setMagtekCardType(String magtekCardType)
      Sets the MagTek Card Type.
      Parameters:
      magtekCardType - String

      Maps to Payflow Parameter: MAGTEKCARDTYPE

    • getMpStatus

      public String getMpStatus()
      Gets the MP Status.
      Returns:
      mpStatus String

      Maps to Payflow Parameter: MPSTATUS

    • setMpStatus

      public void setMpStatus(String mpStatus)
      Sets the MP Status.
      Parameters:
      mpStatus - String

      Maps to Payflow Parameter: MPSTATUS

    • getRegisteredBy

      public String getRegisteredBy()
      Gets the Registerd By.
      Returns:
      registeredBy String

      Maps to Payflow Parameter: REGISTEREDBY

    • setRegisteredBy

      public void setRegisteredBy(String registeredBy)
      Sets the Registered By.
      Parameters:
      registeredBy - String

      Maps to Payflow Parameter: REGISTEREDBY

    • getSwipedECRHost

      public String getSwipedECRHost()
      Gets the Swiped ECR Host.
      Returns:
      swipedECRHost String

      Maps to Payflow Parameter: SWIPEDECRHOST

    • setSwipedECRHost

      public void setSwipedECRHost(String swipedECRHost)
      Sets the Swiped ECR Host.
      Parameters:
      swipedECRHost - String

      Maps to Payflow Parameter: SWIPEDECRHOST

    • getDeviceSN

      public String getDeviceSN()
      Gets the Device Serial Number.
      Returns:
      deviceSN String

      Maps to Payflow Parameter: DEVICESN

    • setDeviceSN

      public void setDeviceSN(String deviceSN)
      Sets the Device Serial Number.
      Parameters:
      deviceSN - String

      Maps to Payflow Parameter: DEVICESN

    • getMerchantId

      public String getMerchantId()
      Gets the Merchant's ID.
      Returns:
      merchantId String

      Maps to Payflow Parameter: MERCHANTID

    • setMerchantId

      public void setMerchantId(String merchantId)
      Sets the Merchant's ID.
      Parameters:
      merchantId - String

      Maps to Payflow Parameter: MERCHANTID

    • getPan4

      public String getPan4()
      Gets the last 4-digits of the PAN.
      Returns:
      pan4 String

      Maps to Payflow Parameter: PAN4

    • setPan4

      public void setPan4(String pan4)
      Sets the last 4-digits of the PAN.
      Parameters:
      pan4 - String

      Maps to Payflow Parameter: PAN4

    • getpCode

      public String getpCode()
      Gets the generated Protection Code.
      Returns:
      pCode String

      Maps to Payflow Parameter: PCODE

    • setpCode

      public void setpCode(String pCode)
      Sets the generated Protection Code.
      Parameters:
      pCode - String

      Maps to Payflow Parameter: PCODE

    • getAuthValue1

      public String getAuthValue1()
      Gets the Authentication Value 1 generated with the PCode.
      Returns:
      authValue1; String

      Maps to Payflow Parameter: AUTHVALUE1

    • setAuthValue1

      public void setAuthValue1(String authValue1)
      Sets the Authentication Value 1 generated with the PCode.
      Parameters:
      authValue1 - ; String

      Maps to Payflow Parameter: AUTHVALUE1

    • getAuthValue2

      public String getAuthValue2()
      Gets the Authentication Value 2 generated with the PCode.
      Returns:
      authValue2 String

      Maps to Payflow Parameter: AUTHVALUE2

    • setAuthValue2

      public void setAuthValue2(String authValue2)
      Sets the Authentication Value 2 generated with the PCode.
      Parameters:
      authValue2 - String

      Maps to Payflow Parameter: AUTHVALUE2

    • getAuthValue3

      public String getAuthValue3()
      Gets the Authentication Value 3 generated with the PCode.
      Returns:
      authValue3 String

      Maps to Payflow Parameter: AUTHVALUE3

    • setAuthValue3

      public void setAuthValue3(String authValue3)
      Sets the Authentication Value 3 generated with the PCode.
      Parameters:
      authValue3 - String

      Maps to Payflow Parameter: AUTHVALUE3

    • getMagtekUserName

      public String getMagtekUserName()
      Gets the MagTek User Name.
      Returns:
      magtekUserName String

      Maps to Payflow Parameter: MAGTEKUSERNAME

    • setMagtekUserName

      public void setMagtekUserName(String magtekUserName)
      Sets the MagTek User Name.
      Parameters:
      magtekUserName - String

      Maps to Payflow Parameter: MAGTEKUSERNAME

    • getMagtekPassword

      public String getMagtekPassword()
      Gets the MagTek Password.
      Returns:
      merchSvc String

      Maps to Payflow Parameter: MAGTEKPASSWORD

    • setMagtekPassword

      public void setMagtekPassword(String magtekPassword)
      Sets the MagTek Password.
      Parameters:
      magtekPassword - String

      Maps to Payflow Parameter: MAGTEKPASSWORD

    • 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