Skip to content

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

fix(ucs): map AliPay HK redirect wallet in payment requests (#15308)

Aniket Burman7736d55adaf2
diff --git a/crates/router/src/core/unified_connector_service.rs b/crates/router/src/core/unified_connector_service.rs
index 2728ef348a..d2719354e1 100644
--- a/crates/router/src/core/unified_connector_service.rs
+++ b/crates/router/src/core/unified_connector_service.rs
@@ -2737,6 +2737,13 @@ pub fn build_unified_connector_service_payment_method(
payments_grpc::AliPayRedirectWallet { }
)),
}),
+ hyperswitch_domain_models::payment_method_data::WalletData::AliPayHkRedirect(
+ _,
+ ) => Ok(payments_grpc::PaymentMethod {
+ payment_method: Some(PaymentMethod::AliPayHkRedirect(
+ payments_grpc::AliPayHkRedirectWallet { }
+ )),
+ }),
hyperswitch_domain_models::payment_method_data::WalletData::RevolutPay(
_,
) => Ok(payments_grpc::PaymentMethod {