I created the localhost alias webhook on the stripe dashboard, in my command promt i ran the listener fro Stripe CLI
C:\MAMP\htdocs\bla> stripe listen --load-from-webhooks-api --forward-to https://bla.dev.com --skip-verify
> Ready! You are using Stripe API Version [2022-08-01]. Your webhook signing secret is whsec_XXXXXXXXXXXXXXXXXXXXXXXX55 (^C to quit)
when i test the payments i get this in my command prompt
2022-12-14 15:16:25 --> checkout.session.completed [evt_1MEpCWDT9pjYXXXXX]
2022-12-14 15:16:25 <-- [200] POST https://bla.dev.com/frontend/web/payment/stripe/endpoint/ [evt_3MEpCKDT9pjYPnbXXXX]
2022-12-14 15:16:25 --> charge.succeeded [evt_3MEpCKDT9pjYXXXXXX]
2022-12-14 15:16:26 <-- [200] POST https://bla.dev.com/frontend/web/payment/stripe/checkout/endpoint/ [evt_1MEpCWDT9pXXXXX]
but when i check my stripe dashboard, it shows this error
Connection to remote host denied (please contact support at https://support.stripe.com/contact/)
The url https://bla.dev.com/frontend/web/payment/stripe/endpoint/ is valid Alias, when i type it into browser i get a 405 error, because it only allows POST
Any idea how to fix this? it worked before, not sure what broke.
Forwarding the events in CLI to Webhook URL and setting Webhook URL in Dashboard are two different locations to Stripe and the event will be sent to both.
Forwarding the event from CLI goes through: Stripe -> local -> Your
webhook URL
Setting Webhook URL in Dashboard has events goes through: Stripe -> Your webhook URL
With Connection to remote host denied, it's likely that your Webhook URL is not publicly accessible. Common reason can be that the domain is not accessible from external and only works in your location machine.
Related
I have wordpress with woocommerce for REST API, the wordpress is running on docker.
For http client i'm using Guzzle6 with Oauth libs in Laravel app to do the Request. The laravel app is run behind nginx
When i set the base_url to localhost:port i got 401 response
{
"code":"woocommerce_rest_authentication_error",
"message":"Invalid signature - provided signature does not match.
}
When i set the base_url to my public ip it success.
When i develop on my local machine it success using localhost as base_url Why this happend ?
I had a same issue with WooCommerce trying to send a simple GET request with postman on localhost. I fixed it by setting WP_HOME and WP_SITEURL to my local ip address, or go to Admin Panel > Settings > General and replace localhost with your ip-address for WordPress Address (URL) and Site Address (URL) as explained here:
https://wordpress.stackexchange.com/questions/180207/how-to-make-other-computer-in-local-network-see-my-theme
Hope this helps.
I am getting following error when tried to create topic for amazon sns messaging.
The AWS Access Key Id needs a subscription for the service (Service: AmazonSNS; Status Code: 403; Error Code: OptInRequired; Request ID: 9b0bd34b-6ebd-5ece-a78d-8013adb25940)
It may be possible that your account is new and payment mode is still not verified by Amazon. Please re-check and try to contact with their support.
I am getting the following error when I try to setup notification using gsutil command:
gsutil notification watchbucket https://APPLICATION-ID.appspot.com/cron gs://bucket
Watching bucket gs://APPLICATION-ID.appspot.com/ with application URL https://APPLICATION-ID.appspot.com/cron ...
Watch bucket attempt failed:
AccessDeniedException: 403 Forbidden
You attempted to watch a bucket with an application URL of:
https://APPLICATION-ID.appspot.com/cron
which is not authorized for your project. Please ensure that you are using
Service Account authentication and that the Service Account's project is
authorized for the application URL. Notification endpoint URLs must also be
whitelisted in your Cloud Console project. To do that, the domain must also be
verified using Google Webmaster Tools. For instructions, please see:
https://cloud.google.com/storage/docs/object-change-notification#_Authorization
AccessDeniedException: 403 Forbidden
I have followed all the steps from the url below for Notification Authorization:
https://cloud.google.com/storage/docs/object-change-notification
But I am still getting the above error. What step am I missing ?
Thanks
I have fixed the issue myself. I had missed "https://" while adding the domain name.
Thanks
I'm in trouble with Apache HTTPS server on RHEL.
I'm using telegram webhook API. What I want to do that is, when a message is sent to a group or telegram bot itself it triggers the web page which I set with the webhook API.
My API request:
https://api.telegram.org/bot[MY_BOT_TOKEN]/setWebHook
=> im sending url=bot.test.blabla.com/dosomething.php with POST method
My certificate is valid, I tested it with opening a new browser page and details said that the "certificate is valid".
However, interesting part is when I type tcpdump -i eth0 port 443 -vv >> /root/dump.dump to listen to my 443 port, the packages are coming from IP address that I expected. But Apache does not do anything.
I also tested the API, with another server and it does what it is expected.
There is no iptables or TCP wrapper configuration on my server
Thank you.
Hi please support to troubleshoot the below error in Wechat Sandbox API Config:
I am integrating Wechat API in PHP application. I have created a test account in Wechat Sandbox API. But when configuring the API with URL and token its shows "Unable to configure".
When checking the ajax response it throws : {"errcode":-106,"errmsg":"token check fail"}
Thank you.
I got the "Unable to configure" message when testing the Getting Started wiki sample too. Trying to reach wx_sample.php returned a 500 Internal Server Error.
It was fixed after changing the owners for my directory and file, after that the token could be set in the sandbox - 'API Config'.