public interface IPoyntTransactionService
extends android.os.IInterface
Transaction
s. All operations
require network connectivity except for the 'get' operations, in which case, data from the local
Poynt Transactions content providerName is returned. Poynt Transactions content providerName is updated whenever the
transaction are modified locally or on the cloud.
All calls require the necessary permissions declared
in the caller's Android Manifest file. Please refer to
Poynt OS Permissions for more details.Modifier and Type | Interface and Description |
---|---|
static class |
IPoyntTransactionService.Stub
Local-side IPC implementation stub class.
|
Modifier and Type | Method and Description |
---|---|
void |
captureAllTransactions(java.lang.String requestId)
Captures all authorized transactions through Poynt Cloud
|
void |
captureAllTransactionsWithOptions(java.lang.String requestId,
android.os.Bundle options,
co.poynt.api.model.CaptureAllRequest captureAll,
IPoyntTransactionCaptureAllListener listener)
Captures all authorized transactions through Poynt Cloud
|
void |
captureEmvData(java.lang.String transactionId,
co.poynt.api.model.EMVData emvData,
java.lang.String requestId)
Record EMV Data (Tags) for settlement purpose (ODC/BDC)
|
void |
captureTransaction(java.lang.String transactionId,
co.poynt.api.model.AdjustTransactionRequest captureRequest,
java.lang.String requestId,
IPoyntTransactionServiceListener callback)
Captures the transactions through Poynt Cloud and
also updates the transaction in local Poynt Order content providerName.
|
void |
checkCard(Payment payment,
java.lang.String serviceCode,
java.lang.String cardHolderName,
java.lang.String expirationDate,
java.lang.String last4,
java.lang.String binRange,
java.lang.String AID,
java.lang.String applicationLabel,
java.lang.String panSequenceNumber,
java.lang.String issuerCountryCode,
java.lang.String encryptedPAN,
java.lang.String encryptedTrack2,
int issuerCodeTableIndex,
java.lang.String applicationPreferredName,
java.lang.String keyIdentifier,
java.lang.String appCurrencyCode,
IPoyntCheckCardListener callback)
Check the card data to determine if the transaction can be continued or canceled or
to be restarted with a different parameters (amount, etc.)
|
void |
createTransaction(co.poynt.api.model.Transaction transaction,
java.lang.String requestId,
IPoyntTransactionServiceListener callback)
Creates the transaction in Poynt Cloud and also saves the created transaction in Poynt Transaction content
providerName.
|
void |
getBalanceInquiry(co.poynt.api.model.BalanceInquiry balanceInquiry,
java.lang.String requestId,
IPoyntTransactionBalanceInquiryListener callBack) |
void |
getTransaction(java.lang.String transactionId,
java.lang.String requestId,
IPoyntTransactionServiceListener callback)
Retrieves the given transaction from the local Poynt Transaction content providerName if available, otherwise
fetches from the Poynt Cloud .
|
void |
processTransaction(co.poynt.api.model.Transaction transaction,
java.lang.String requestId,
IPoyntTransactionServiceListener callback)
Processes the given transaction through Poynt Cloud and also saves the processed transaction in local Poynt Transaction content
providerName.
|
void |
reverseTransaction(java.lang.String originalRequestId,
java.lang.String originalTransactionId,
co.poynt.api.model.EMVData emvData,
java.lang.String requestId)
Cancels the given requestId in the Poynt Cloud and updates local Poynt Transaction content providerName.
|
void |
saveTransaction(co.poynt.api.model.Transaction transaction,
java.lang.String requestId)
Saves a given transaction in Poynt Content Provider.
|
void |
updateTransaction(java.lang.String transactionId,
co.poynt.api.model.AdjustTransactionRequest updateRequest,
java.lang.String requestId,
IPoyntTransactionServiceListener callback)
Updates the given transaction in the Poynt Cloud and updates local Poynt Transaction content providerName.
|
void |
voidTransaction(java.lang.String transactionId,
co.poynt.api.model.EMVData emvData,
java.lang.String requestId,
IPoyntTransactionServiceListener callback)
Voids any pending authorizations through Poynt Cloud and also updates the transaction in local Poynt Transaction content
providerName.
|
void createTransaction(co.poynt.api.model.Transaction transaction, java.lang.String requestId, IPoyntTransactionServiceListener callback) throws android.os.RemoteException
transaction
- co.poynt.api.Transaction
requestId
- RequestId for Idempotency enforcementcallback
- IPoyntTransactionServiceListener
android.os.RemoteException
void processTransaction(co.poynt.api.model.Transaction transaction, java.lang.String requestId, IPoyntTransactionServiceListener callback) throws android.os.RemoteException
transaction
- co.poynt.api.Transaction
requestId
- RequestId for Idempotency enforcementcallback
- IPoyntTransactionServiceListener
android.os.RemoteException
void voidTransaction(java.lang.String transactionId, co.poynt.api.model.EMVData emvData, java.lang.String requestId, IPoyntTransactionServiceListener callback) throws android.os.RemoteException
transactionId
- ID of the transaction to voidrequestId
- RequestId for Idempotency enforcementcallback
- IPoyntTransactionServiceListener
android.os.RemoteException
void captureTransaction(java.lang.String transactionId, co.poynt.api.model.AdjustTransactionRequest captureRequest, java.lang.String requestId, IPoyntTransactionServiceListener callback) throws android.os.RemoteException
co.poynt.api.AdjustTransactionRequest
object with the partial capture
information can be passed as an argument. When only transactionId is provided, the payment is captured completely.transactionId
- ID of the transaction to capturecaptureRequest
- co.poynt.api.AdjustTransactionRequest
requestId
- RequestId for Idempotency enforcementcallback
- IPoyntTransactionServiceListener
android.os.RemoteException
void captureAllTransactions(java.lang.String requestId) throws android.os.RemoteException
requestId
- RequestId for Idempotency enforcementandroid.os.RemoteException
void updateTransaction(java.lang.String transactionId, co.poynt.api.model.AdjustTransactionRequest updateRequest, java.lang.String requestId, IPoyntTransactionServiceListener callback) throws android.os.RemoteException
transactionId
- ID of the transaction to updateupdateRequest
- AdjustTransactionRequest
requestId
- RequestId for Idempotency enforcementcallback
- IPoyntTransactionServiceListener
android.os.RemoteException
void reverseTransaction(java.lang.String originalRequestId, java.lang.String originalTransactionId, co.poynt.api.model.EMVData emvData, java.lang.String requestId) throws android.os.RemoteException
originalRequestId
- requesTId of the original transaction request to canceloriginalTransactionId
- transactionId of the original transaction to cancelemvData
- EMVData
requestId
- RequestId for Idempotency enforcementandroid.os.RemoteException
void getTransaction(java.lang.String transactionId, java.lang.String requestId, IPoyntTransactionServiceListener callback) throws android.os.RemoteException
transactionId
- ID of the Transaction to retrieverequestId
- RequestId for tracking the requestcallback
- IPoyntTransactionServiceListener
android.os.RemoteException
void saveTransaction(co.poynt.api.model.Transaction transaction, java.lang.String requestId) throws android.os.RemoteException
transaction
- co.poynt.api.Transaction
requestId
- RequestId for Idempotency enforcementcallback
- IPoyntTransactionServiceListener
android.os.RemoteException
void checkCard(Payment payment, java.lang.String serviceCode, java.lang.String cardHolderName, java.lang.String expirationDate, java.lang.String last4, java.lang.String binRange, java.lang.String AID, java.lang.String applicationLabel, java.lang.String panSequenceNumber, java.lang.String issuerCountryCode, java.lang.String encryptedPAN, java.lang.String encryptedTrack2, int issuerCodeTableIndex, java.lang.String applicationPreferredName, java.lang.String keyIdentifier, java.lang.String appCurrencyCode, IPoyntCheckCardListener callback) throws android.os.RemoteException
payment
- Payment
service
- codecard
- holder nameexpirationDate
- last4
- digits of the PANbin
- range of the PANApplication
- IdApplication
- labelpan
- Sequence numberissuer
- country codeencrypted
- PANencryptedTrack2
- Encrypted Track2issuerCodeTableIndex
- code table according to ISO/IEC 8859 for displaying the Application Preferred NameapplicationPreferredName
- Application Preferred NamekeyIdentifier
- carries Key Serial Number when DUKPT scheme is used or Session Key ID when Master/Sessin key scheme is usedappCurrencyCode
- the Application currency codecallback
- IPoyntCheckCardListener
android.os.RemoteException
void captureEmvData(java.lang.String transactionId, co.poynt.api.model.EMVData emvData, java.lang.String requestId) throws android.os.RemoteException
transactionId
- ID of the transaction to voidemvData
- EMVDatarequestId
- RequestId for Idempotency enforcementandroid.os.RemoteException
void getBalanceInquiry(co.poynt.api.model.BalanceInquiry balanceInquiry, java.lang.String requestId, IPoyntTransactionBalanceInquiryListener callBack) throws android.os.RemoteException
android.os.RemoteException
void captureAllTransactionsWithOptions(java.lang.String requestId, android.os.Bundle options, co.poynt.api.model.CaptureAllRequest captureAll, IPoyntTransactionCaptureAllListener listener) throws android.os.RemoteException
requestId
- RequestId for Idempotency enforcementoptions
- Bundle can contain the following:
INCLUDE_AUTHONLY: String "TRUE" or "FALSE"(defaults to false if not passed). Determines whether to include or exclude authOnly transactions ALL_TIDS: String "TRUE" or "FALSE"(defaults to false if not passed). If TRUE, captures and settles transactions for all terminals in the store
listener
- CaptureAllRequest captureAll. This param is ignored if ALL_TIDS is set to TRUE in the options Bundle.listener
- IPoyntTransactionCaptureAllListener callback to provide the list of accepted transactionsandroid.os.RemoteException