Types

Link copied to clipboard
data class AlreadyMakingPayment(val paymentId: String) : ElepayError

The specified payment is in processing now.

Link copied to clipboard
data class InvalidPayload(val errorCode: String, val message: String) : ElepayError

The data of the payment is invalid. You may use the errorCode for technical support.

Link copied to clipboard
data class PaymentFailure(val errorCode: String, val message: String) : ElepayError

Payment is failed.

Link copied to clipboard
data class PermissionRequired(val permissions: List<String>) : ElepayError

The required permissions are not granted for the current payment processing.

Link copied to clipboard
data class SDKNotSetup(val errorCode: String, val message: String) : ElepayError

The SDK has not been initialized correctly. Make sure the Elepay.setup is correctly called.

Link copied to clipboard
data class SystemError(val errorCode: String, val message: String) : ElepayError

An internal system error.

Link copied to clipboard
data class UninitializedPaymentMethod(val errorCode: String, val paymentMethod: String, val message: String) : ElepayError

The specified payment method is not been initialized correctly. You may use the errorCode for technical support.

Link copied to clipboard
data class UnsupportedPaymentMethod(val paymentMethod: String) : ElepayError

The specified payment method is not supported.