feat(router): add card testing check in payments eligibility flow (#9876)

Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
This commit is contained in:
Sai Harsha Vardhan
2025-10-17 13:56:41 +05:30
committed by GitHub
parent 247bce518f
commit 01cb658696
7 changed files with 243 additions and 53 deletions

View File

@ -9352,6 +9352,7 @@ pub struct ClickToPaySessionResponse {
pub dpa_client_id: Option<String>,
}
#[cfg(feature = "v1")]
#[derive(Debug, serde::Deserialize, Clone, ToSchema)]
pub struct PaymentsEligibilityRequest {
/// The identifier for the payment
@ -9369,6 +9370,9 @@ pub struct PaymentsEligibilityRequest {
pub payment_method_subtype: Option<api_enums::PaymentMethodType>,
/// The payment instrument data to be used for the payment
pub payment_method_data: PaymentMethodDataRequest,
/// The browser information for the payment
#[schema(value_type = Option<BrowserInformation>)]
pub browser_info: Option<BrowserInformation>,
}
#[derive(Debug, serde::Serialize, Clone, ToSchema)]