Transaction

class Transaction(mobileToken: String)

Use this class to start a transaction with a mobileToken that has previously been initialized with a server-to-server init call.

This class is the main class to start any operation with the SDK. After the transaction has been completed - regardless if successful or not - the listener will be called with some basic information about the success or failure.

Parameters

mobileToken

The mobileToken that has previously been initialized with a server-to-server init call.

Constructors

Transaction
Link copied to clipboard
fun Transaction(mobileToken: String, card: Card)
Use this constructor to start the SDK with a mobile token and the provided card for the transaction.
Transaction
Link copied to clipboard
fun Transaction(mobileToken: String, savedPaymentMethods: List<SavedPaymentMethod>)
Use this constructor to start the SDK with a mobile token and a selection of one or more saved payment methods to display.
Transaction
Link copied to clipboard
fun Transaction(mobileToken: String, savedPaymentMethod: SavedPaymentMethod)
Use this constructor to start the SDK with a mobile token and a single saved payment method.
Transaction
Link copied to clipboard
fun Transaction(mobileToken: String)
Use this constructor to start the SDK with a mobile token obtained after a server-to-server init call.

Types

Companion
Link copied to clipboard
object Companion

Properties

listener
Link copied to clipboard
var listener: TransactionListener? = null
This listener will be notified after a transaction has been completed, regardless if successful or not.
options
Link copied to clipboard
var options: TransactionOptions
The available options for how a transaction is handled by the mobile SDK.