what was this for??

This commit is contained in:
djkato 2024-07-15 16:03:03 +02:00
parent acf75392ce
commit 55ddc8a524

View file

@ -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 })?;