#MasterJiMm-test-webhook-livemode

1 messages · Page 1 of 1 (latest)

mint umbra
#

Hi again! You can trigger events using the CLI

#

Ah actually one sec.

#

I don't recall if we let you trigger events in livemode

#

Ah yeah we don't support that for Stripe Trigger

#

Mostly, we don't recommend testing in livemode at all.

#

If it works in testmode it will work in livemode

#

Livemode testing of actual transactions is against card network regulations.

undone crow
#

but the webhook signing secret is diff in live mode right?

#

just wanted to verify that

mint umbra
#

Yes it is. If you just want to verify that then you can trigger an event via an API request which is unrelated to attempting an actual transaction. Like just creating a Customer and then ensuring your Webhook can properly handle customer.created

undone crow
#

great, how can i do this request?

mint umbra
undone crow
#

nothing is triggered actually

void sapphire
#

Hello! I'm taking over and catching up...

undone crow
#

good and the request doesn't even show up in the logs

void sapphire
#

When you say nothing is triggered what do you mean exactly?

#

Is it possible you're viewing the wrong account in the Dashboard, or viewing test instead of live?

undone crow
#

im in live mode and im simulating a curl request to create a customer, then i navigate to the dashboard -> logs in live mode and i see nothing

void sapphire
#

Okay, can you give me the request ID for that request so I can take a look?

undone crow
#

it doesnt appear to the logs how can i find it

void sapphire
#

It should be in the response headers that come back from Stripe. If you use -v with curl you can see them. It's the ID starting with req_

undone crow
#

not sure if it's something wrong here

{
  "object": "list",
  "data": [],
  "has_more": false,
  "url": "/v1/customers"
* Connection #0 to host api.stripe.com left intact
}
void sapphire
#

That's a request to list Customers.

#

That won't show up in the logs in the Dashboard by default because it's a GET request that didn't change anything.

#

You're trying to create a Customer, correct?

undone crow
#

yup

#

my purpose is to check that my webhook can handle this event in live mode

void sapphire
#

Okay, what curl command are you using?

undone crow
#

wdym

void sapphire
#

You said you're trying to create a Customer with curl, but you're listing Customers instead of creating one, so I'm wondering what curl command you're running so I can help you modify it to create a Customer.