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(connectors): change expiry_month to expiry_year for conversion utils (#9871)
Sakil Mostak08b3c18eac37
diff --git a/crates/hyperswitch_connectors/src/utils.rs b/crates/hyperswitch_connectors/src/utils.rsindex ad814b3a3b..ef971c571e 100644--- a/crates/hyperswitch_connectors/src/utils.rs+++ b/crates/hyperswitch_connectors/src/utils.rs@@ -1358,7 +1358,7 @@ impl CardData for CardDetailsForNetworkTransactionId {#[cfg(feature = "payouts")]impl CardData for api_models::payouts::ApplePayDecrypt {fn get_card_expiry_year_2_digit(&self) -> Result<Secret<String>, errors::ConnectorError> {- let binding = self.expiry_month.clone();+ let binding = self.expiry_year.clone();let year = binding.peek();Ok(Secret::new(year.get(year.len() - 2..)