New issue
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
New Stripe Order API Support #1722
Comments
Yes. |
Thanks |
@arnav13081994 I tried testing out the new order api (using just the regular stripe package for now) but I got an error that the beta version wasn't a valid version. I see that you merged a pull request to validate beta versions of stripe. Any way we can get a new pre release so I can start testing it in preparation for full release? Appreciate your work here. |
@eliezerp3 You can install the pip install https://github.com/dj-stripe/dj-stripe/archive/master.zip |
How would I do that via poetry? |
All good.
seems to have done the trick. Thanks again. |
Great! You should know that I have not created a |
@arnav13081994 Yep. Saw that in the order pull request. Guess stripe will have to sort that out. One thing though. After installing master with the poetry command above, I am able to use the models in my code and through the shell (python manage.py shell) but none of the djstripe models are appearing in my admin panel. This was not an issue in the latest pre-release though. |
@arnav13081994 Is this fixed by any chance? |
@eliezerp3 I just raised a PR for this issue: #1728 |
@eliezerp3 Till that PR gets merged you can add the following line to any import djstripe.admin.admin Once the PR gets merged, you could remove it. |
@arnav13081994 Thanks. Sorry to bother you but one more question. I see that the order models was just merged to master; does that mean server webhook’s will work for it or are you still waiting for stripe to implement local cli webhooks? |
|
@arnav13081994 The easiest way to test them is to use a tool like localtunnel (https://theboroer.github.io/localtunnel-www/) which gives you a temporary access to any local port to the web with one command (and then add that address to the test stripe webhook). I find it way easier to use then stripe cli anyway. Just to be clear; manual syncing using Order.sync_from_stripe_data(order_data) will work, right? |
@arnav13081994 Also, just to let you know; just tried new master branch and clicking the Order model in the admin page (or even just running "Order.objects.all()" in the shell) is showing the below error message. ProgrammingError at /api/admin/djstripe/order/ |
@eliezerp3 you will need to run the migrations, but they've been squashed so youll need to roll them back first or start from a fresh db. When we release the beta version there will be a small upgrade guide. |
@jleclanche Thanks. Just deleted and re-created as it was dev database anyway. Any chance production release of v2.7 will be by end of next week? |
I'm aiming for a beta release next week. Production will follow in the weeks after. |
@eliezerp3 Are you able to get the Test webhook events using |
@arnav13081994 Yes. Just add the public url ngrok gives u with path to webhook, don't check the "Listen to events on connected accounts", change server to use that webhook secret. Local tunnel seems too be down at the moment but I confirmed ngrok does work. |
@eliezerp3 I must be doing something wrong because I literally had the same setup and wasn't able to get any webhook event on my localhost. It's the same setup I use whenever I work with any app webhook. I'll try again and let you know. |
@arnav13081994 Weird. All I can say is make sure your using the test webhooks, check to listen to all events and you leave the “Listen to events on connected accounts” checkbox unchecked. |
@eliezerp3 I just unchecked the “Listen to events on connected accounts” checkbox and now magically my localhost is receiving all the events! Is this a bug or a feature? |
@arnav13081994 I had the same experience and the same question lol. If you find out let me know. |
@eliezerp3 Turns out the mistake I was making was not including the |
@arnav13081994 Interesting. Guess the easiest way to do it is just to have 2 webhooks pointing to the same stripe webhook endpoint; one with the box checked and one without. Weird they wouldn’t give an option to default it to primary account though. |
@arnav13081994 Can I just confirm that with the 2.7 beta release, all of the order events will auto sync with the local order model. And also do I still need to make 2 webhooks (one with connected account checkbox checked and one without) in production (and when using ngrok)? |
@eliezerp3 They should get synced automatically. I don't know about needing to create multiple webhooks in production as stripes behaviour may be different. You'd need to test that. |
@arnav13081994 Thank you for the beta and all your help and looking forward for the 2.7 full release |
@arnav13081994 Just to let you know; I just downloaded beta and after running make migrations I'm getting
Seems all migrations haven't been made. Also, stripe models are still not in the admin panel (without manually adding them) And lastly, let me know if you would rather I post beta issues on this thread or make new issues lol (or neither and wait for a more official release) |
@eliezerp3 please create new issues. @jleclanche This migration would need to be added to the next release. |
I’ll see what’s happening. Thanks for letting me know.
On Wed, 15 Jun 2022 at 8:37 AM, eliezerp3 ***@***.***> wrote:
@arnav13081994 <https://github.com/arnav13081994> Yep. Saw that in the
order pull request. Guess stripe will have to sort that out. One thing
though. After installing master with the poetry command above, I am able to
use the models in my code and through the shell (python manage.py shell)
but none of the djstripe models are appearing in my admin panel.
—
Reply to this email directly, view it on GitHub
<#1722 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AE54TGN6SCNG5ZMXOR7AOJ3VPFCHJANCNFSM5YSWVALQ>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
--
Regards,
Arnav
|
Hi. I’m planning on migrating over to the new stripe order api (from the session api) once it leaves beta. Will this be supported in this upcoming release (v2.7.0)?
The text was updated successfully, but these errors were encountered: