refactor: removed the usage of wallet(payment method) for paypal (#23)

This commit is contained in:
Sangamesh Kulkarni
2022-12-01 13:56:53 +05:30
committed by GitHub
parent 32e7d34572
commit b2e45e614c
9 changed files with 103 additions and 31 deletions

View File

@ -614,6 +614,7 @@ pub async fn make_pm_data<'a, F: Clone, R>(
Ok(pm.to_owned())
}
(pm @ Some(api::PaymentMethod::PayLater(_)), _) => Ok(pm.to_owned()),
(pm @ Some(api::PaymentMethod::Wallet(_)), _) => Ok(pm.to_owned()),
_ => Ok(None),
}?;