#bajay_webhooks
1 messages ยท Page 1 of 1 (latest)
Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
- bajay_webhooks, 9 hours ago, 79 messages
- bajay_webhooks, 20 hours ago, 17 messages
๐ Welcome to your new thread!
โฒ๏ธ We'll be here soon! We typically respond in a few minutes, but in some cases we might need a bit more time (e.g., server's busy, you've got a complex question, etc.).
โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can 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/1257642390135504981
๐ Have more to share? Add details, code, screenshots, videos, etc. below.
seems like it's working on our side and your server is giving an error?
it was not showing previously
it was just showing error rate
can you guide me why is it not working on my end?
can i share the code? the same other webhook worked for me when i was dealing with destination charges
why do you think it's not working, what debugging have you done? if you click the failed attempts you can see the error your code throws, and you can debug/add logs and ssee why that's happening
the same other webhook worked for me when i was dealing with destination charges
It's not surpising it wouldn't work, there are large differences between the charge types and your code might need to be changed; you need to figure out what your code is doing and why/where it crashes.
i tried testing it locally and locally on stripe cli it does not even capture these events. it only captures application fee created
that is why i moved to live url
i did make some changes in the code
probably because you forgot to use --forward-connect-to
can you explain a dummy command using forward connet to ?
it would be great help if i can test it locally
okay let me check and get back to you
C:\Users\Arbaz\Downloads\Compressed\stripe_1.21.0_windows_i386>stripe listen --forward-connect-to https://localhost:44318/v1/stripe/connect-webhook
Ready! You are using Stripe API Version [2023-10-16]. Your webhook signing secret is whsec_xxxxxxxxxxxxxxxxxxxx (^C to quit)
2024-07-02 15:41:34 --> application_fee.created [evt_1PY49SGuORJUccAUCxEe2vAe]
it only captures one event on cli
what am i doing wrong?
hello?
hmm
any help please?
My guess is you're authenticated on the wrong Stripe account in the CLI
evt_1PY49SGuORJUccAUCxEe2vAe occurred on acct_1N0RuTGuORJUccAU
The Checkout Sessions you're creating are created on acct_1P0hVmHF3Pq7Wnde (direct charge)
Then this seems expected. stripe login
Please be patient
Can you type stripe config --list and share the test_mode_api_key that is printed?
yes please wait
test_mode_api_key = 'rk_test_51N0RuTGuORJUccAUukv6vIeATzQhmOnv5iOUbFb8kPfUFa3gEleA8rTfJBUCOVX1nYkZZTOYgzULlFT18750kX2b00zCEQ4qoe'
OK, so that key belongs to acct_1N0RuTGuORJUccAU โ that is the account the CLI is signed in to and will forward events from
evt_1PY3YuHF3Pq7WndetpxwV7av occurred on acct_1P0hVmHF3Pq7Wnde but that account is conncted to the platform (acct_1N0RuTGuORJUccAU) and the event appears to have been received by the CLI
Can you run this please?
stripe trigger checkout.session.completed --stripe-account=acct_1P0hVmHF3Pq7Wnde
And let me know if the CLI receives and forwards the events
okay wait
again just this 2024-07-02 16:52:17 --> application_fee.created [evt_1PY5FtGuORJUccAUuDQ4dllE]
Can you share your stripe listen command you're using? Including all the flags
C:\Users\Arbaz\Downloads\Compressed\stripe_1.21.0_windows_i386>stripe listen --forward-connect-to https://localhost:44318/v1/stripe/connect-webhook
hi! I'm taking over this thread.
any help?
sure, give me a few minutes to catchup.
okay
if you could just forget the cli and guide me why is my webhook being failed at my end
"id": "evt_1PY57THF3Pq7WndeLcdVTI9e"
this is the checkout session completed event id
want me to share my code with you for my webhook endpoint?
I just ched that event, and your server returned a 400 error to Stripe.
so you need to check your backend logs to find the exact error message
Stripe processing error: No such payment_intent: 'pi_3PY5mHHF3Pq7Wnde1ZlxMjzq'
this is what my server shows
in logs
this error was for this event "id": "evt_1PY5mJHF3Pq7Wnde1H0W6Zvh"
are you trying to retrieve that PaymentIntent?
it lives on your connected account, so you need to make sure you are using the Stripe-Account header: https://stripe.com/docs/connect/authentication
happy to help ๐