what was this for??
This commit is contained in:
parent
acf75392ce
commit
55ddc8a524
1 changed files with 11 additions and 11 deletions
|
@ -139,17 +139,17 @@ async fn create_response(
|
||||||
// .await?
|
// .await?
|
||||||
// .token;
|
// .token;
|
||||||
|
|
||||||
if payment_method == PaymentMethodType::COD {
|
// if payment_method == PaymentMethodType::COD {
|
||||||
match session_data.source_object {
|
// match session_data.source_object {
|
||||||
OrderOrCheckout::Order(o) => {
|
// OrderOrCheckout::Order(o) => {
|
||||||
o.collection_point_name;
|
// o.collection_point_name;
|
||||||
}
|
// }
|
||||||
OrderOrCheckout::Checkout(c) => {
|
// OrderOrCheckout::Checkout(c) => {
|
||||||
c.delivery_method;
|
// c.delivery_method;
|
||||||
}
|
// }
|
||||||
_ => error!("session_data.source_object is neither Order or Checkout")
|
// _ => error!("session_data.source_object is neither Order or Checkout")
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
|
|
||||||
let str_payment_method =
|
let str_payment_method =
|
||||||
serde_json::to_string(&TransactionInitializeSessionData { payment_method })?;
|
serde_json::to_string(&TransactionInitializeSessionData { payment_method })?;
|
||||||
|
|
Loading…
Reference in a new issue