File | Status |
---|---|
88 | storage_errors::RecoveryError::BillingMerchantConnectorAccountIdNotFound.into(), | ||
89 | ))?; | ||
90 | |||
91 | let billing_mca = store | ||
92 | .find_merchant_connector_account_by_id( | ||
93 | key_manager_state, | ||
94 | &billing_merchant_connector_account_id, | ||
95 | &pcr_data.key_store, | ||
96 | ) | ||
97 | .await?; |
Note : We cannot avoid db call here since we need connector creds to make record back. Get MCA will not give api keys to call connector.
50 | 51 | + api::ConnectorMandateRevokeV2 | |
51 | 52 | + api::authentication_v2::ExternalAuthenticationV2 | |
52 | + api::UnifiedAuthenticationServiceV2, | ||
53 | + api::UnifiedAuthenticationServiceV2 | ||
54 | + api::revenue_recovery_v2::RevenueRecoveryV2, |
+ api::revenue_recovery_v2::RevenueRecoveryV2, | |
+ api::revenue_recovery::RevenueRecovery, |
Take this up in next pr
200 | billing_mca: &merchant_connector_account::MerchantConnectorAccount, | ||
176 | 201 | ) -> Result<(), errors::ProcessTrackerError> { | |
177 | let db = &*state.store; | ||
202 | let db: &dyn StorageInterface = &*state.store; |
nit: Can you remove this
Login to write a write a comment.
Type of Change
Description
What is record back flow ?
After payment is retried by revenue recovery by PCR workflow, We need to update the billing processor(update the invoce or record the attempt).This PR invokes record back functionality in process tracker flow for Terminal status.
Note: Adding support for retrying failed outgoing recordback webhooks is still pending attached in this issues.
Additional Changes
Motivation and Context
How did you test it?
Can be tested once this PR is merged #7614
Checklist
cargo +nightly fmt --all
cargo clippy