Basket¶
-
public class
Basket
¶ Represents all of the items that have been added to the basket. Adding items should generally be performed through the
com.verifone.payment_sdk.BasketManager
, so that the display is updated and the appropriate events are sent. This object is useful to store the current basket, save it for later, then quickly restore all of the items to the screen, in case an order is put on hold and then retrieved. Seecom.verifone.payment_sdk.BasketManager.registerBasket
for the method to restore a basket to the screen.
Methods¶
clear¶
-
public void
clear
()¶ Clears all of the items from this object.
create¶
getDonations¶
getInvoiceId¶
getLoyaltyId¶
-
public String
getLoyaltyId
()¶ Refer to
setLoyaltyId(StringloyaltyId)
for more information.
getMerchandise¶
-
public ArrayList<Merchandise>
getMerchandise
()¶ Refer to
setMerchandises(Merchandise[]merchandises)
for more information.
getOffers¶
-
public ArrayList<Offer>
getOffers
()¶ Refer to
setOffers(Offer[]offers)
for more information.
setDonations¶
setInvoiceId¶
setLoyaltyId¶
setMerchandise¶
-
public void
setMerchandise
(ArrayList<Merchandise> merchandise)¶ The merchandise that is being purchased or returned. This should only be set by the POS or payment application. This is optional.