#Kasey-js-integration

1 messages · Page 1 of 1 (latest)

oblique tendon
#

Hi there 👋 can you elaborate a bit on what you're trying to do when you encounter the 404?

zealous ridge
#

Hi! I basically just have "var response = fetch('/secret').then(function(response){"

oblique tendon
#

Do you have an endpoint configured at that /secret location? Based on the 404 it looks like you're making a request to a location that doesn't exist.

zealous ridge
#

No I do not..sorry this is all very new to me....how would I configure an endpoint at /secret?

oblique tendon
#

That's going to fluctuate depending on your environment, but essentially you would need a server that has an inbound route at that location to handle the requests made to it.

zealous ridge
#

Is this the same as going into the Stripe dashboard and creating a "Webhook" ?

upbeat kraken
#

Hey Kasey. Taking over for toby

#

No actually. /secret refers to an endpoint configured on your backend server

zealous ridge
#

ahhh dang it, I don't know how to do this because this is all being done on WordPress

#

I don't have access to the backend

upbeat kraken
#

Sorry not super familiar with Wordpress. Is it possible to configure endpoints usually? It's just that you don't have access?

zealous ridge
#

Oh I'll look at this now!