public interface IPoyntSecondScreenService
extends android.os.IInterface
Modifier and Type | Interface and Description |
---|---|
static class |
IPoyntSecondScreenService.Stub
Local-side IPC implementation stub class.
|
Modifier and Type | Method and Description |
---|---|
void |
captureAgreement(java.lang.String agreementUrl,
android.os.Bundle options,
IPoyntActionButtonListener listener)
Displays web view for agreement w/ accept/decline buttons
|
void |
captureDccChoice(android.os.Bundle options,
co.poynt.api.model.ExchangeRate exchangeRate,
IPoyntSecondScreenDynamicCurrConversionListener listener)
Displays Dynamic Currency Conversion option
|
void |
captureEmail(android.os.Bundle options,
IPoyntEmailEntryListener listener)
Displays the email address collection screen to the customer.
|
void |
captureInstallmentOption(android.os.Bundle options,
java.util.List<InstallmentsOption> installmentsOptions,
IPoyntInstallmentPlanListener listener)
Presents installment options
|
void |
capturePhone(android.os.Bundle options,
IPoyntPhoneEntryListener listener)
Displays the phone numer collection screen to the customer.
|
void |
captureReceiptChoice(co.poynt.api.model.TransactionAmounts amounts,
java.util.List<ReceiptOption> receiptOptions,
android.os.Bundle options,
IPoyntReceiptChoiceListener callback)
Displays the receipt choices to the customer on the second screen.
|
void |
captureSignature(co.poynt.api.model.TransactionAmounts amounts,
android.os.Bundle options,
IPoyntSignatureListener callback)
Capture Signature screen.
|
void |
captureTip(long amount,
java.lang.String currency,
android.os.Bundle options,
IPoyntTipListener callback)
Displays the tip collection screen to the customer.
|
void |
displayMessage(java.lang.String content,
android.os.Bundle options)
Displays a message with a custom background
|
void |
scanCode(android.os.Bundle options,
IPoyntScanCodeListener listener)
Displays the scan code (barcode, qrcode, etc.) screen to the customer.
|
void |
showCartConfirmation(java.util.List<co.poynt.api.model.OrderItem> items,
java.util.List<co.poynt.api.model.Discount> discounts,
java.util.List<co.poynt.api.model.Fee> fees,
co.poynt.api.model.TransactionAmounts amounts,
boolean enableActionButtons,
android.os.Bundle options,
IPoyntActionButtonListener callback)
Displays the given list of items on the second screen.
|
void captureTip(long amount, java.lang.String currency, android.os.Bundle options, IPoyntTipListener callback) throws android.os.RemoteException
amount
- transaction amount for which tip is being capturedcurrency
- amount currencyoptions
- Bundle with optional parameters,
MODE: AMOUNTS or PERCENTS or CUSTOM
TIP_AMOUNT1,TIP_AMOUNT2, TIP_AMOUNT3 when mode is AMOUNT
TIP_PERCENT1, TIP_PERCENT2, TIP_PERCENT3 when mode is PERCENTAGE
TITLE - to set custom title
SECONDARY_TITLEcallback
- IPoyntTipListener
android.os.RemoteException
void showCartConfirmation(java.util.List<co.poynt.api.model.OrderItem> items, java.util.List<co.poynt.api.model.Discount> discounts, java.util.List<co.poynt.api.model.Fee> fees, co.poynt.api.model.TransactionAmounts amounts, boolean enableActionButtons, android.os.Bundle options, IPoyntActionButtonListener callback) throws android.os.RemoteException
items
- List of OrderItem
s to displaydiscounts
- List of Discount
s to displayfees
- List of Fee
s to displayamounts
- TransactionAmounts containing the payment detailsenableActionButtons
- to enable/disable action buttons in the footeroptions
- Bundle with optional parameters:
TITLE, LEFT_BUTTON_TITLE, RIGHT_BUTTON_TITLEcallback
- IPoyntActionButtonListener
android.os.RemoteException
void captureReceiptChoice(co.poynt.api.model.TransactionAmounts amounts, java.util.List<ReceiptOption> receiptOptions, android.os.Bundle options, IPoyntReceiptChoiceListener callback) throws android.os.RemoteException
options
- Bundle to pass options to enable/disale options
TITLE, FOOTER_TEXTcallback
- IPoyntActionButtonListener
android.os.RemoteException
void captureSignature(co.poynt.api.model.TransactionAmounts amounts, android.os.Bundle options, IPoyntSignatureListener callback) throws android.os.RemoteException
transaction
- if the signature is collected for a transactionoptions
- Bundle with additional options
AGREEMENT_TEXTcallback
- IPoyntSignatureListener
android.os.RemoteException
void displayMessage(java.lang.String content, android.os.Bundle options) throws android.os.RemoteException
content
- custom message to dipslay on the second screen, if it's HTML set optionsoptions
- bundle containing additional options:
CONTENT-TYPE: HTML or TEXT (when URL touch is disabled for security reasons)
BACKGROUD-IMAGE
FONT_COLORbackgroundImage
- full screen background image for second screen.android.os.RemoteException
void captureEmail(android.os.Bundle options, IPoyntEmailEntryListener listener) throws android.os.RemoteException
options
- Bundle containing
TITLE
EMAIL- existing data to display
LEFT_BUTTON_TITLE, RIGHT_BUTTON_TITLEcallback
- IPoyntSecondScreenEmailEntryListener
android.os.RemoteException
void capturePhone(android.os.Bundle options, IPoyntPhoneEntryListener listener) throws android.os.RemoteException
options
- Bundle containing
TITLE
PHONE- existing data to display
LEFT_BUTTON_TITLE, RIGHT_BUTTON_TITLEcallback
- IPoyntSecondScreenPhoneEntryListener
android.os.RemoteException
void captureAgreement(java.lang.String agreementUrl, android.os.Bundle options, IPoyntActionButtonListener listener) throws android.os.RemoteException
options
- Bundle containing
TITLE
LEFT_BUTTON_TITLE, RIGHT_BUTTON_TITLEcallback
- IPoyntSecondScreenPhoneEntryListener
android.os.RemoteException
void scanCode(android.os.Bundle options, IPoyntScanCodeListener listener) throws android.os.RemoteException
options
- Bundle containing
TITLE
BACKGROUND-IMAGE
CANCEL_BUTTON_TITLEcallback
- IPoyntScanCodeListener
android.os.RemoteException
void captureDccChoice(android.os.Bundle options, co.poynt.api.model.ExchangeRate exchangeRate, IPoyntSecondScreenDynamicCurrConversionListener listener) throws android.os.RemoteException
options
- Bundle containing
HIDE_CONVERSION_FEE - true | false (default)
DCC_DISCLAIMER - overrides disclaimer text
DCC_DISCLAIMER_FONT_SIZE - font size in sp (e.g. "22sp")
DCC_SKIP_CONFIRMATION - do not show the confirmation screenexchangeRate
- listener
- IPoyntSecondScreenDynamicCurrConversionListener
android.os.RemoteException
void captureInstallmentOption(android.os.Bundle options, java.util.List<InstallmentsOption> installmentsOptions, IPoyntInstallmentPlanListener listener) throws android.os.RemoteException
options
- Bundle containing additional options
EXTRA_TITLE - screen title
EXTRA_BACKGROUND_COLOR - screen background color
EXTRA_FONT_COLOR - title color
EXTRA_FONT_SIZE - title font sizeinstallmentsOptions
- List of co.poynt.api.model.InstallmentsOption
slistener
- IPoyntInstallmentPlanListener
android.os.RemoteException