Transaction

class Transaction(transactionId: String)

Use this class to start a transaction with a transactionId obtained from a server-to-server init call.

This class is the main class to start any operation with the SDK.

Parameters

transactionId

The transaction ID from a server-to-server init call.

Constructors

Link copied to clipboard
constructor(transactionId: String)

Use this constructor to initialize the SDK with a transactionId obtained from a server-to-server init call. After this class is initialized, you should define the options properties.

constructor(transactionId: String, card: Card)

Use this constructor to start the SDK with a transactionId and the provided card for the transaction. Please note that this will only be used if you have direct access to the card information of your customers.

constructor(transactionId: String, savedPaymentMethods: List<SavedPaymentMethod>)

Use this constructor to start the SDK with a transactionId and a selection of one or more saved payment methods to display.

constructor(transactionId: String, savedPaymentMethod: SavedPaymentMethod)

Use this constructor to start the SDK with a transactionId and a single saved payment method.

Properties

Link copied to clipboard

The available options for how a transaction is handled by the mobile SDK.