supporters: Document "restricted API key" required permissions
This commit is contained in:
parent
99698c388f
commit
c83b6404e0
1 changed files with 3 additions and 0 deletions
|
@ -195,6 +195,9 @@ def sustainers_stripe(request):
|
|||
return render(request, 'supporters/sustainers_stripe.html', {'form': form})
|
||||
|
||||
|
||||
# Use a "restricted" API key and grant access to:
|
||||
# - checkout sessions (write)
|
||||
# - credit notes (read) - unclear why, subscription sign-ups fail otherwise
|
||||
stripe.api_key = settings.STRIPE_API_KEY
|
||||
if stripe.api_key == '':
|
||||
logger.warning('Missing STRIPE_API_KEY')
|
||||
|
|
Loading…
Reference in a new issue