Transaction

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.

For this to work, you can only send one payment method in your server-to-server init call. Use this constructor if you use your own UI fields for the card information.

Parameters

mobileToken

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

card

Card object used for the transaction.


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.

The user will then be able to click on their desired saved payment method to finalize the payment.

Parameters

mobileToken

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

savedPaymentMethods

Specify here the saved payment methods that are available for selection to the user.


constructor(mobileToken: String, savedPaymentMethod: SavedPaymentMethod)

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

The payment will be started with this saved payment method.

Parameters

mobileToken

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

savedPaymentMethod

The saved payment method to use for this payment.


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.

Parameters

mobileToken

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