mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-11-02 12:06:56 +08:00
fix(refund_sync): add validation for missing connector_refund_id (#1013)
This commit is contained in:
@ -292,6 +292,7 @@ pub trait RefundsRequestData {
|
||||
}
|
||||
|
||||
impl RefundsRequestData for types::RefundsData {
|
||||
#[track_caller]
|
||||
fn get_connector_refund_id(&self) -> Result<String, Error> {
|
||||
self.connector_refund_id
|
||||
.clone()
|
||||
@ -373,6 +374,7 @@ impl CardData for api::Card {
|
||||
}
|
||||
}
|
||||
|
||||
#[track_caller]
|
||||
fn get_card_issuer(card_number: &str) -> Result<CardIssuer, Error> {
|
||||
for (k, v) in CARD_REGEX.iter() {
|
||||
let regex: Regex = v
|
||||
|
||||
Reference in New Issue
Block a user