#issues with webhook config

1 messages · Page 1 of 1 (latest)

uncut iris
#

guys, i'm having issues with the redirect url after success payment setup. Like literally nothing works. it supposed to redirect to my webhook endpoint, but its not working after like 20 attempts.

The rest of the setup was smooth but its not redirecting, resulting in the database priviliges not being updated.

I checked the logs and also see quite afew error 429's and I saw that might be coming from dodo themselves, or is it my code setup?

fallow foxBOT
# uncut iris guys, i'm having issues with the redirect url after success payment setup. Like ...

It sounds like you're encountering two separate issues: the redirect URL not functioning as expected and the error 429 responses.

  1. Redirect URL Issue:

    • Ensure that the redirect URL is correctly configured in your Dodo Payments dashboard. Double-check the URL for any typos or incorrect paths.
    • Verify that your server is correctly set up to handle the incoming request at the redirect URL. Ensure that the endpoint is active and capable of processing the request.
    • Check if there are any network issues or firewall settings that might be blocking the redirect request.
  2. Error 429 (Too Many Requests):

    • The 429 error indicates that you are making too many requests in a short period, which could be due to rate limiting by Dodo Payments.
    • Review your code to ensure that you are not making unnecessary repeated requests to Dodo's API.
    • Implement exponential backoff or retry logic to handle rate limits gracefully.
    • If the issue persists, consider reaching out to Dodo Payments support to inquire about the specific rate limits and how they might be affecting your application.

To further troubleshoot, you might want to:

  • Log the full response from Dodo Payments when the redirect attempt is made to see if there are any additional error messages or clues.
  • Use tools like ngrok to expose your local server to the internet for testing purposes, ensuring that the redirect URL is accessible from external sources.

If these steps do not resolve the issue, please provide more details about your setup or any specific error messages you are encountering.

fallow foxBOT
oak elbow
#

@uncut iris can you share your current implementation here in a step by step manner? So that we can investigate the issue and help.

gritty geode
#

I dont think webhook url is supposed to be added in "redirectUrl", is that what you're doing?

uncut iris
# oak elbow <@793588911767027812> can you share your current implementation here in a step b...

sure, so i am building a platform with one time payments.

What I do first before intiaiting any payments is I let the user first input their billing info ( adress)

that billing info is then used in communciation to dodo payments, which generates a checkout url, that checkout url is then taken from my application and is loaded correctly.

I checkout with the fake card, and it doesnt seem to redirect me to my endpoint that is awaiting the payment response that listens to failed payments or success payments.

Since I'm not getting redirected to my own app, my endpoint is not given the righ information, thus me not being able to give access to the one time payment.

My webhook is setup with the webhook url pointing to my app/api/webhooks/dodo with the signing key being passed.

but like i said it's not hitting it.

i am on vercel and have set the env variables correctly, and even tried making a new webhook etc

nothing seems to work

gritty forum
#

Webhooks and redirects are 2 different things

#

For webhook you need to configure the url under Developers > Webhooks.

Redirect url you need to pass it with the payment

uncut iris
#

yes I know

#

But I had a problem with the redirect url. After watching the setup video once more I fixed it

#

in redirect_url I passed the wrong url and somehow the same checkout link was passed

#

Now I got the right one setup and I take the successvalue from URL parameters to devise further actions

#

is that the best way to do it?

#

btw guys, Idk what's wrong with the docs, but somehow When I want to add them in Cursor and reference them, they are still giving some old configurations.

#

So it's good you guys added the ability the copy the MD.

#

on the page itself

oak elbow
oak elbow