How do I set two DJSTRIPE_WEBHOOK_SECRET values for LIVE and DEV modes?
See original GitHub issueHey there, thank you a lot for making the library! I just was thinking about “How can I quickly access my data from Stripe? Well, I need to sync it” and found this awesome library.
The question is - how can I set two values DJSTRIPE_WEBHOOK_SECRET for LIVE and DEV move in the one django instance?
We use Stripe’s modes with the same server, so the current architecture is this:
Stripe LIVE
=> https://example.com/stripeStripe DEV
=> https://example.com/stripe
I don’t mind if it’ll be two different urls tho: example.com/stripe-live and example.com/stripe-dev
Is there a way to set it this way?
To be honest, with our current implementation we can’t handle it either, but it’ll be a great feature for us.
So the purpose is to save DEV and LIVE data in one database (and I realized how awful it sounds…)
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (4 by maintainers)
Top Results From Across the Web
pyupgrade and dj-stripe - Building SaaS with Python and ...
In this episode, I added pyupgrade to my pre-commit setup to get the latest Python syntax features for my app automatically.
Read more >dj-stripe Documentation
For your convenience, dj-stripe provides a djstripe.models. ... A set of key/value pairs that you can attach to an object.
Read more >dj-stripe does not switch to use live key on Live mode
The settings parameters show STRIPE_LIVE_MODE = True, and both public and secret keys are set to the live one with correct spelling. The...
Read more >Models - Dj-Stripe
This is the second half of the two-step payment flow, where first you ... If set, possible values are duplicate , fraudulent ,...
Read more >Django and Stripe Payments Tutorial - JustDjango
You will need your public key and secret key. If you don't have existing API keys you can create them in your Stripe...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
It’s not possible right now but just for the record, I’d like it to be, and the plan is to move the webhook secrets to the database as part of the WebhookEndpoint model. This will make it possible to have multiple endpoints per djstripe instance.
Please try dj-stripe 2.7.0a0 which contains the aforementioned changes.