Package paypal.payflow
Class Devices
java.lang.Object
paypal.payflow.Devices
Used for the type of device the card holder is using.
.................
//inv is the Invoice object.
.................
//Set the Shipping Address details.
ShipTo ship = new ShipTo();
ship.setShipToStreet( "123 Main St.");
ship.setShipToZip("12345");
inv.setShipTo (ship);
.................
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidGets the type of terminalGets the card input capabilityprotected Contextprotected StringBufferGets the Requestbuffer used for creating the actual request string.voidsetCatType(String catType) Sets the type of terminalvoidsetContactLess(String contactLess) Sets the card input capabilityprotected voidsetContext(Context context) protected voidsetRequestBuffer(StringBuffer value) sets the StringBuffer to hold the request string.
-
Constructor Details
-
Devices
public Devices()Used for the type of device the card holder is using. ................. //inv is the Invoice object. ................. //Set the Shipping Address details. ShipTo ship = new ShipTo(); ship.setShipToStreet( "123 Main St."); ship.setShipToZip("12345"); inv.setShipTo (ship); .................
-
-
Method Details
-
getCatType
Gets the type of terminal- Returns:
- String
Maps to Payflow Parameter: CATTYPE
-
setCatType
Sets the type of terminal- Parameters:
catType- StringMaps to Payflow Parameter: CATTYPE
-
getContactLess
Gets the card input capability- Returns:
- contactLess String
Maps to Payflow Parameter: CONTACTLESS
-
setContactLess
Sets the card input capability- Parameters:
contactLess- StringMaps to Payflow Parameter: CONTACTLESS
-
generateRequest
protected void generateRequest() -
getContext
-
setContext
-
getRequestBuffer
Gets the Requestbuffer used for creating the actual request string.- Returns:
- mRequestBuffer StringBuffer
-
setRequestBuffer
sets the StringBuffer to hold the request string.- Parameters:
value- StringBuffer
-