#Kamiyabali-webhook

1 messages · Page 1 of 1 (latest)

hot ravine
#

Hey, what's the issue/error?

hot slate
#

did not get any response

hot ravine
#

Looking at the screenshot you've shared, are you even initialising the Stripe client?

#

Can you share a Event ID (evt_xxx) you're expecting to receive?

hot slate
#

evt_1LeZCiSAvJMUlJgALlqdBQkX

hot ravine
#

Seems like you're using the CLI?

#

What's the full error you're getting?

hot slate
#

actually , I don't get any response

hot ravine
#

Are you even initialising the Stripe client?

hot slate
#

here is my request code

hot ravine
#

The IDE screenshot suggests no

#

I'm confused, you first sent me a webhook handler code and now a function to create a Checkout Session

hot slate
#

webhook code

#

I want to verify signature

hot ravine
#

I'll ask again: Are you even initialising the Stripe client?

hot slate
#

No

hot ravine
#

Then you need to

#

You're using classes and functions from the Stripe PHP library, you need to include and initialise it in your code

hot slate
#

$stripe = new \Stripe\StripeClient($pg_config->stripe_secret_key);

#

like this ??

hot ravine
#

Yes

hot slate
#

still not get any response

hot ravine
#

Hmm, have you definitely installed stripe-php in your project?

#

Something in your code is not executing as you expect. You must have some errors/logs locally

hot slate
#

Yes, if not how can i complete transaction.

#

and how can I verify manually ?
this did not match

hot ravine
#

I recommend removing the signing secret verification and trying it without it.

#

See if the handler can receive and process events that way, then we can add it back

#

In instances like this, the issue is usually 1 of 2 things:

  • Using the wrong whsec_xxx value.
  • Your code is manipulating the request body/payload before passing it to the constructEvent method. That methods requires the raw body.