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): [Bluesnap] Remove wallet call (#1620)
Sangamesh Kulkarniec35d55da69e
diff --git a/crates/router/src/connector/bluesnap.rs b/crates/router/src/connector/bluesnap.rsindex 1553e5b746..fadb25e3b7 100644--- a/crates/router/src/connector/bluesnap.rs+++ b/crates/router/src/connector/bluesnap.rs@@ -499,6 +499,7 @@ impl ConnectorIntegration<api::Capture, types::PaymentsCaptureData, types::Payme}}+// This session code is not usedimpl api::PaymentSession for Bluesnap {}impl ConnectorIntegration<api::Session, types::PaymentsSessionData, types::PaymentsResponseData>diff --git a/crates/router/src/core/payments/operations/payment_session.rs b/crates/router/src/core/payments/operations/payment_session.rsindex 0110e84f98..7812a3ed2f 100644--- a/crates/router/src/core/payments/operations/payment_session.rs+++ b/crates/router/src/core/payments/operations/payment_session.rs@@ -388,8 +388,7 @@ wherefor (connector, payment_method_type, business_sub_label) inconnector_and_supporting_payment_method_type{- let connector_type =- get_connector_type_for_session_token(payment_method_type, request, &connector);+ let connector_type = api::GetToken::from(payment_method_type);if let Ok(connector_data) =api::ConnectorData::get_connector_by_name(connectors, &connector, connector_type).map_err(|err| {@@ -420,27 +419,3 @@ impl From<api_models::enums::PaymentMethodType> for api::GetToken {}}}--pub fn get_connector_type_for_session_token(- payment_method_type: api_models::enums::PaymentMethodType,- request: &api::PaymentsSessionRequest,- connector: &str,-) -> api::GetToken {- if payment_method_type == api_models::enums::PaymentMethodType::ApplePay {- if is_apple_pay_get_token_connector(connector, request) {- api::GetToken::Connector- } else {- api::GetToken::ApplePayMetadata- }- } else {- api::GetToken::from(payment_method_type)- }-}--pub fn is_apple_pay_get_token_connector(- connector: &str,- _request: &api::PaymentsSessionRequest,-) -> bool {- // Add connectors here, which all are required to hit connector for session call- matches!(connector, "bluesnap")-}