setPaymentMethod

open fun setPaymentMethod(paymentMethod: String)

Specifies that a specific payment method should be used in this transaction.

If this is not set, then the terminal will let the user choose which payment method to use, based on which methods are available.

If the requested method is not available on the terminal, the transaction will fail.

To check which payment method was used in a transaction, get the payment details from se.westpay.posapplib.TransactionResponse.getPaymentDetails.

Parameters

paymentMethod

The name of the requested payment method, e.g. "swish", or "vipps".