-
Notifications
You must be signed in to change notification settings - Fork 4.2k
feat(connector): Add recovery support for stripebilling #7461
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(connector): Add recovery support for stripebilling #7461
Conversation
router_request_types::revenue_recovery::RevenueRecoveryRecordBackRequest, | ||
router_response_types::revenue_recovery::RevenueRecoveryRecordBackResponse, | ||
types::RevenueRecoveryRecordBackRouterData, | ||
router_flow_types::revenue_recovery::{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
router_flow_types::revenue_recovery::{ | |
router_flow_types::revenue_recovery |
@@ -71,10 +71,10 @@ pub use self::fraud_check_v2::*; | |||
pub use self::payouts::*; | |||
#[cfg(feature = "payouts")] | |||
pub use self::payouts_v2::*; | |||
pub use self::{payments::*, refunds::*}; | |||
pub use self::{payments::*, refunds::*, revenue_recovery::*}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pub use self::{payments::*, refunds::*, revenue_recovery::*}; | |
pub use self::{payments::*, refunds::*, revenue_recovery}; |
errors::api_error_response, revenue_recovery, router_data_v2::flow_common_types, | ||
router_flow_types, router_request_types::revenue_recovery as revenue_recovery_request, | ||
router_response_types::revenue_recovery as revenue_recovery_response, | ||
types::AdditionalRevenueRecoveryDetailsRouterData, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
types::AdditionalRevenueRecoveryDetailsRouterData, | |
types, |
router_response_types::revenue_recovery as revenue_recovery_response, | ||
types::AdditionalRevenueRecoveryDetailsRouterData, | ||
}; | ||
use hyperswitch_interfaces::{api::RevenueRecovery, webhooks as interface_webhooks}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use hyperswitch_interfaces::{api::RevenueRecovery, webhooks as interface_webhooks}; | |
use hyperswitch_interfaces::{api, webhooks as interface_webhooks}; |
router_flow_types::revenue_recovery::{ | ||
GetAdditionalRevenueRecoveryDetails, RecoveryRecordBack, | ||
}, | ||
router_flow_types::revenue_recovery::{BillingConnectorPaymentsSync, RecoveryRecordBack}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
router_flow_types::revenue_recovery::{BillingConnectorPaymentsSync, RecoveryRecordBack}, | |
router_flow_types::revenue_recovery, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
change for other imports too
Type of Change
Description
Context: In case of some billing connectors we dont get the enough data in the webhook itself to support creation of payment intent and payment attempt in our system. So previously we derived a flow named "AdditionalRevenuerecoveryDetails" in this PR:#7402 which name is now changed to "BillingConnectorPaymentSync". This flow is used to fetch payment details of the invoices from the billing connectors using an API call to that billing connector. In this pr we are calling the flow and getting the details which are needed to create payment intent and attempt in our system.
Additional Changes
Motivation and Context
Testing
change the profile id and other feilds while creating you own one
3. copy the mca id of stripe and paste it in the billing mca curl in feature metadata
Images of the logs:
Checklist
cargo +nightly fmt --all
cargo clippy