pub enum ErrorCode {
Show 88 variants
InvalidAppKey,
InvalidPaymentId,
ProcessFailed,
InvalidFirstPaymentDate,
InvalidFrequency,
InvalidAmount,
InvalidCurrency,
InvalidIntent,
InvalidWallet,
InvalidOtp,
InvalidPin,
InvalidReceiverMsisdn,
ResendLimitExceeded,
WrongPin,
WrongPinCountExceeded,
WrongVerificationCode,
WrongVerificationLimit,
OtpVerificationTimeExpired,
PinVerificationTimeExpired,
ExceptionOccurred,
InvalidMandateId,
MissingMandateId,
InsufficientBalance,
ExceptionOccurredAlt,
InvalidRequestBody,
ReversalAmountExceedsOriginal,
MandateAlreadyExists,
ReversalError,
DuplicateRequest,
MandateTypeError,
InvalidMerchantInvoiceNumber,
InvalidTransferType,
TransactionNotFound,
ReversalNotAllowed,
AccountStateError,
AccountPermissionError,
AccountStateErrorAlt,
AccountStateErrorAlt2,
AccountStateErrorAlt3,
AccountStateErrorAlt4,
AccountStateErrorAlt5,
AccountStateErrorAlt6,
SecurityError,
SecurityErrorAlt,
SubscriptionError,
SubscriptionErrorAlt,
TlvFormat,
InvalidPayerReference,
InvalidMerchantCallbackUrl,
AgreementAlreadyExists,
InvalidAgreementId,
AgreementStateError,
AgreementStateErrorAlt,
AgreementStateErrorAlt2,
AgreementStateErrorAlt3,
InvalidPaymentState,
NotBkashAccount,
CustomerWalletError,
MultipleOtpRequestDenied,
PaymentExecutionPrerequisiteNotMet,
InitiatorOnlyAction,
PaymentAlreadyCompleted,
ModeNotValid,
ProductModeUnavailable,
MandatoryFieldMissing,
AgreementSharingNotAllowed,
AgreementPermissionError,
PaymentAlreadyCompletedAlt,
AgreementAlreadyCancelled,
RefundInvalidAmount,
RefundAmountExceedsAvailable,
RefundTransactionNotEligible,
RefundAlreadyFullyRefunded,
RefundDuplicate,
RefundChargeExceedsOriginal,
RefundNotPermitted,
RefundMaxRefundsReached,
RefundInvalidReference,
RefundNotFound,
RefundInvalidState,
MerchantNotPermitted,
AgreementExecutionAlreadyCompleted,
PaymentExecutionAlreadyCompleted,
InvalidPlatform,
AuthorizedPaymentAlreadyProcessed,
TransactionNotYetCompleted,
SystemUndergoingMaintenance,
Other(String),
}Expand description
Strongly-typed view of bKash’s errorCode field.
Unknown codes are captured as ErrorCode::Other so the client never
panics on a new code bKash may introduce.
Variants§
InvalidAppKey
2001 — Invalid App Key.
InvalidPaymentId
2002 — Invalid Payment ID.
ProcessFailed
2003 — Process failed.
InvalidFirstPaymentDate
2004 — Invalid firstPaymentDate.
InvalidFrequency
2005 — Invalid frequency.
InvalidAmount
2006 — Invalid amount.
InvalidCurrency
2007 — Invalid currency.
InvalidIntent
2008 — Invalid intent.
InvalidWallet
2009 — Invalid Wallet.
InvalidOtp
2010 — Invalid OTP.
InvalidPin
2011 — Invalid PIN.
InvalidReceiverMsisdn
2012 — Invalid Receiver MSISDN.
ResendLimitExceeded
2013 — Resend Limit Exceeded.
WrongPin
2014 — Wrong PIN.
WrongPinCountExceeded
2015 — Wrong PIN count exceeded.
WrongVerificationCode
2016 — Wrong verification code.
WrongVerificationLimit
2017 — Wrong verification limit.
OtpVerificationTimeExpired
2018 — OTP verification time expired.
PinVerificationTimeExpired
2019 — PIN verification time expired.
ExceptionOccurred
2020 — Exception occurred.
InvalidMandateId
2021 — Invalid Mandate ID.
MissingMandateId
2022 — Missing Mandate ID.
InsufficientBalance
2023 — Insufficient Balance.
ExceptionOccurredAlt
2024 — Exception occurred (alternate).
InvalidRequestBody
2025 — Invalid request body.
ReversalAmountExceedsOriginal
2026 — Reversal amount > original.
MandateAlreadyExists
2027 — Mandate already exists.
ReversalError
2028 — Reversal error.
DuplicateRequest
2029 — Duplicate request.
MandateTypeError
2030 — Mandate type error.
InvalidMerchantInvoiceNumber
2031 — Invalid merchant invoice number.
InvalidTransferType
2032 — Invalid transfer type.
TransactionNotFound
2033 — Transaction not found.
ReversalNotAllowed
2034 — Reversal not allowed.
AccountStateError
2035 — Account state error.
AccountPermissionError
2036 — Account permission error.
AccountStateErrorAlt
2037 — Account state error (alt).
AccountStateErrorAlt2
2038 — Account state error (alt 2).
AccountStateErrorAlt3
2039 — Account state error (alt 3).
AccountStateErrorAlt4
2040 — Account state error (alt 4).
AccountStateErrorAlt5
2041 — Account state error (alt 5).
AccountStateErrorAlt6
2042 — Account state error (alt 6).
SecurityError
2043 — Security error.
SecurityErrorAlt
2044 — Security error (alt).
SubscriptionError
2045 — Subscription error.
SubscriptionErrorAlt
2046 — Subscription error (alt).
TlvFormat
2047 — TLV format error.
InvalidPayerReference
2048 — Invalid Payer Reference.
InvalidMerchantCallbackUrl
2049 — Invalid Merchant Callback URL.
AgreementAlreadyExists
2050 — Agreement already exists.
InvalidAgreementId
2051 — Invalid Agreement ID.
AgreementStateError
2052 — Agreement state error.
AgreementStateErrorAlt
2053 — Agreement state error (alt).
AgreementStateErrorAlt2
2054 — Agreement state error (alt 2).
AgreementStateErrorAlt3
2055 — Agreement state error (alt 3).
InvalidPaymentState
2056 — Invalid Payment State.
NotBkashAccount
2057 — Not a bKash Account.
CustomerWalletError
2058 — Customer Wallet error.
MultipleOtpRequestDenied
2059 — Multiple OTP request denied.
PaymentExecutionPrerequisiteNotMet
2060 — Payment execution pre-requisite not met.
InitiatorOnlyAction
2061 — Initiator-only action.
PaymentAlreadyCompleted
2062 — Payment already completed.
ModeNotValid
2063 — Mode not valid.
2064 — Product mode unavailable.
MandatoryFieldMissing
2065 — Mandatory field missing.
AgreementSharingNotAllowed
2066 — Agreement sharing not allowed.
AgreementPermissionError
2067 — Agreement permission error.
PaymentAlreadyCompletedAlt
2068 — Payment already completed (alt).
AgreementAlreadyCancelled
2069 — Agreement already cancelled.
RefundInvalidAmount
2071 — Refund: invalid amount.
RefundAmountExceedsAvailable
2072 — Refund: amount exceeds available.
RefundTransactionNotEligible
2073 — Refund: transaction not eligible.
RefundAlreadyFullyRefunded
2074 — Refund: already fully refunded.
RefundDuplicate
2075 — Refund: duplicate refund.
RefundChargeExceedsOriginal
2076 — Refund: charge greater than original.
RefundNotPermitted
2077 — Refund: not permitted.
RefundMaxRefundsReached
2078 — Refund: maximum refunds reached.
RefundInvalidReference
2079 — Refund: invalid refund reference.
RefundNotFound
2080 — Refund: not found.
RefundInvalidState
2081 — Refund: not allowed in current state.
MerchantNotPermitted
2082 — Merchant not permitted.
AgreementExecutionAlreadyCompleted
2116 — Agreement execution already completed.
PaymentExecutionAlreadyCompleted
2117 — Payment execution already completed.
InvalidPlatform
2118 — Invalid Platform.
AuthorizedPaymentAlreadyProcessed
2119 — Authorized payment already processed.
TransactionNotYetCompleted
2127 — Transaction not yet completed.
SystemUndergoingMaintenance
503 — System undergoing maintenance.
Other(String)
Any unknown / unrecognised error code. Preserved as a raw string.