pub enum PaymentVerificationError {
}Expand description
Errors that can occur during payment verification.
These errors are returned when a payment fails validation checks performed by the facilitator before settlement.
Variants§
InvalidFormat(String)
The payment payload format is invalid or malformed.
InvalidPaymentAmount
The payment amount doesn’t match the requirements.
Early
The payment authorization’s validAfter timestamp is in the future.
Expired
The payment authorization’s validBefore timestamp has passed.
ChainIdMismatch
The payment’s chain ID doesn’t match the requirements.
RecipientMismatch
The payment recipient doesn’t match the requirements.
AssetMismatch
The payment asset (token) doesn’t match the requirements.
InsufficientFunds
The payer’s on-chain balance is insufficient.
InsufficientAllowance
InvalidSignature(String)
The payment signature is invalid.
TransactionSimulation(String)
Transaction simulation failed.
UnsupportedChain
The chain is not supported by this facilitator.
UnsupportedScheme
The payment scheme is not supported by this facilitator.
AcceptedRequirementsMismatch
The accepted payment details don’t match the requirements.
Trait Implementations§
Source§impl AsPaymentProblem for PaymentVerificationError
impl AsPaymentProblem for PaymentVerificationError
Source§fn as_payment_problem(&self) -> PaymentProblem
fn as_payment_problem(&self) -> PaymentProblem
PaymentProblem.