#schliemannw_webhooks

1 messages ยท Page 1 of 1 (latest)

sand boneBOT
#

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

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

stray temple
#

Hi! It wasn't removed, no - are you sure you're connected to the Sandbox, and not the main account?

solemn plank
#

I think so, otherwise I wouldn't be able to trigger events using the cli, right?

stray temple
#

That's true.

solemn plank
#

Also, I am able to retrieve events created

stray temple
#

Can you share the listening command you're using?

solemn plank
#

stripe listen --forward-to localhost:4000/stripe/webhooks

#

Then if I do stripe trigger payment_intent.succeeded I get all the events

stray temple
#

So what are you not getting then?

solemn plank
#

But if I use the dev version of my project, create a customer, do a purchase, nothing comes through

#

No, triggered events through the cli goes through fine

#

The events created in using the API in dev don't go through

stray temple
#

Ok, there are two possibilites.

  1. Is this related to connect?
  2. Can you please share:
    a) a Payment Intent ID that you didn't receive an event for when you expected; and
    b) an Event ID that you reecived when you used the CLI to generate it?
solemn plank
#

Here's an example:
evt_1RCP5bPZgrKV86Efa4U4lZZ6
this creates a customer, but I don't get that event in my webhook endpoint

but I can retrieve it using stripe event retrieve

stray temple
#

You're receiving none of the events?

#

Can you add http:// to the URL when you do stripe listen? I.e.: stripe listen --forward-to http://localhost:4000/stripe/webhooks

#

Does that make a difference?

#

Can you also please run stripe --version for me?

#

That shouldn't matter.

#

Can you share an Event ID or some other ID from something that should have come through but didn't?

sand boneBOT
solemn plank
stray temple
#

You do get an event forwarded if you use Stripe CLI to generate something, right?

#

Can you share me one of those Event IDs please?

stray temple
#

That was not sent to any webhook endpoint.

static totem
#

Hello ๐Ÿ‘‹ have you rerun stripe login and choose the sandbox account on the dashboard page that it takes you to?

solemn plank
#

Sorry, that answered the previous question

#

This for the cli: evt_3RCQD8B0gucvOvya0Ghs3ZTu

#

Yeah, I did it a couple of times today

#

Let me try it again

stray temple
#

You're good. It's an account issue.

#

evt_3RCQD8B0gucvOvya0Ghs3ZTu belongs to acct_1JZsa6B0gucvOvya

evt_1RCP0mPZgrKV86EfyyaBbYEL belongs to acct_1Q8QBDPZgrKV86Ef

#

Stripe-CLI is connected to the former, but not the latter.

#

Try doing stripe login --interactive and make sure you provide the right API key to specify the account you're trying to work on.

solemn plank
#

Ooohhh no. Now it worked!
When you mentioned login to the sandbox I realized I never looked at it. I assumed that loging into my main account without --live would automatically log me into sandbox

#

Thank you so much

stray temple
#

BOOOOOM Awesome. ๐Ÿ™‚ You're very welcome! Have a good one! ๐Ÿ™‚

sand boneBOT
static totem
#

Glad it is working now!

solemn plank
#

You guys are awesome

#

Thanks!

static totem
#

Of course, have a nice rest of your day!