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
fix(connector): [Bluesnap] fix expiry year (#1426)
Prasunna Soppa92c822257e37
diff --git a/crates/router/src/connector/bluesnap/transformers.rs b/crates/router/src/connector/bluesnap/transformers.rsindex edc72b0822..2eb438d05f 100644--- a/crates/router/src/connector/bluesnap/transformers.rs+++ b/crates/router/src/connector/bluesnap/transformers.rs@@ -11,7 +11,7 @@ use serde::{Deserialize, Serialize};use crate::{connector::utils::{- self, AddressDetailsData, ApplePay, PaymentsAuthorizeRequestData, RouterData,+ self, AddressDetailsData, ApplePay, CardData, PaymentsAuthorizeRequestData, RouterData,},consts,core::errors,@@ -162,12 +162,12 @@ impl TryFrom<&types::PaymentsAuthorizeRouterData> for BluesnapPaymentsRequest {_ => BluesnapTxnType::AuthCapture,};let (payment_method, card_holder_info) = match item.request.payment_method_data.clone() {- api::PaymentMethodData::Card(ccard) => Ok((+ api::PaymentMethodData::Card(ref ccard) => Ok((PaymentMethodDetails::CreditCard(Card {- card_number: ccard.card_number,+ card_number: ccard.card_number.clone(),expiration_month: ccard.card_exp_month.clone(),- expiration_year: ccard.card_exp_year.clone(),- security_code: ccard.card_cvc,+ expiration_year: ccard.get_expiry_year_4_digit(),+ security_code: ccard.card_cvc.clone(),}),get_card_holder_info(item)?,)),