mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-27 11:24:45 +08:00
feat(connector): [Airwallex] add multiple redirect support for 3DS (#811)
Co-authored-by: Narayan Bhat <narayan.bhat@juspay.in> Co-authored-by: Jagan Elavarasan <jaganelavarasan@gmail.com>
This commit is contained in:
@ -40,6 +40,7 @@ pub enum AttemptStatus {
|
||||
Failure,
|
||||
PaymentMethodAwaited,
|
||||
ConfirmationAwaited,
|
||||
DeviceDataCollectionPending,
|
||||
}
|
||||
|
||||
#[derive(
|
||||
@ -767,9 +768,10 @@ impl From<AttemptStatus> for IntentStatus {
|
||||
AttemptStatus::PaymentMethodAwaited => Self::RequiresPaymentMethod,
|
||||
|
||||
AttemptStatus::Authorized => Self::RequiresCapture,
|
||||
AttemptStatus::AuthenticationPending => Self::RequiresCustomerAction,
|
||||
AttemptStatus::AuthenticationPending | AttemptStatus::DeviceDataCollectionPending => {
|
||||
Self::RequiresCustomerAction
|
||||
}
|
||||
AttemptStatus::Unresolved => Self::RequiresMerchantAction,
|
||||
|
||||
AttemptStatus::PartialCharged
|
||||
| AttemptStatus::Started
|
||||
| AttemptStatus::AuthenticationSuccessful
|
||||
|
||||
@ -1222,6 +1222,8 @@ pub struct Metadata {
|
||||
#[schema(value_type = Object, example = r#"{ "city": "NY", "unit": "245" }"#)]
|
||||
#[serde(flatten)]
|
||||
pub data: pii::SecretSerdeValue,
|
||||
/// Payload coming in request as a metadata field
|
||||
pub payload: Option<pii::SecretSerdeValue>,
|
||||
}
|
||||
|
||||
#[derive(Debug, serde::Deserialize, serde::Serialize, Clone, ToSchema)]
|
||||
|
||||
Reference in New Issue
Block a user