Move rust checks to own file

This commit is contained in:
Jai A
2024-10-18 15:43:30 -07:00
parent 1b73d248b3
commit c143929b69
9 changed files with 38 additions and 66 deletions

View File

@@ -290,7 +290,7 @@ pub async fn edit_subscription(
intent.setup_future_usage = Some(PaymentIntentSetupFutureUsage::OffSession);
if let Some(payment_method) = &edit_subscription.payment_method {
let payment_method_id = if let Ok(id) = PaymentMethodId::from_str(&payment_method) {
let payment_method_id = if let Ok(id) = PaymentMethodId::from_str(payment_method) {
id
} else {
return Err(ApiError::InvalidInput(