We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Describe the bug As described here https://dj-stripe.dev/dj-stripe/2.7/api_keys/, we got rid of STRIPE_LIVE_SECRET_KEY and STRIPE_TEST_SECRET_KEY.
STRIPE_LIVE_SECRET_KEY
STRIPE_TEST_SECRET_KEY
However when calling Customer.add_payment_method, PaymentMethod.attach is called without explicit api_key param.
api_key
Fallback is djstripe_settings.STRIPE_SECRET_KEY, which will be "" in our case:
djstripe_settings.STRIPE_SECRET_KEY
""
dj-stripe/djstripe/models/payment_methods.py
Line 1168 in dbe3602
A clear and concise description of what the bug is.
To Reproduce
*** djstripe.exceptions.InvalidStripeAPIKey: Invalid API key: ''
Software versions
The text was updated successfully, but these errors were encountered:
Possible fix: payment_method = PaymentMethod.attach(payment_method, stripe_customer, api_key=self.default_api_key)
dj-stripe/djstripe/models/core.py
Line 1164 in dbe3602
Sorry, something went wrong.
No branches or pull requests
Describe the bug
As described here https://dj-stripe.dev/dj-stripe/2.7/api_keys/, we got rid of
STRIPE_LIVE_SECRET_KEY
andSTRIPE_TEST_SECRET_KEY
.However when calling Customer.add_payment_method, PaymentMethod.attach is called without explicit
api_key
param.Fallback is
djstripe_settings.STRIPE_SECRET_KEY
, which will be""
in our case:dj-stripe/djstripe/models/payment_methods.py
Line 1168 in dbe3602
A clear and concise description of what the bug is.
To Reproduce
*** djstripe.exceptions.InvalidStripeAPIKey: Invalid API key: ''
Software versions
The text was updated successfully, but these errors were encountered: