#bajay_webhooks

1 messages ยท Page 1 of 1 (latest)

tacit widgetBOT
frail pantherBOT
#

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.

tacit widgetBOT
#

๐Ÿ‘‹ 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.

quaint creek
#

hi! did you set it up as a Connect endpoint?

short ibex
#

yes

#

any help would be appreciated

quaint creek
#

seems like it's working on our side and your server is giving an error?

short ibex
#

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

quaint creek
#

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.

short ibex
#

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

short ibex
quaint creek
short ibex
short ibex
#

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?

quaint creek
#

hmm

short ibex
#

any help please?

tacit widgetBOT
late citrus
#

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)

short ibex
#

yes i am connected with my platform account on cli

#

how do i connect to other account

late citrus
#

Then this seems expected. stripe login

short ibex
#

can you explain what do i need to do

#

??

#

very well then

late citrus
#

Please be patient

#

Can you type stripe config --list and share the test_mode_api_key that is printed?

short ibex
#

yes please wait

#

test_mode_api_key = 'rk_test_51N0RuTGuORJUccAUukv6vIeATzQhmOnv5iOUbFb8kPfUFa3gEleA8rTfJBUCOVX1nYkZZTOYgzULlFT18750kX2b00zCEQ4qoe'

late citrus
#

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

short ibex
#

okay wait

#

again just this 2024-07-02 16:52:17 --> application_fee.created [evt_1PY5FtGuORJUccAUuDQ4dllE]

late citrus
#

Can you share your stripe listen command you're using? Including all the flags

short ibex
tight epoch
#

hi! I'm taking over this thread.

short ibex
#

any help?

tight epoch
#

sure, give me a few minutes to catchup.

short ibex
#

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?

tight epoch
#

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

short ibex
#

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"

tight epoch
#

are you trying to retrieve that PaymentIntent?

short ibex
#

let me check

#

thanks for the help

#

i have done it

tight epoch
#

happy to help ๐Ÿ™‚