Public Member Functions | |
Receipt (Parcel in, int parcelVersion) | |
void | writeToParcel (Parcel dest, int flags) |
int | describeContents () |
int | getReceiptType () |
boolean | isLogoIncluded () |
boolean | hasCustomHeader () |
boolean | isCashierNameIncluded () |
boolean | hasCustomFooter () |
boolean | isOnlineUrlIncluded () |
boolean | isQrCodeIncluded () |
String | getOriginalHtml () |
Bitmap | getOriginalImage () |
boolean | insertTextAtSection (String text, int receiptSection) |
PrintJob | print (Context context) |
String | getAsHtml () |
String | getCustomFooter () |
String | getBusinessInfo () |
String | getTextAtSection (int receiptSection) |
String | getCustomGreeting () |
String | getCashierName () |
String | getTransactionInformation () |
String | getPaymentInformation () |
String | getOnlineUrl () |
String | getFooter () |
Bitmap | getAsImage () |
![]() | |
BaseParcel (Parcel in, int parcelVersion) | |
void | setParcelVersion (int targetParcelVersion) |
final int | getParcelVersion () |
String | getClassName () |
void | writeToParcel (Parcel dest, int flags) |
int | describeContents () |
Static Public Attributes | |
static final int | TYPE_CUSTOMER = 0 |
static final int | TYPE_MERCHANT = 1 |
static final int | DELIVERY_METHOD_PRINT = 1 |
static final int | DELIVERY_METHOD_EMAIL = 2 |
static final int | DELIVERY_METHOD_SMS = 3 |
static final int | DELIVERY_METHOD_NONE = 0 |
static final int | SECTION_HTML_HEAD = 0 |
static final int | SECTION_BEFORE_GREETING = 1 |
static final int | SECTION_AFTER_GREETING = 2 |
static final int | SECTION_BEFORE_TRANSACTION = 3 |
static final int | SECTION_AFTER_TRANSACTION = 4 |
static final int | SECTION_BEFORE_CUSTOM_FOOTER = 5 |
static final int | SECTION_AFTER_CUSTOM_FOOTER = 6 |
static final Creator< Receipt > | CREATOR |
![]() | |
static final Parcelable.Creator< BaseParcel > | CREATOR |
Protected Member Functions | |
void | setReceiptType (int receiptType) |
void | setOriginalHtml (String originalHtml) |
void | setOriginalImage (Bitmap originalImage) |
void | setBusinessInfo (String businessInfo) |
void | setCustomGreeting (String customGreeting) |
void | setCashierName (String cashierName) |
void | setTransactionInformation (@NonNull String transactionInformation) |
void | setPaymentInformation (String paymentInformation) |
void | setFooter (String footer) |
void | setCustomFooter (String customFooter) |
void | setIsLogoIncluded (boolean isLogoIncluded) |
void | setHasCustomHeader (boolean hasCustomHeader) |
void | setIsCashierNameIncluded (boolean isCashierNameIncluded) |
void | setHasCustomFooter (boolean hasCustomFooter) |
void | setIsOnlineUrlIncluded (boolean isOnlineUrlIncluded) |
void | setIsQrCodeIncluded (boolean isQrCodeIncluded) |
Additional Inherited Members | |
![]() | |
static void | safelySetParcelVersion (final int targetParcelVersion, @Nullable BaseParcel item) |
static void | safelySetParcelVersion (final int targetParcelVersion, @Nullable List<? extends BaseParcel > items) |
static< T extends BaseParcel > void | safelySetParcelVersion (final int targetParcelVersion, @Nullable T[] items) |
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.
Definition at line 30 of file Receipt.java.
String getAsHtml | ( | ) |
Returns the final receipt as HTML.
Definition at line 383 of file Receipt.java.
Bitmap getAsImage | ( | ) |
Convenience method to return the final receipt, including the newly inserted text.
Definition at line 605 of file Receipt.java.
String getBusinessInfo | ( | ) |
The Business Info section of the receipt, as customized by the merchant in the receipt settings for this venue.
Definition at line 446 of file Receipt.java.
String getCashierName | ( | ) |
The cashier display name, if enabled by the merchant in the receipt settings for this venue.
Definition at line 494 of file Receipt.java.
String getCustomFooter | ( | ) |
The footer as defined by the merchant in receipt settings.
Definition at line 435 of file Receipt.java.
String getCustomGreeting | ( | ) |
The Custom Greeting section of the receipt, as customized by the merchant in the receipt settings for this venue.
Definition at line 477 of file Receipt.java.
String getFooter | ( | ) |
The footer as modified by other applications in response to the REQUEST_APPEND_RECEIPT API.
Definition at line 570 of file Receipt.java.
String getOnlineUrl | ( | ) |
The mFooter as modified by other applications in response to the REQUEST_APPEND_RECEIPT API. Returns the online URL in an HTML-formatted string, including a QR code image if entered by the merchant.
Definition at line 551 of file Receipt.java.
String getOriginalHtml | ( | ) |
Returns the original HTML of the receipt as received from the payment application.
Definition at line 315 of file Receipt.java.
Bitmap getOriginalImage | ( | ) |
Convenience method to get the original receipt from the payment application as an image.
Definition at line 332 of file Receipt.java.
String getPaymentInformation | ( | ) |
The payment information, in particular, the EMV fields or other relevant lines necessary for legal compliance, as provided by the payment application.
Definition at line 534 of file Receipt.java.
int getReceiptType | ( | ) |
The type of receipt, generally either for the customer or for the merchant.
Definition at line 248 of file Receipt.java.
String getTextAtSection | ( | int | receiptSection | ) |
Allows additional customization of the receipt at specific compliant sections of the receipt.
receiptSection | The receipt section containing the desired text. |
Definition at line 465 of file Receipt.java.
String getTransactionInformation | ( | ) |
The transaction information, including basket, adjustments, offers, donations, taxes, and totals, as provided by the payment application.
Definition at line 516 of file Receipt.java.
boolean hasCustomFooter | ( | ) |
Returns true if the merchant has decided to include a custom mFooter, or false otherwise. Defaults to false.
Definition at line 290 of file Receipt.java.
boolean hasCustomHeader | ( | ) |
Returns true if the merchant has decided to include a custom header, or false otherwise. Defaults to false.
Definition at line 274 of file Receipt.java.
boolean insertTextAtSection | ( | String | text, |
int | receiptSection | ||
) |
Allows additional customization of the receipt at specific compliant sections of the receipt.
text | The HTML-formatted text to include in the section. |
receiptSection | The section within which to include the information. |
Definition at line 354 of file Receipt.java.
boolean isCashierNameIncluded | ( | ) |
Returns true if the merchant has decided to include the cashier's name, or false otherwise. Defaults to false.
Definition at line 282 of file Receipt.java.
boolean isLogoIncluded | ( | ) |
Returns true if the merchant has decided to include their logo, or false otherwise. Defaults to false.
Definition at line 266 of file Receipt.java.
boolean isOnlineUrlIncluded | ( | ) |
Returns true if the merchant has decided to include an online url for the receipt, or false otherwise. Defaults to false.
Definition at line 298 of file Receipt.java.
boolean isQrCodeIncluded | ( | ) |
Returns true if the merchant has decided to include the QR Code with the online url, or false otherwise. Defaults to false.
Definition at line 306 of file Receipt.java.
PrintJob print | ( | Context | context | ) |
Convenience method to print the receipt to the default printer.
Definition at line 369 of file Receipt.java.
|
protected |
Refer to getBusinessInfo.
Definition at line 453 of file Receipt.java.
|
protected |
Refer to getCashierName.
Definition at line 501 of file Receipt.java.
|
protected |
Refer to getCustomFooter.
Definition at line 596 of file Receipt.java.
|
protected |
Refer to getCustomGreeting.
Definition at line 484 of file Receipt.java.
|
protected |
Refer to getFooter.
Definition at line 577 of file Receipt.java.
|
protected |
Refer to hasCustomFooter.
Definition at line 640 of file Receipt.java.
|
protected |
Refer to hasCustomHeader.
Definition at line 626 of file Receipt.java.
|
protected |
Refer to isCashierNameIncluded.
Definition at line 633 of file Receipt.java.
|
protected |
Refer to isLogoIncluded.
Definition at line 619 of file Receipt.java.
|
protected |
Refer to isOnlineUrlIncluded.
Definition at line 647 of file Receipt.java.
|
protected |
Refer to isQrCodeIncluded.
Definition at line 654 of file Receipt.java.
|
protected |
Refer to getOriginalHtml.
Definition at line 322 of file Receipt.java.
|
protected |
Refer to getOriginalImage.
Definition at line 341 of file Receipt.java.
|
protected |
Refer to getPaymentInformation.
Definition at line 541 of file Receipt.java.
|
protected |
Refer to getReceiptType().
Definition at line 255 of file Receipt.java.
|
protected |
Refer to getTransactionInformation.
Definition at line 523 of file Receipt.java.
|
static |
Definition at line 89 of file Receipt.java.
|
static |
Delivery method for emailing the receipt to the customer.
Definition at line 46 of file Receipt.java.
|
static |
The customer does not want a receipt.
Definition at line 55 of file Receipt.java.
|
static |
Delivery method for printing the receipt on the default printer.
Definition at line 42 of file Receipt.java.
|
static |
Delivery method for providing an SMS message to the customer, generally containing a link to an online receipt.
Definition at line 51 of file Receipt.java.
|
static |
The section after the custom mFooter but before any final mFooter text, such as final legal disclaimers.
Definition at line 86 of file Receipt.java.
|
static |
The section after the custom greeting but before the cashier name.
Definition at line 69 of file Receipt.java.
|
static |
The section after the basket data and payment data but before the online URL.
Definition at line 77 of file Receipt.java.
|
static |
The section after the online URL but before the custom mFooter.
Definition at line 81 of file Receipt.java.
|
static |
The section before the custom greeting but after the business information.
Definition at line 65 of file Receipt.java.
|
static |
The section before the basket data but after the cashier name.
Definition at line 73 of file Receipt.java.
|
static |
The section inside the head of the html, useful for configuring CSS styles and similar information.
Definition at line 61 of file Receipt.java.
|
static |
The customer receipt type. This is the default type.
Definition at line 34 of file Receipt.java.
|
static |
The merchant receipt type.
Definition at line 38 of file Receipt.java.
This document is the confidential property of Verifone, Inc. Any reproduction or distribution of this document, in whole or in part, or the disclosure of any of the information contained herein, without the prior written consent of Verifone, Inc. is prohibited. This document and any supplemental material supplied as part of any review must be returned to Verifone, Inc. upon request. Notice: This document may go through material revisions over time. While the Company will make every effort to keep readers updated as changes occur, care must be taken by the reader to make sure they are reading the latest version. Version numbers appear in the title page and revision history page of this document. All rights reserved. Verifone, the Verifone logo are either trademarks or registered trademarks of Verifone in the United States and/or other countries. All other trademarks or brand names are properties of their respective holders.