Skip to content

Commit

Permalink
stripe self hosted hotfix
Browse files Browse the repository at this point in the history
  • Loading branch information
diego-escobedo committed Feb 11, 2023
1 parent 4749c26 commit 0ff56b6
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions backend/metering_billing/payment_providers.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,16 +126,12 @@ def __init__(self):
"redirect_uri": VITE_API_URL + "redirectstripe",
}
test_qstr = urlencode(test_redirect_dict)
if not self.self_hosted:
self.live_redirect_url = (
"https://connect.stripe.com/oauth/authorize?" + live_qstr
)
self.test_redirect_url = (
"https://connect.stripe.com/oauth/authorize?" + test_qstr
)
else:
self.live_redirect_url = None
self.test_redirect_url = None
self.live_redirect_url = (
"https://connect.stripe.com/oauth/authorize?" + live_qstr
)
self.test_redirect_url = (
"https://connect.stripe.com/oauth/authorize?" + test_qstr
)

def working(self) -> bool:
return self.live_secret_key is not None or self.test_secret_key is not None
Expand Down

0 comments on commit 0ff56b6

Please sign in to comment.