Error with Stripe Elements

Wappler: v7 rc1
OS: MacOS M1
Server: PHP

I'm having my first go at adding Stripe payments to a project after doing it successfully with the old method but I'm hitting an error.

I've followed @Teodor's great tutorial here:

However, when viewing the page I'm getting this in the console:

"code": 0,
    "file": "\/home\/site\/register.mydomain.uk\/dmxConnectLib\/modules\/stripe.php",
    "line": 16,
    "message": "Class 'Stripe\\StripeClient' not found",
    "trace": "#0 \/home\/site......
}

I've uploaded everything to the server again just to make sure there are no missing files.

I was confident this was going to be a quick and easy thing to implement. Help!

Is composer enabled for your project?

Yes it is. But there isn't a Stripe folder in the vendor folder. How would I make that be created?

Update: I saved the project settings again and it prompted me to create the missing files so it's now doing it. I'm hopeful this will solve the problem.

Further Update: It's working! I've not done the next step but it's now showing the Stripe payment fields and no errors. I knew it would be something simple!

Huge thanks @Teodor.

Could a check be added to Wappler when using a Stripe action to give a prompt if the composer files aren't present?

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.