Open source, composable payments platform | PCI compliant | SaaS and Self-host options | Enables connectivity to multiple payment, payout, fraud, vault and tokenization providers | Uplifts authorization with intelligent routing and revenue recovery | Reduce payment processing costs with cost observability | Reduces payment ops with reconciliation
Rust adyenbeginner-friendlyfeaturedfinancefintechhacktoberfesthigh-performanceopen-sourceorchestrationpaymentpayment-gatewaypayment-integrationpayment-processingpaymentspayments-platformrestful-apirustsdkstripeworks-with-react
feat(connector): enable order create for nordea (#10945)
Hrithikeshfe5753f522dd
diff --git a/config/development.toml b/config/development.tomlindex 02d6670b29..36b44f7763 100644--- a/config/development.toml+++ b/config/development.toml@@ -40,7 +40,7 @@ connection_timeout = 10[preprocessing_flow_config]authentication_bloated_connectors = "paypal,nmi,cybersource,barclaycard,shift4"-order_create_bloated_connectors = "trustpay,payme"+order_create_bloated_connectors = "trustpay,payme,nordea"balance_check_bloated_connectors = "adyen"settlement_split_bloated_connectors = "xendit"diff --git a/crates/hyperswitch_connectors/src/connectors/nordea.rs b/crates/hyperswitch_connectors/src/connectors/nordea.rsindex cbaa7a1c8d..a5efceb8e1 100644--- a/crates/hyperswitch_connectors/src/connectors/nordea.rs+++ b/crates/hyperswitch_connectors/src/connectors/nordea.rs@@ -13,6 +13,7 @@ use common_utils::{};use error_stack::{report, ResultExt};use hyperswitch_domain_models::{+ payment_method_data,router_data::{AccessToken, AccessTokenAuthenticationResponse, ErrorResponse, RouterData},router_flow_types::{access_token_auth::AccessTokenAuth,@@ -1260,6 +1261,19 @@ lazy_static! {}impl ConnectorSpecifications for Nordea {+ fn is_order_create_flow_required(&self, current_flow: api::CurrentFlowInfo<'_>) -> bool {+ match current_flow {+ api::CurrentFlowInfo::Authorize {+ auth_type: _,+ request_data,+ } => matches!(+ &request_data.payment_method_data,+ payment_method_data::PaymentMethodData::BankDebit(_)+ ),+ api::CurrentFlowInfo::CompleteAuthorize { .. } => false,+ api::CurrentFlowInfo::SetupMandate { .. } => false,+ }+ }fn get_connector_about(&self) -> Option<&'static ConnectorInfo> {Some(&*NORDEA_CONNECTOR_INFO)}