mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-28 12:15:40 +08:00
fix(payment_methods): fix merchant payment method list to retain a mca based on connector_name and mca_id (#6408)
This commit is contained in:
@ -1217,12 +1217,14 @@ pub struct ResponsePaymentMethodIntermediate {
|
||||
pub card_networks: Option<Vec<api_enums::CardNetwork>>,
|
||||
pub payment_method: api_enums::PaymentMethod,
|
||||
pub connector: String,
|
||||
pub merchant_connector_id: String,
|
||||
}
|
||||
|
||||
impl ResponsePaymentMethodIntermediate {
|
||||
pub fn new(
|
||||
pm_type: RequestPaymentMethodTypes,
|
||||
connector: String,
|
||||
merchant_connector_id: String,
|
||||
pm: api_enums::PaymentMethod,
|
||||
) -> Self {
|
||||
Self {
|
||||
@ -1231,6 +1233,7 @@ impl ResponsePaymentMethodIntermediate {
|
||||
card_networks: pm_type.card_networks,
|
||||
payment_method: pm,
|
||||
connector,
|
||||
merchant_connector_id,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user