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
Stripe v3 setup instructions #389
Comments
Ahh, maybe there should be a link in the Stripe provider section to this: https://django-payments.readthedocs.io/en/latest/webhooks.html |
Even after reading the webooks page linked above there are still questions about the endpoint.
What is providing the "payments/stripe" url? The only urls.py file is see in this project repo is this:
with no mention of stripe. |
I am on the same problem now. And besides V3 isn't implemented yet on the last release version (2.0.0) |
@RyanHope you are right, there is no where in the docs explaining where and how the Webhook URL is created, i assigned myself to correct that. In the meantime the webhook URL is made from 3 settings:
if you have these settings PAYMENT_USES_SSL=true
PAYMENT_HOST="example.com"
PAYMENT_VARIANTS= {"default": ("payments.stripe.StripeProviderV3", {}),} the webhook URL for that particular provider is https://example.com/payments/default As for the endpoint secret, Stripe has a very comprehensive documentation regarding their systems, you can find instructions here https://stripe.com/docs/webhooks#secure-webhook |
Try to save real url path (it's a pitty but it should be a full path, and I can't setup relative one) for success and failed url fields in the Payment instance. |
I have no idea what you are telling me to do. |
Here is the stacktrace from django...
|
Making progress... I understand the previous comment. my success and failure handlers were returning relative paths so I switched them up like this:
and now I am at the new stripe payment portal. |
this info appears to be wrong, it seems the correct answer is |
Actually Stripe webhook could be set to any of your home urls. It should be static, something like |
The Stripe v3 provider documentation is lacking some key details to get setup. Nowhere does it say where to obtain the endpoint secret. From other similar questions on stack overflow I was able to figure out that I need to setup a webhook on Stripe's website. This process requires specifying a url for the endpoint. What is this url? Nothing in the docs say what to specify here. Also, what events does this endpoint need to listen to for the v3 provider to work properly?
The text was updated successfully, but these errors were encountered: