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

Link copied to clipboard
constructor(mobileToken: String, card: Card)

Use this constructor to start the SDK with a mobile token 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(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.

constructor(mobileToken: String, savedPaymentMethod: SavedPaymentMethod)

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

constructor(mobileToken: String)

Use this constructor to start the SDK with a mobile token obtained after a server-to-server init call. After this class is initialized, you should define its listener and the options properties.

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

This listener will be notified after a transaction has been completed, regardless if successful or not.

Link copied to clipboard

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