feat(core): accept payment_confirm_source header in capture call and store in payment_intent (#2116)

This commit is contained in:
Hrithikesh
2023-09-11 12:12:28 +05:30
committed by GitHub
parent 28b102de24
commit 2f272d2962
35 changed files with 207 additions and 21 deletions

View File

@ -1,6 +1,7 @@
pub mod types;
pub mod utils;
use api_models::payments::HeaderPayload;
use common_utils::errors::ReportSwitchExt;
use error_stack::{report, IntoReport, ResultExt};
use masking::ExposeInterface;
@ -62,6 +63,7 @@ pub async fn payments_incoming_webhook_flow<W: types::OutgoingWebhookType>(
},
services::AuthFlow::Merchant,
consume_or_trigger_flow,
HeaderPayload::default(),
)
.await;
@ -438,6 +440,7 @@ async fn bank_transfer_webhook_flow<W: types::OutgoingWebhookType>(
request,
services::api::AuthFlow::Merchant,
payments::CallConnectorAction::Trigger,
HeaderPayload::default(),
)
.await
} else {