Skip to content

Commit

Permalink
minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Chikke Srujan authored and Chikke Srujan committed Nov 11, 2024
1 parent 1dcabec commit d586010
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
1 change: 0 additions & 1 deletion crates/diesel_models/src/payment_attempt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -630,7 +630,6 @@ pub enum PaymentAttemptUpdate {
// },
// PaymentMethodDetailsUpdate {
// payment_method_id: Option<String>,
// connector_mandate_detail: Option<ConnectorMandateReferenceId>,
// updated_by: String,
// },
// ConnectorMandateDetailUpdate {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,7 @@ impl TryFrom<&FiuuRouterData<&PaymentsAuthorizeRouterData>> for FiuuPaymentReque
true => TxnType::Sals,
false => TxnType::Auts,
};
let return_url = item.router_data.request.router_return_url.clone();
let return_url = Some("https://www.google.com/".to_string());
let non_3ds = match item.router_data.is_three_ds() {
false => 1,
true => 0,
Expand Down
4 changes: 2 additions & 2 deletions crates/router/src/core/payments/helpers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1239,8 +1239,8 @@ pub fn create_webhook_url(
connector_name: impl std::fmt::Display,
) -> String {
format!(
"{}/webhooks/{}/{}",
router_base_url,
"https://bc33-2409-40f2-40-949-d8b3-4d62-aab9-41da.ngrok-free.app/webhooks/{}/{}",
// router_base_url,
merchant_id.get_string_repr(),
connector_name
)
Expand Down
2 changes: 1 addition & 1 deletion crates/router/src/core/webhooks/incoming.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1768,7 +1768,7 @@ async fn update_connector_mandate_details(
.await
.to_not_found_response(errors::ApiErrorResponse::PaymentMethodNotFound)?;

if payment_method_info.connector_mandate_details.is_some() {
if payment_method_info.connector_mandate_details.is_none() {
let updated_connector_mandate_details = prepare_updated_connector_mandate_details(
&payment_attempt,
&connector_mandate_details,
Expand Down

0 comments on commit d586010

Please sign in to comment.