merge: fix remaining request_options in stripe.py
This commit is contained in:
@@ -85,7 +85,7 @@ def build_multi_item_checkout_payload(
|
||||
def _mode_for_price(s, price_id: str) -> str:
|
||||
"""Determine Checkout Session mode from price type."""
|
||||
try:
|
||||
price = s.Price.retrieve(price_id, request_options={"timeout": _STRIPE_TIMEOUT_SECONDS})
|
||||
price = s.Price.retrieve(price_id)
|
||||
return "subscription" if price.type == "recurring" else "payment"
|
||||
except Exception:
|
||||
# Default to payment if we can't determine
|
||||
@@ -95,7 +95,7 @@ def _mode_for_price(s, price_id: str) -> str:
|
||||
def _is_recurring_price(s, price_id: str) -> bool:
|
||||
"""Check if a Stripe price is recurring (subscription)."""
|
||||
try:
|
||||
price = s.Price.retrieve(price_id, request_options={"timeout": _STRIPE_TIMEOUT_SECONDS})
|
||||
price = s.Price.retrieve(price_id)
|
||||
return price.type == "recurring"
|
||||
except Exception:
|
||||
return False
|
||||
|
||||
Reference in New Issue
Block a user