#Abranches-php-error

1 messages · Page 1 of 1 (latest)

timber oxide
#

Was this working for you previously or is this a new integration?

dusk rapids
#

It's a new integration

#

I installed Stripe via composer, and my webhook.php file is in the root directory

timber oxide
#

What instructions did you follow for installing the Stripe PHP client library?

dusk rapids
#

The stripe integration builder

timber oxide
#

You've got require 'vendor/autoload.php'; at the top of your file, right?

dusk rapids
#

Yes

timber oxide
#

When you look in your vendor directory what do you see?

dusk rapids
#

sometime it doesn't show this "\stripe-php" after the stripe folder

#

i've search to see if there's another stripe folder inside the first one, since it's fetching "stripe\stripe", but there isn't

#

It doesn't reconize "\Stripe\Stripe", nor "\Stripe\Event"

timber oxide
#

What editor is this in? And what version of the PHP library is this?

dusk rapids
#

The editor is VS code

#

Let me check my php's version

#

PHP 8.0.2

timber oxide
#

It could be an issue with VSCode (but I'm not sure) - what happens when you actually try and run the code?

dusk rapids
#

I haven't tried running it yet, i just installed the cli to test the webhooks

#

I'll try running it and i'll come back here to say if it works or not

timber oxide
#

Yeah let me know how that goes!

dusk rapids
#

Ok, Thanks!

dusk rapids
#

Testing with the cli on my local machine worked

#

I guess it's a vscode thing 😆