mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-29 17:19:15 +08:00
feat(core): accept payment_confirm_source header in capture call and store in payment_intent (#2116)
This commit is contained in:
@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user