fix(connector): Connector Feature Matrix Bugfix (#8047)

This commit is contained in:
Sagnik Mitra
2025-05-22 15:37:52 +05:30
committed by GitHub
parent fa4b552a32
commit 8b0fd048ab
8 changed files with 12 additions and 68 deletions

View File

@ -977,24 +977,6 @@ merchant_secret="Source verification key"
payment_method_type = "CartesBancaires"
[[bluesnap.credit]]
payment_method_type = "UnionPay"
[[bluesnap.debit]]
payment_method_type = "Mastercard"
[[bluesnap.debit]]
payment_method_type = "Visa"
[[bluesnap.debit]]
payment_method_type = "Interac"
[[bluesnap.debit]]
payment_method_type = "AmericanExpress"
[[bluesnap.debit]]
payment_method_type = "JCB"
[[bluesnap.debit]]
payment_method_type = "DinersClub"
[[bluesnap.debit]]
payment_method_type = "Discover"
[[bluesnap.debit]]
payment_method_type = "CartesBancaires"
[[bluesnap.debit]]
payment_method_type = "UnionPay"
[[bluesnap.wallet]]
payment_method_type = "google_pay"
[[bluesnap.wallet]]

View File

@ -494,24 +494,6 @@ merchant_secret="Source verification key"
payment_method_type = "CartesBancaires"
[[bluesnap.credit]]
payment_method_type = "UnionPay"
[[bluesnap.debit]]
payment_method_type = "Mastercard"
[[bluesnap.debit]]
payment_method_type = "Visa"
[[bluesnap.debit]]
payment_method_type = "Interac"
[[bluesnap.debit]]
payment_method_type = "AmericanExpress"
[[bluesnap.debit]]
payment_method_type = "JCB"
[[bluesnap.debit]]
payment_method_type = "DinersClub"
[[bluesnap.debit]]
payment_method_type = "Discover"
[[bluesnap.debit]]
payment_method_type = "CartesBancaires"
[[bluesnap.debit]]
payment_method_type = "UnionPay"
[[bluesnap.wallet]]
payment_method_type = "google_pay"
[[bluesnap.wallet]]

View File

@ -977,24 +977,6 @@ merchant_secret="Source verification key"
payment_method_type = "CartesBancaires"
[[bluesnap.credit]]
payment_method_type = "UnionPay"
[[bluesnap.debit]]
payment_method_type = "Mastercard"
[[bluesnap.debit]]
payment_method_type = "Visa"
[[bluesnap.debit]]
payment_method_type = "Interac"
[[bluesnap.debit]]
payment_method_type = "AmericanExpress"
[[bluesnap.debit]]
payment_method_type = "JCB"
[[bluesnap.debit]]
payment_method_type = "DinersClub"
[[bluesnap.debit]]
payment_method_type = "Discover"
[[bluesnap.debit]]
payment_method_type = "CartesBancaires"
[[bluesnap.debit]]
payment_method_type = "UnionPay"
[[bluesnap.wallet]]
payment_method_type = "google_pay"
[[bluesnap.wallet]]

View File

@ -1450,7 +1450,7 @@ static BLUESNAP_SUPPORTED_PAYMENT_METHODS: LazyLock<SupportedPaymentMethods> =
api_models::feature_matrix::PaymentMethodSpecificFeatures::Card({
api_models::feature_matrix::CardSpecificFeatures {
three_ds: common_enums::FeatureStatus::Supported,
no_three_ds: common_enums::FeatureStatus::NotSupported,
no_three_ds: common_enums::FeatureStatus::Supported,
supported_card_networks: supported_card_network.clone(),
}
}),

View File

@ -814,6 +814,7 @@ static FISERV_SUPPORTED_PAYMENT_METHODS: LazyLock<SupportedPaymentMethods> = Laz
let supported_capture_methods = vec![
enums::CaptureMethod::Automatic,
enums::CaptureMethod::SequentialAutomatic,
enums::CaptureMethod::Manual,
];
let supported_card_network = vec![
@ -839,7 +840,7 @@ static FISERV_SUPPORTED_PAYMENT_METHODS: LazyLock<SupportedPaymentMethods> = Laz
api_models::feature_matrix::PaymentMethodSpecificFeatures::Card({
api_models::feature_matrix::CardSpecificFeatures {
three_ds: common_enums::FeatureStatus::NotSupported,
no_three_ds: common_enums::FeatureStatus::NotSupported,
no_three_ds: common_enums::FeatureStatus::Supported,
supported_card_networks: supported_card_network.clone(),
}
}),
@ -858,7 +859,7 @@ static FISERV_SUPPORTED_PAYMENT_METHODS: LazyLock<SupportedPaymentMethods> = Laz
api_models::feature_matrix::PaymentMethodSpecificFeatures::Card({
api_models::feature_matrix::CardSpecificFeatures {
three_ds: common_enums::FeatureStatus::NotSupported,
no_three_ds: common_enums::FeatureStatus::NotSupported,
no_three_ds: common_enums::FeatureStatus::Supported,
supported_card_networks: supported_card_network.clone(),
}
}),

View File

@ -718,7 +718,7 @@ impl webhooks::IncomingWebhook for Inespay {
}
static INESPAY_SUPPORTED_PAYMENT_METHODS: LazyLock<SupportedPaymentMethods> = LazyLock::new(|| {
let supported_capture_methods = Vec::new();
let supported_capture_methods = vec![enums::CaptureMethod::Automatic];
let mut inespay_supported_payment_methods = SupportedPaymentMethods::new();
inespay_supported_payment_methods.add(

View File

@ -953,7 +953,7 @@ lazy_static! {
connector_type: enums::PaymentConnectorCategory::PaymentGateway,
};
static ref SHIFT4_SUPPORTED_WEBHOOK_FLOWS: Vec<enums::EventClass> = vec![enums::EventClass::Payments];
static ref SHIFT4_SUPPORTED_WEBHOOK_FLOWS: Vec<enums::EventClass> = vec![enums::EventClass::Payments, enums::EventClass::Refunds];
}

View File

@ -966,8 +966,8 @@ static STAX_SUPPORTED_PAYMENT_METHODS: LazyLock<SupportedPaymentMethods> = LazyL
specific_features: Some(
api_models::feature_matrix::PaymentMethodSpecificFeatures::Card({
api_models::feature_matrix::CardSpecificFeatures {
three_ds: common_enums::FeatureStatus::Supported,
no_three_ds: common_enums::FeatureStatus::NotSupported,
three_ds: common_enums::FeatureStatus::NotSupported,
no_three_ds: common_enums::FeatureStatus::Supported,
supported_card_networks: supported_card_network.clone(),
}
}),
@ -985,8 +985,8 @@ static STAX_SUPPORTED_PAYMENT_METHODS: LazyLock<SupportedPaymentMethods> = LazyL
specific_features: Some(
api_models::feature_matrix::PaymentMethodSpecificFeatures::Card({
api_models::feature_matrix::CardSpecificFeatures {
three_ds: common_enums::FeatureStatus::Supported,
no_three_ds: common_enums::FeatureStatus::NotSupported,
three_ds: common_enums::FeatureStatus::NotSupported,
no_three_ds: common_enums::FeatureStatus::Supported,
supported_card_networks: supported_card_network.clone(),
}
}),
@ -1004,11 +1004,8 @@ static STAX_CONNECTOR_INFO: ConnectorInfo = ConnectorInfo {
connector_type: enums::PaymentConnectorCategory::PaymentGateway,
};
static STAX_SUPPORTED_WEBHOOK_FLOWS: [enums::EventClass; 3] = [
enums::EventClass::Payments,
enums::EventClass::Refunds,
enums::EventClass::Disputes,
];
static STAX_SUPPORTED_WEBHOOK_FLOWS: [enums::EventClass; 2] =
[enums::EventClass::Payments, enums::EventClass::Refunds];
impl ConnectorSpecifications for Stax {
fn get_connector_about(&self) -> Option<&'static ConnectorInfo> {