Skip to content

Commit

Permalink
fix/router_return_url name
Browse files Browse the repository at this point in the history
  • Loading branch information
awasthi21 committed Dec 27, 2024
1 parent 1ec7b93 commit 616296f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
5 changes: 2 additions & 3 deletions crates/hyperswitch_connectors/src/connectors/cybersource.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ use error_stack::{report, Report, ResultExt};
#[cfg(feature = "payouts")]
use hyperswitch_domain_models::{
router_flow_types::payouts::PoFulfill,
router_response_types::PayoutsResponseData,
types::{PayoutsData, PayoutsRouterData},
};
#[cfg(feature = "payouts")]
Expand All @@ -39,9 +40,7 @@ use hyperswitch_domain_models::{
PaymentsCaptureData, PaymentsIncrementalAuthorizationData, PaymentsPreProcessingData,
PaymentsSessionData, PaymentsSyncData, RefundsData, SetupMandateRequestData,
},
router_response_types::{
MandateRevokeResponseData, PaymentsResponseData, PayoutsResponseData, RefundsResponseData,
},
router_response_types::{MandateRevokeResponseData, PaymentsResponseData, RefundsResponseData},
types::{
MandateRevokeRouterData, PaymentsAuthorizeRouterData, PaymentsCancelRouterData,
PaymentsCaptureRouterData, PaymentsCompleteAuthorizeRouterData,
Expand Down
4 changes: 2 additions & 2 deletions crates/hyperswitch_connectors/src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1751,7 +1751,7 @@ pub trait PaymentsPreProcessingRequestData {
fn is_auto_capture(&self) -> Result<bool, Error>;
fn get_order_details(&self) -> Result<Vec<OrderDetailsWithAmount>, Error>;
fn get_webhook_url(&self) -> Result<String, Error>;
fn get_return_url(&self) -> Result<String, Error>;
fn get_router_return_url(&self) -> Result<String, Error>;
fn get_browser_info(&self) -> Result<BrowserInformation, Error>;
fn get_complete_authorize_url(&self) -> Result<String, Error>;
fn connector_mandate_id(&self) -> Option<String>;
Expand Down Expand Up @@ -1798,7 +1798,7 @@ impl PaymentsPreProcessingRequestData for PaymentsPreProcessingData {
.clone()
.ok_or_else(missing_field_err("webhook_url"))
}
fn get_return_url(&self) -> Result<String, Error> {
fn get_router_return_url(&self) -> Result<String, Error> {
self.router_return_url
.clone()
.ok_or_else(missing_field_err("return_url"))
Expand Down

0 comments on commit 616296f

Please sign in to comment.