Skip to content

Commit

Permalink
chore: Resolved Supported Payment Methods for Deutschebank
Browse files Browse the repository at this point in the history
  • Loading branch information
Debarshi Gupta authored and Debarshi Gupta committed Dec 27, 2024
1 parent b7d5a81 commit e1198bc
Showing 1 changed file with 23 additions and 3 deletions.
26 changes: 23 additions & 3 deletions crates/hyperswitch_connectors/src/connectors/deutschebank.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use std::time::SystemTime;

use actix_web::http::header::Date;
use base64::Engine;
use common_enums::{enums, PaymentMethod};
use common_enums::enums;
use common_utils::{
errors::CustomResult,
ext_traits::BytesExt,
Expand Down Expand Up @@ -462,7 +462,7 @@ impl ConnectorIntegration<CompleteAuthorize, CompleteAuthorizeData, PaymentsResp
"preauthorization"
};

if req.is_three_ds() && matches!(req.payment_method, PaymentMethod::Card) {
if req.is_three_ds() && matches!(req.payment_method, enums::PaymentMethod::Card) {
Ok(format!(
"{}/services/v2.1//headless3DSecure/event/{event_id}/final",
self.base_url(connectors)
Expand Down Expand Up @@ -986,7 +986,27 @@ lazy_static! {
PaymentMethodDetails{
mandates: enums::FeatureStatus::NotSupported,
refunds: enums::FeatureStatus::NotSupported,
supported_capture_methods,
supported_capture_methods: supported_capture_methods.clone(),
}
);

deutschebank_supported_payment_methods.add(
enums::PaymentMethod::Card,
enums::PaymentMethodType::Credit,
PaymentMethodDetails{
mandates: enums::FeatureStatus::NotSupported,
refunds: enums::FeatureStatus::Supported,
supported_capture_methods: supported_capture_methods.clone(),
}
);

deutschebank_supported_payment_methods.add(
enums::PaymentMethod::Card,
enums::PaymentMethodType::Debit,
PaymentMethodDetails{
mandates: enums::FeatureStatus::NotSupported,
refunds: enums::FeatureStatus::Supported,
supported_capture_methods: supported_capture_methods.clone(),
}
);

Expand Down

0 comments on commit e1198bc

Please sign in to comment.