mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-30 01:27:31 +08:00
feat(router): add requeue support for payments and fix duplicate entry error in process tracker for requeued payments (#1567)
This commit is contained in:
committed by
GitHub
parent
7489c870d9
commit
b967d23251
@ -973,3 +973,23 @@ pub struct UnresolvedResponseReason {
|
||||
/// A message to merchant to give hint on next action he/she should do to resolve
|
||||
pub message: String,
|
||||
}
|
||||
|
||||
#[derive(
|
||||
Debug,
|
||||
serde::Deserialize,
|
||||
serde::Serialize,
|
||||
strum::Display,
|
||||
strum::EnumString,
|
||||
Clone,
|
||||
PartialEq,
|
||||
Eq,
|
||||
ToSchema,
|
||||
)]
|
||||
#[serde(rename_all = "snake_case")]
|
||||
#[strum(serialize_all = "snake_case")]
|
||||
pub enum RetryAction {
|
||||
/// Payment can be retried from the client side until the payment is successful or payment expires or the attempts(configured by the merchant) for payment are exhausted
|
||||
ManualRetry,
|
||||
/// Denotes that the payment is requeued
|
||||
Requeue,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user