Logo
Developer SDK
Version 1.9.632.913d652c-152450467.
TransactionServiceConnector Class Reference

Static Public Member Functions

static ITransactionManager getTransactionBinder (Context context, Map deviceParams)
 
static ITerminalChannel getTerminalChannelBinder (Context context, Map deviceParams)
 
static ITransactionService getServiceBinder (Context context)
 
static void attachServiceConnection (ServiceConnection altServiceConnection)
 
static void detachServiceConnection (ServiceConnection altServiceConnection)
 
static void tearDown (Context context)
 
static boolean bindToService (Context context, ServiceConnection altServiceConnection)
 

Static Public Attributes

static final String TRANSACTION_APPLICATION_PACKAGE
 
static final ComponentName TRANSACTION_SERVICE_COMPONENT_NAME
 
static final String ACTION_TRANSACTION_SERVICE = "com.verifone.commerce.payment.ITransactionService"
 
static final String [] TRANSACTION_SERVICE_PERMISSIONS = new String[] {"com.verifone.commerce.manifest.permission.TRANSACTION_SERVICE"}
 
static final String EXTRA_CLIENT_IDENTIFIER
 

Detailed Description

Manages the binding and unbinding from the underlying service, and attaching of the appropriate Transaction Manager proxy.

Definition at line 30 of file TransactionServiceConnector.java.

Member Function Documentation

◆ attachServiceConnection()

static void attachServiceConnection ( ServiceConnection  altServiceConnection)
static

Attaches an additional service connection object to be notified when events occur.

Definition at line 245 of file TransactionServiceConnector.java.

◆ bindToService()

static boolean bindToService ( Context  context,
ServiceConnection  altServiceConnection 
)
static

Enables binding directly to the service.

Definition at line 290 of file TransactionServiceConnector.java.

◆ detachServiceConnection()

static void detachServiceConnection ( ServiceConnection  altServiceConnection)
static

Removes an attached service connection from the list.

Definition at line 254 of file TransactionServiceConnector.java.

◆ getServiceBinder()

static ITransactionService getServiceBinder ( Context  context)
static

Attempts to get the binder for the service. Returns the existing binder if the binder is still alive, otherwise initiates the binding process. If this is called from the main thread and there is not a pre-existing binder, returns null, otherwise this blocks until the binder can be retrieved.

Definition at line 177 of file TransactionServiceConnector.java.

◆ getTransactionBinder()

static ITransactionManager getTransactionBinder ( Context  context,
Map  deviceParams 
)
static

Attempts to get the Transaction Manager binder for this client. This uses getServiceBinder(Context) to retrieve the current service binder, which it then uses to get the Transaction Manager binder for the client ID. This follows the same threading rules as getServiceBinder(Context).

Definition at line 115 of file TransactionServiceConnector.java.

◆ tearDown()

static void tearDown ( Context  context)
static

Unbinds from the service and cleans up any other references.

Definition at line 261 of file TransactionServiceConnector.java.

Member Data Documentation

◆ ACTION_TRANSACTION_SERVICE

final String ACTION_TRANSACTION_SERVICE = "com.verifone.commerce.payment.ITransactionService"
static

The action to use when locating the transaction service.

Definition at line 42 of file TransactionServiceConnector.java.

◆ EXTRA_CLIENT_IDENTIFIER

final String EXTRA_CLIENT_IDENTIFIER
static
Initial value:
=
"com.verifone.commerce.payment.intent.extra.CLIENT_IDENTIFIER"

Setting this EXTRA when binding to the Transaction Service allows the service to perform some error handling and reconnection on behalf of the calling application. This value should be a consistent, unique identifier for the calling application, preferably the application's package name or possibly the application's UID, or some other unique identifier.

Definition at line 53 of file TransactionServiceConnector.java.

◆ TRANSACTION_APPLICATION_PACKAGE

final String TRANSACTION_APPLICATION_PACKAGE
static
Initial value:
=
"com.verifone.commerce.payment.service"

The package name for the application that supports the required services.

Definition at line 33 of file TransactionServiceConnector.java.

◆ TRANSACTION_SERVICE_COMPONENT_NAME

final ComponentName TRANSACTION_SERVICE_COMPONENT_NAME
static
Initial value:
=
TRANSACTION_APPLICATION_PACKAGE + ".TransactionService")

The component name of the service, as compatible with this version of the library.

Definition at line 36 of file TransactionServiceConnector.java.

◆ TRANSACTION_SERVICE_PERMISSIONS

final String [] TRANSACTION_SERVICE_PERMISSIONS = new String[] {"com.verifone.commerce.manifest.permission.TRANSACTION_SERVICE"}
static

The permissions that the transaction service must use to be able to perform the payments.

Definition at line 46 of file TransactionServiceConnector.java.


The documentation for this class was generated from the following file:

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.