CardAcquisitionRequest

public class CardAcquisitionRequest

Card acquisition interface

Methods

create

public static CardAcquisitionRequest create(boolean isTokenRequest, String message, ArrayList<PresentationMethod> presentationMethodNames, ArrayList<String> aidList, ArrayList<String> allowedPaymentBrand, ArrayList<String> allowedLoyaltyBrand, Boolean isBackground)

Creates an instance of CardAcquisitionRequest

Parameters:
  • if – true, requests to collect card token

  • the – message to be displayed in terminal

  • inputMethods – array of com.verifone.commerce.entities.CardInformation.PresentationMethod

  • optional – list of AID(Application ID) strings

  • optional – list of allowed payment brand names

  • optional – list of allowed loyalty brand names

  • optional, – if true, card reading from the background without any display to enable a more seamless present-ahead experience, also enabling infinite timeout

createEarlyCardCapture

public static CardAcquisitionRequest createEarlyCardCapture(String message, ArrayList<PresentationMethod> presentationMethodNames, Decimal reservedAmount, EarlyCaptureOperationType earlyCaptureOperationType)

Creates an instance of CardAcquisitionRequest for single tap payment functionality

Parameters:
  • the – message to be displayed in terminal

  • inputMethods – array of com.verifone.commerce.entities.CardInformation.PresentationMethod

  • amount – optional for getting card data with SCA payment application

  • earlyCaptureOperationType – required for the operation type on which Early Card Capture needs to be performed

createTokenRequest

public static CardAcquisitionRequest createTokenRequest(String message, CardInformation cardInformation)

Creates an instance of CardAcquisitionRequest for Token request with card information details

Parameters:
  • the – message to be displayed in terminal

  • cardInformation – details. Required for calls subsequesnt to createEarlyCardCapture and constrains the presented card to values set in this parameter. Should be omitted otherwise.