Receipt¶
-
public class
Receipt
¶ Provided as a part of the Payment object when a payment is received. This object cannot be retrieved at a later time, and should be stored if re-printing may be required.
Methods¶
create¶
getAsHtml¶
getAsPlainText¶
getBusinessInfo¶
getCashierName¶
getCustomGreeting¶
getOnlineUrl¶
getOriginalHtml¶
getOriginalImage¶
getPaymentInformation¶
getQrCodeImage¶
getReceiptType¶
-
public ReceiptType
getReceiptType
()¶ The type of receipt, generally either for the customer or for the merchant.
getTextAtSection¶
-
public String
getTextAtSection
(ReceiptSection section)¶ Allows additional customization of the receipt at specific compliant sections of the receipt.
getTransactionInformation¶
hasCustomHeader¶
-
public boolean
hasCustomHeader
()¶ Returns true if the merchant has decided to include a custom header, or false otherwise. Defaults to false.
insertTextAtSection¶
-
public boolean
insertTextAtSection
(String text, ReceiptSection receiptSection)¶ Refer to
getTextAtSection
isCashierNameIncluded¶
-
public boolean
isCashierNameIncluded
()¶ Returns true if the merchant has decided to include the cashier’s name, or false otherwise. Defaults to false.
isLogoIncluded¶
-
public boolean
isLogoIncluded
()¶ Returns true if the merchant has decided to include their logo, or false otherwise. Defaults to false.
isOnlineUrlIncluded¶
-
public boolean
isOnlineUrlIncluded
()¶ Returns true if the merchant has decided to include an online url for the receipt, or false otherwise. Defaults to false.
isQrCodeIncluded¶
-
public boolean
isQrCodeIncluded
()¶ Returns true if the merchant has decided to include the QR Code with the online url, or false otherwise. Defaults to false.