Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(payments_v2): implement payments capture v2 #6722

Merged
merged 16 commits into from
Dec 20, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Merge branch 'main' into payments_capture_v2
Narayanbhat166 committed Dec 2, 2024
commit 8874a1d450555a04119f4b975132c01956ed3fd7
3 changes: 2 additions & 1 deletion crates/router/src/core/payments/transformers.rs
Original file line number Diff line number Diff line change
@@ -538,6 +538,7 @@ pub async fn construct_payment_router_data_for_capture<'a>(
additional_merchant_data: None,
header_payload,
connector_mandate_request_reference_id,
psd2_sca_exemption_type: None,
};

Ok(router_data)
@@ -681,7 +682,7 @@ pub async fn construct_router_data_for_psync<'a>(
#[allow(clippy::too_many_arguments)]
pub async fn construct_payment_router_data_for_sdk_session<'a>(
_state: &'a SessionState,
payment_data: PaymentIntentData<api::Session>,
payment_data: hyperswitch_domain_models::payments::PaymentIntentData<api::Session>,
connector_id: &str,
merchant_account: &domain::MerchantAccount,
_key_store: &domain::MerchantKeyStore,

Unchanged files with check annotations Beta

&self,
_payment_data: &payments::PaymentConfirmData<router_flow_types::Authorize>,
) -> common_enums::AttemptStatus {
// For this step, consider whatever status was given by the connector moudle

Check warning on line 569 in crates/hyperswitch_domain_models/src/router_data.rs

GitHub Actions / Spell check

"moudle" should be "module".
// We do not need to check for amount captured or amount capturable here because we are authorizing the whole amount
self.status
}
You are viewing a condensed version of this merge commit. You can view the full changes here.