Types

Link copied to clipboard
data class DeviceRegistrationError(val errorCause: String?) : WhitelabelPayError

This error case can occur in WhitelabelPay.sync function call.

Link copied to clipboard

Thrown when trying to deactivate the payment means. Make sure to check the associated value error for more details.

Link copied to clipboard

Thrown if an error occurs when trying to fetch the payments overview with WhitelabelPay.getPayments

Link copied to clipboard

Thrown when trying to reactive the payment means. Make sure to check the associated value error for more details.

Link copied to clipboard
data class FailureToSignOff(val errorCause: String?) : WhitelabelPayError

Thrown if an error occurs when trying to sign off with WhitelabelPay.signOff

Link copied to clipboard
data class GetPaymentMeansError(val errorCause: String) : WhitelabelPayError

This error case can occur in WhitelabelPay.getPaymentMeansList function call.

Link copied to clipboard
data class GetPaymentTokensError(val errorCause: String) : WhitelabelPayError

This error case can occur in WhitelabelPayImplementation initialisation process.

Link copied to clipboard
data class InitFailed(val errorCause: String) : WhitelabelPayError

This error case can occur in WhitelabelPayImplementation initialisation process.

Link copied to clipboard
data class InvalidNotificationBody(val notificationBody: String?) : WhitelabelPayError

Thrown when an empty or null notification body is passed to WhitelabelPay.handleNotification.

Link copied to clipboard
data class InvalidTokenFormat(val errorCause: String) : WhitelabelPayError

This error case can occur in WhitelabelPayImplementation initialisation process.

Link copied to clipboard
data class KeyGenerationFailure(val key: String, val errorCause: String?) : WhitelabelPayError

This error case can occur in WhitelabelPayImplementation initialisation process.

Link copied to clipboard

This error case can occur in WhitelabelPay.getPaymentToken function call.

Link copied to clipboard
data class PaymentMeanDeletionError(val errorCause: String?) : WhitelabelPayError

Thrown when trying to delete a payment means. Make sure to check the associated value error for more details.

Link copied to clipboard

Thrown when failing to sign the requests

Link copied to clipboard

This error case can occur in WhitelabelPay.getPaymentToken function call.

Link copied to clipboard
data class WrongNotificationType(val notificationType: String?) : WhitelabelPayError

Thrown when the wrong notification type string is passed to WhitelabelPay.handleNotification.

Properties

Link copied to clipboard
open val cause: Throwable?
Link copied to clipboard
open val message: String?

Functions

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
abstract fun message(): String

Function that provides the error message text.

Link copied to clipboard
Link copied to clipboard