supporters: Document "restricted API key" required permissions

This commit is contained in:
Ben Sturmfels 2024-11-15 21:03:30 +11:00
parent 99698c388f
commit c83b6404e0
Signed by: bsturmfels
GPG key ID: 023C05E2C9C068F0

View file

@ -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')