build.gradle filesettings.gradle file.| Property | Type | Required | Description | Allowed values |
|---|---|---|---|---|
| context | Object | Yes | android.content.Context | |
| sdkMode | Object | Yes | InitBillpocketSDK.SdkMode. | TEST, PRODUCTION |
| userToken | String | Yes | User token. | |
| deviceToken | String | NO | Device ID. It can be viewed and renamed from the Billpocket dashboard > My devices section. | |
| listener | Object | Yes | EventListenerInitSDK |
getListBluetoothReaders method.resultListReaders method of the EventListenerConnection interface to listen to the result.connectReader method to get the selected item from the list of available devices. Get the type, macAddress and name data from the previously selected BluetoothDevice object.resultReaderConnect method of the EventListenerConection interface to get the connection result.| Propiedad | Type | Required | Description |
|---|---|---|---|
| context | Object | Yes | android.content.Context |
| amount | Number | Yes | Transaction amount. |
| description | String | Yes | Transaction description. |
| location | Object | Yes | Instance of the android.location.Location object with latitude and longitude of the transaction source. |
| tip | Number | No | Transaction tip |
| listener | Object | Yes | Instance of EventListenerTransaction. |
| rotationSignature | Boolean | No | Set true to display the signature screen vertically or set false to display the signature screen horizontally. |
doTransaction method to initiate a transaction with the terminal. You must send all required parameters in the request.eventListener object which implements the EventListenerTransaction interface to listen for transaction events.