mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-11-02 04:04:43 +08:00
refactor(connector): added default case for Opayo (#2687)
This commit is contained in:
@ -2,7 +2,7 @@ use masking::Secret;
|
|||||||
use serde::{Deserialize, Serialize};
|
use serde::{Deserialize, Serialize};
|
||||||
|
|
||||||
use crate::{
|
use crate::{
|
||||||
connector::utils::PaymentsAuthorizeRequestData,
|
connector::utils::{self, PaymentsAuthorizeRequestData},
|
||||||
core::errors,
|
core::errors,
|
||||||
types::{self, api, storage::enums},
|
types::{self, api, storage::enums},
|
||||||
};
|
};
|
||||||
@ -41,7 +41,21 @@ impl TryFrom<&types::PaymentsAuthorizeRouterData> for OpayoPaymentsRequest {
|
|||||||
card,
|
card,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
_ => Err(errors::ConnectorError::NotImplemented("Payment methods".to_string()).into()),
|
api::PaymentMethodData::CardRedirect(_)
|
||||||
|
| api::PaymentMethodData::Wallet(_)
|
||||||
|
| api::PaymentMethodData::PayLater(_)
|
||||||
|
| api::PaymentMethodData::BankRedirect(_)
|
||||||
|
| api::PaymentMethodData::BankDebit(_)
|
||||||
|
| api::PaymentMethodData::BankTransfer(_)
|
||||||
|
| api::PaymentMethodData::Crypto(_)
|
||||||
|
| api::PaymentMethodData::MandatePayment
|
||||||
|
| api::PaymentMethodData::Reward
|
||||||
|
| api::PaymentMethodData::Upi(_)
|
||||||
|
| api::PaymentMethodData::Voucher(_)
|
||||||
|
| api::PaymentMethodData::GiftCard(_) => Err(errors::ConnectorError::NotImplemented(
|
||||||
|
utils::get_unimplemented_payment_method_error_message("Opayo"),
|
||||||
|
)
|
||||||
|
.into()),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user