|
|
@ -31,4 +31,5 @@ def plans(_name:str):
|
|
|
|
"""
|
|
|
|
"""
|
|
|
|
_prod = product(_name)
|
|
|
|
_prod = product(_name)
|
|
|
|
_id = _prod[0]['id']
|
|
|
|
_id = _prod[0]['id']
|
|
|
|
return stripe.Price.search(query=f"product:'{_id}'").data
|
|
|
|
_plans = stripe.Price.search(query=f"product:'{_id}'").data
|
|
|
|
|
|
|
|
return [_plan.to_dict() for _plan in _plans]
|
|
|
|