mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-11-01 02:57:02 +08:00
feat: multiple connector account support for the same country (#816)
Co-authored-by: Manoj Ghorela <118727120+manoj-juspay@users.noreply.github.com> Co-authored-by: Arun Raj M <jarnura47@gmail.com>
This commit is contained in:
@ -30,10 +30,18 @@ pub async fn construct_refund_router_data<'a, F>(
|
||||
creds_identifier: Option<String>,
|
||||
) -> RouterResult<types::RefundsRouterData<F>> {
|
||||
let db = &*state.store;
|
||||
|
||||
let connector_label = helpers::get_connector_label(
|
||||
payment_intent.business_country,
|
||||
&payment_intent.business_label,
|
||||
None,
|
||||
connector_id,
|
||||
);
|
||||
|
||||
let merchant_connector_account = helpers::get_merchant_connector_account(
|
||||
db,
|
||||
merchant_account.merchant_id.as_str(),
|
||||
connector_id,
|
||||
&connector_label,
|
||||
creds_identifier,
|
||||
)
|
||||
.await?;
|
||||
|
||||
Reference in New Issue
Block a user