From 55ddc8a524c84e7b0ac515837049cd259059fe04 Mon Sep 17 00:00:00 2001 From: djkato Date: Mon, 15 Jul 2024 16:03:03 +0200 Subject: [PATCH] what was this for?? --- simple-payment-gateway/src/routes/webhooks.rs | 22 +++++++++---------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/simple-payment-gateway/src/routes/webhooks.rs b/simple-payment-gateway/src/routes/webhooks.rs index 445511a..7b5bd2d 100644 --- a/simple-payment-gateway/src/routes/webhooks.rs +++ b/simple-payment-gateway/src/routes/webhooks.rs @@ -139,17 +139,17 @@ async fn create_response( // .await? // .token; - if payment_method == PaymentMethodType::COD { - match session_data.source_object { - OrderOrCheckout::Order(o) => { - o.collection_point_name; - } - OrderOrCheckout::Checkout(c) => { - c.delivery_method; - } - _ => error!("session_data.source_object is neither Order or Checkout") - } - } + // if payment_method == PaymentMethodType::COD { + // match session_data.source_object { + // OrderOrCheckout::Order(o) => { + // o.collection_point_name; + // } + // OrderOrCheckout::Checkout(c) => { + // c.delivery_method; + // } + // _ => error!("session_data.source_object is neither Order or Checkout") + // } + // } let str_payment_method = serde_json::to_string(&TransactionInitializeSessionData { payment_method })?;