public interface IPoyntReceiptDecoratorService
extends android.os.IInterface
Sample Service
<service
android:name=".CustomizationReceiptService"
android:enabled="true"
android:exported="true">
<!-- define the intent filter with an action as IPoyntReceiptDecoratorService interface -->
<intent-filter>
<action android:name="co.poynt.os.services.v1.IPoyntReceiptDecoratorService" />
</intent-filter>
<meta-data
android:name="co.poynt.os.service.capability"
android:resource="@xml/receipt_capabilities"/>
<!-- Optional: Provide a logo that will appear on screen -->
<meta-data
android:name="co.poynt.os.service.logo"
android:resource="@drawable/custom_receipt" />
</service>
Sample Receipt Decorator XML
<?xml version="1.0" encoding="utf-8"?>
<!-- This xml defines what capabilities are supported by the service that uses this xml.
Capabilities will be used by PoyntOS to produce custom UI on behalf of the service to
get inputs from merchant/customer. -->
<capability xmlns:android="http://schemas.android.com/apk/res/android">
<!-- REQUIRED: package name of your android app-->
<appid>-your-package-name-</appid>
<!-- REQUIRED: type of capbility, should be one of
CUSTOM_TRANSACTION, DISCOUNT, LOYALTY, RECEIPT_DECORATOR
please see CapabilityType defined in PoyntSDK for list of types supported.
-->
<type>RECEIPT_DECORATOR</type>
<!-- descriptive name of this capability -->
<provider>My Custom Receipt Decorator</provider>>
<!-- entry method could be one of the following
MANUAL -> will result in showing a icon to the merchant to manually launch the capability.
CARDREAD -> card data will be directly passed to this capability provider.
QRCODE -> qr code entry.
NFC -> NFC will be directly passed to this capability provider.
OTHER -> other entry methods.
each entry method can be additionally filtered with eval tag.
-->
<entry_method type="CUSTOM"></entry_method>
</capability>
Modifier and Type | Interface and Description |
---|---|
static class |
IPoyntReceiptDecoratorService.Stub
Local-side IPC implementation stub class.
|
Modifier and Type | Method and Description |
---|---|
void |
cancel(java.lang.String requestId)
Cancel previously initiated request identified by requestId.
|
void |
decorate(PrintedReceipt receipt,
java.lang.String requestId,
IPoyntReceiptDecoratorServiceListener callback)
Decorate PoyntReceipt with additional info.
|
void |
decorateV2(PrintedReceiptV2 receipt,
java.lang.String requestId,
IPoyntReceiptDecoratorListener callback)
Decorate poynt receipt with additional info.
|
void decorate(PrintedReceipt receipt, java.lang.String requestId, IPoyntReceiptDecoratorServiceListener callback) throws android.os.RemoteException
receipt
- PrintedReceipt
requestId
- RequestIdcallback
- IPoyntReceiptDecoratorServiceListener
android.os.RemoteException
void cancel(java.lang.String requestId) throws android.os.RemoteException
requestId
- RequestId sent in previous decorate() callandroid.os.RemoteException
void decorateV2(PrintedReceiptV2 receipt, java.lang.String requestId, IPoyntReceiptDecoratorListener callback) throws android.os.RemoteException
receipt
- PrintedReceiptV2
requestId
- RequestIdcallback
- IPoyntReceiptDecoratorServiceListener
android.os.RemoteException