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): Expiration Year Incorrectly Populated as YYYY Format in Paybox Mandates (#6474)
awasthi21e457ccd91e60
diff --git a/crates/router/src/connector/paybox/transformers.rs b/crates/router/src/connector/paybox/transformers.rsindex 4b9c25f6db..4e1270f419 100644--- a/crates/router/src/connector/paybox/transformers.rs+++ b/crates/router/src/connector/paybox/transformers.rs@@ -1224,14 +1224,12 @@ fn get_card_expiry_month_year_2_digit(card_exp_month: Secret<String>,card_exp_year: Secret<String>,) -> Result<Secret<String>, errors::ConnectorError> {- let year_2_digit = card_exp_year- .peek()- .get(..2)- .ok_or(errors::ConnectorError::RequestEncodingFailed)?- .to_string();Ok(Secret::new(format!("{}{}",card_exp_month.peek(),- year_2_digit+ card_exp_year+ .peek()+ .get(card_exp_year.peek().len() - 2..)+ .ok_or(errors::ConnectorError::RequestEncodingFailed)?)))}