#ddr3ram

1 messages · Page 1 of 1 (latest)

robust ventureBOT
ornate galleon
#

Hello, what about the webhook setup are you getting stuck on?

dawn mica
#

i want to run the webhook on a raspberry pi but you have to use norok to run it to make it https etc

#

and its so unefficent is there any other way

ornate galleon
dawn mica
#

Thats what im using on the raspberry pi

#

but it says errors and everytime if it closes / crashes you have to change the url because the webhook endpoint has to be https its just very unefficent

ornate galleon
#

What error are you getting from the CLI?

#

Unfortunately we don't have advice for using ngrok on this server but I can help troubleshoot CLI issues if you are running in to them

#

Also are you just using the pi for testing or are you going to actually use it to take real payments?

dawn mica
#

Real payments

#

but im testing it for now

#

i dont have anything else to host the cli on

ornate galleon
#

For getting a URL without ngrok, I'd recommend looking at raspberry pi forums that talk about hosting a live website. Registering domains for that is unfortunately outside of the scope of what I can help with

#

If you want to troubleshoot what is happening with the CLI, I'm happy to help look in to your error but I'll need the text of the specific error that you are getting

dawn mica
#

Yeah ill start it up but it takes a min so if you happy to wait

#

I already have a domain with IONOS if that makes anything diffrent?

ornate galleon
#

These are kind of two separate issues. The CLI does not need any kind of URL to be set up for your server. A URL would let you use a webhook that you set up in the dashboard. You can test with either one, but the CLI is the only one I can really consult on.

dawn mica
#

pi@raspberrypi:~ $ stripe listen --forward-to http://localhost:4242/stripe-webhook

Ready! You are using Stripe API Version [2022-11-15]. Your webhook signing secret is *

2023-08-09 16:45:44 --> charge.succeeded [evt_3NdEZtE36rZQjhzL0iNJF0s6]
2023-08-09 16:45:44 [ERROR] Failed to POST: Post "http://localhost:4242/stripe-webhook": dial tcp [::1]:4242: connect: connection refused

2023-08-09 16:45:44 --> payment_method.attached [evt_1NdEZwE36rZQjhzLMY92AQmj]
2023-08-09 16:45:44 [ERROR] Failed to POST: Post "http://localhost:4242/stripe-webhook": dial tcp [::1]:4242: connect: connection refused

2023-08-09 16:45:44 --> checkout.session.completed [evt_1NdEZwE36rZQjhzLbw6vDVzO]
2023-08-09 16:45:44 [ERROR] Failed to POST: Post "http://localhost:4242/stripe-webhook": dial tcp [::1]:4242: connect: connection refused

2023-08-09 16:45:44 --> customer.created [evt_1NdEZwE36rZQjhzLS8VuiD4c]
2023-08-09 16:45:44 [ERROR] Failed to POST: Post "http://localhost:4242/stripe-webhook": dial tcp [::1]:4242: connect: connection refused

2023-08-09 16:45:44 --> customer.updated [evt_1NdEZwE36rZQjhzL5WSapM4B]
2023-08-09 16:45:44 [ERROR] Failed to POST: Post "http://localhost:4242/stripe-webhook": dial tcp [::1]:4242: connect: connection refused

#

2023-08-09 16:45:44 --> invoice.created [evt_1NdEZwE36rZQjhzLGJv5Zsj0]
2023-08-09 16:45:44 [ERROR] Failed to POST: Post "http://localhost:4242/stripe-webhook": dial tcp [::1]:4242: connect: connection refused

2023-08-09 16:45:44 --> invoice.finalized [evt_1NdEZwE36rZQjhzLGObzORhH]
2023-08-09 16:45:44 [ERROR] Failed to POST: Post "http://localhost:4242/stripe-webhook": dial tcp [::1]:4242: connect: connection refused

2023-08-09 16:45:44 --> customer.subscription.created [evt_1NdEZwE36rZQjhzL9tb9S9Db]
2023-08-09 16:45:44 [ERROR] Failed to POST: Post "http://localhost:4242/stripe-webhook": dial tcp [::1]:4242: connect: connection refused

2023-08-09 16:45:45 --> invoice.updated [evt_1NdEZwE36rZQjhzLFOq3X9ts]
2023-08-09 16:45:45 [ERROR] Failed to POST: Post "http://localhost:4242/stripe-webhook": dial tcp [::1]:4242: connect: connection refused

2023-08-09 16:45:45 --> invoice.paid [evt_1NdEZxE36rZQjhzLBBAOIv2a]
2023-08-09 16:45:45 [ERROR] Failed to POST: Post "http://localhost:4242/stripe-webhook": dial tcp [::1]:4242: connect: connection refused

2023-08-09 16:45:45 --> invoice.payment_succeeded [evt_1NdEZxE36rZQjhzL90N6P5sg]
2023-08-09 16:45:45 [ERROR] Failed to POST: Post "http://localhost:4242/stripe-webhook": dial tcp [::1]:4242: connect: connection refused

2023-08-09 16:45:45 --> customer.subscription.updated [evt_1NdEZxE36rZQjhzLQtlTYLPX]
2023-08-09 16:45:45 [ERROR] Failed to POST: Post "http://localhost:4242/stripe-webhook": dial tcp [::1]:4242: connect: connection refused

2023-08-09 16:45:45 --> payment_intent.succeeded [evt_3NdEZtE36rZQjhzL0Pw0eMDL]
2023-08-09 16:45:45 [ERROR] Failed to POST: Post "http://localhost:4242/stripe-webhook": dial tcp [::1]:4242: connect: connection refused

#

sorry for spam lol

robust ventureBOT
obtuse ivy
#

Hi there

#

Catching up, give me a moment

dawn mica
#

ok ty

obtuse ivy
#

Okay so looks like you are having issues forwarding to a local endpoint