mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-11-01 11:06:50 +08:00
fix(connector): [Airwallex] convert expiry year to four digit (#2527)
This commit is contained in:
@ -6,7 +6,7 @@ use url::Url;
|
||||
use uuid::Uuid;
|
||||
|
||||
use crate::{
|
||||
connector::utils,
|
||||
connector::utils::{self, CardData},
|
||||
core::errors,
|
||||
pii::Secret,
|
||||
services,
|
||||
@ -140,9 +140,9 @@ impl TryFrom<&types::PaymentsAuthorizeRouterData> for AirwallexPaymentsRequest {
|
||||
}));
|
||||
Ok(AirwallexPaymentMethod::Card(AirwallexCard {
|
||||
card: AirwallexCardDetails {
|
||||
number: ccard.card_number,
|
||||
number: ccard.card_number.clone(),
|
||||
expiry_month: ccard.card_exp_month.clone(),
|
||||
expiry_year: ccard.card_exp_year.clone(),
|
||||
expiry_year: ccard.get_expiry_year_4_digit(),
|
||||
cvc: ccard.card_cvc,
|
||||
},
|
||||
payment_method_type: AirwallexPaymentType::Card,
|
||||
|
||||
Reference in New Issue
Block a user