mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-11-02 12:06:56 +08:00
fix(mandates): handle the connector_mandate creation once and only if the payment is charged (#6327)
This commit is contained in:
@ -259,13 +259,13 @@ async fn incoming_webhooks_core<W: types::OutgoingWebhookType>(
|
||||
let merchant_connector_account = match merchant_connector_account {
|
||||
Some(merchant_connector_account) => merchant_connector_account,
|
||||
None => {
|
||||
helper_utils::get_mca_from_object_reference_id(
|
||||
Box::pin(helper_utils::get_mca_from_object_reference_id(
|
||||
&state,
|
||||
object_ref_id.clone(),
|
||||
&merchant_account,
|
||||
&connector_name,
|
||||
&key_store,
|
||||
)
|
||||
))
|
||||
.await?
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user