Skip to content

Commit

Permalink
fix: s/user.subscription/org.subscription in billing.py
Browse files Browse the repository at this point in the history
  • Loading branch information
nikochiko committed Sep 2, 2024
1 parent 8725274 commit 4a598a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion daras_ai_v2/billing.py
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ def change_subscription(org: "Org", new_plan: PricingPlan, **kwargs):
if not new_plan.supports_paypal():
gui.error(f"Paypal subscription not available for {new_plan}")

subscription = paypal.Subscription.retrieve(user.subscription.external_id)
subscription = paypal.Subscription.retrieve(org.subscription.external_id)
paypal_plan_info = new_plan.get_paypal_plan()
approval_url = subscription.update_plan(
plan_id=paypal_plan_info["plan_id"],
Expand Down

0 comments on commit 4a598a1

Please sign in to comment.