#bestabes_webhooks

1 messages ยท Page 1 of 1 (latest)

last valleyBOT
#

๐Ÿ‘‹ Welcome to your new thread!

โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.

๐Ÿ”— This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1275534869803303014

๐Ÿ“ Have more to share? Add more details, code, screenshots, videos, etc. below.

exotic stratus
#

Hello
Can you share an example event so that I can take a look?

dark loom
#

the events between 21:00 and 21:15 are all made from same server on both weebhooks

exotic stratus
#

can you share the ID? evt_xxx

dark loom
#

sry

#

evt_3PpxQmAPWFPlNAGA3lNQqvLJ

#

evt_3PpxQmAPWFPlNAGA3lNQqvLJ

exotic stratus
#

It looks like we're getting a 404 on https://pos.bestabes.com/payment/stripe/webhook route

dark loom
#

the funny part is that's the working one XD

#

it was a sucess

#

can we have a call and i share my screen?

#

i dont even know how to xplain my issue

exotic stratus
#

Not sure If we're looking at the same event.. Sorry we don't do calls.

Based on the event ID you shared, the attempt that succeeded was sent to this URL https://pos.lovelyfood.ch/payment/stripe/webhook

#

we_1Ppw0IAPWFPlNAGAZAkgM9eO points to https://pos.bestabes.com/payment/stripe/webhook which failed

we_1PprOjAPWFPlNAGAqpbOAxhX points to https://pos.lovelyfood.ch/payment/stripe/webhook which succeeded

dark loom
#

ya and lovelyfood is the one not even responding when i try to make payment

#

XD

#

i thought till know the issue is on my site but i'm not sure anymore

#

look i have one POS system installed on lovelyfood. a nginx is runing aswell. yesterday i made some changes at the server and got another public IP. so had to refresh the dns record

#

now the whole thing is not working

#

and i have a second server with same settings everything and it's a copy of the database from the first one also the POS. that one is running smooth also with the payments

exotic stratus
#

lovelyfood is the one not even responding when i try to make payment
Sounds like an issue with the third-party POS system?

Based on what I can see, you're listening to the same event type on two different URLs. We attempt to send the event when something happens on your stripe account to those URLs. One responds with 200 and the other results in 404

dark loom
#

that event was triggered from bestabes.com and it should only trigger that one responding with 404, but the payment was succesfull my pos responded to this on bestabes.com

#

the weebhooks just switched their answers XD

#

lovelyfood should not even respond

#

i checked the secret key already a third time now

#

i have that one from bestabes

#

the lovelyfood one if i try to make a payment on this the website for payment doesn't even respond like it doesn't exist

#

i mean on the pos site

#

the weebhook doesn't respond to anything

exotic stratus
#

Sorry, I don't really grasp what you're describing.

The other webhook URL is respoding as you're listening to the same event on the same account but just a different URL

dark loom
#

let me try step by step. 1. i open my pos on pos.bestabes.com, i chose products and i request a online payment with stripe. 2. i open the link with the QR Code on my phone, and make the payment, and select do a successfull payment. 3. the POS responds the payment is made successfull.

#

now. when i check the weebhooks, the webhook from pos.bestabes.com responds with a 404

#

and that is the weebhook from what i have the secret key added to my POS

#

the funny part is, the webhook from pos.lovelyfood.com responds with a 202, and that one should not even respond because it's not running on this POS

exotic stratus
#

are bestabes and lovelyfood separate stripe accounts?

dark loom
#

no

#

same keys

#

api

exotic stratus
#

So why would you expect https://pos.lovelyfood.ch/payment/stripe/webhook to NOT respond to this webhook event attempt?

#

both endpoints are registered to the same stripe account

#

and listen to the same events

dark loom
#

ehm what about the signing key?

#

they are different? doesn't that do anything?

exotic stratus
#

do you mean the webhook secret?

dark loom
#

yes

exotic stratus
#

It verifies that the event came from Stripe

#

It does not really differentiate between the URLs.

I understand your point about you specifying bestabes webhook endpoint secret on your bestabes server

However, lovelyfood endpoint is live on lovelyfood server which has lovelyfood webhook webhook secret

#

so signature verification wouldn't really fail (if above makes sense)

dark loom
#

i don't know right now nothing really makes sense, 2 day ago i set up the test pos on bestabes.com and made it work within a hour. yesterday i set up the server for lovelyfood.ch and waited till today to make change because of the dns but nothing works... i'm just confused right know... probably i should clean up everything and just wait a day and try again ... some day are just shit

#

ya i think today is a good day to give up and try again tomorrow XD

exotic stratus
#

Yeah that's probably a good idea.. Another option would be to look at the code your bestabes server is running and looking to see if https://pos.bestabes.com/payment/stripe/webhook route even exists.

You can use Postman or CURL to hit the route until you see the 404 disappear

dark loom
#

before i start loosing hair

#

doesn't

#

XD

#

but it fukking works on bestabes XD

#

im done

exotic stratus
#

It is possible there's some route misconfiguration which only causes certain routes to return 404 ๐Ÿ™‚
definitely recommend taking a break as fresh perspective may help ๐Ÿ™‚

dark loom
#

this is on my phone from bestabes

#

this is pos XD

#

hahaha im so done

#

thank you my friend but that's just too weird right now

#

will try it tomorrow again

#

this is soo weird i don't know how i messed this up

#

XD