feat(core): implemented platform merchant account (#6882)

Co-authored-by: Narayanbhat166 <narayan.bhat@juspay.in>
This commit is contained in:
Rachit Naithani
2024-12-23 18:23:22 +05:30
committed by GitHub
parent d4b3dbc155
commit 95fcf2a44b
64 changed files with 595 additions and 16 deletions

View File

@ -617,6 +617,7 @@ async fn payments_incoming_webhook_flow(
consume_or_trigger_flow.clone(),
None,
HeaderPayload::default(),
None, //Platform merchant account
))
.await;
// When mandate details are present in successful webhooks, and consuming webhooks are skipped during payment sync if the payment status is already updated to charged, this function is used to update the connector mandate details.
@ -1159,6 +1160,7 @@ async fn external_authentication_incoming_webhook_flow(
payments::CallConnectorAction::Trigger,
None,
HeaderPayload::with_source(enums::PaymentSource::ExternalAuthenticator),
None, // Platform merchant account
))
.await?;
match payments_response {
@ -1356,6 +1358,7 @@ async fn frm_incoming_webhook_flow(
payments::CallConnectorAction::Trigger,
None,
HeaderPayload::default(),
None, // Platform merchant account
))
.await?
}
@ -1385,6 +1388,7 @@ async fn frm_incoming_webhook_flow(
payments::CallConnectorAction::Trigger,
None,
HeaderPayload::default(),
None, // Platform merchant account
))
.await?
}
@ -1543,6 +1547,7 @@ async fn bank_transfer_webhook_flow(
payments::CallConnectorAction::Trigger,
None,
HeaderPayload::with_source(common_enums::PaymentSource::Webhook),
None, //Platform merchant account
))
.await
} else {