#Listen to webhooks

6 messages · Page 1 of 1 (latest)

ivory shard
#

Hello!

I've deployed 3 services on a railway project:

  • Mysql database
  • A front-end client with nuxt.js 3
  • a backend with nodejs and strapi cms

The site is a ticket selling webpage for boat tours. We integrated stripe to manage the payments. Everytime a user buys a ticket is redirected to a stripe payment gateway (out of the website domain) and when it's finished with the payment process is redirected again to the page domain.

On the back we have a webhook listeting for the stripe process. And when the user completed the payment process an email with a pdf ticket is sent to the user, and a record to the database is added.

My question is: How would I be able to add this webhook to the railway project.

fickle lichenBOT
#

Project ID: 278f8b5e-7110-421f-ae6e-aee539d194c5

ivory shard
#

278f8b5e-7110-421f-ae6e-aee539d194c5

zealous oasis
#

you can use the railway provided variable RAILWAY_STATIC_URL in code to register your webhook endpoint

brazen sun