question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How do I set two DJSTRIPE_WEBHOOK_SECRET values for LIVE and DEV modes?

See original GitHub issue

Hey 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:

  1. Stripe LIVE => https://example.com/stripe
  2. Stripe 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:closed
  • Created 2 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

3reactions
jleclanchecommented, Jul 15, 2021

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.

0reactions
jleclanchecommented, Jan 19, 2022

Please try dj-stripe 2.7.0a0 which contains the aforementioned changes.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found