Client Only API

The Client Only Dashboard approach to taking Stripe payments described previously is limited. This API approach offers more flexibility.

This approach is described in Stripe's documentation on a page titled: One-time payments with Checkout Client-only integration. The API option is followed here.

There is a good you tube video of this process here: https://www.youtube.com/watch?v=8d5zDtXY2qU In the video the method is described as "Stripe Server Side Integration...". However, it clearly comes from one of Stripe's documentation pages which is subheaded "Client-only integration".

This project is not working for me. I am getting the following error:

Fatal error: Uncaught Error: Class 'Stripe\Stripe' not found in /srv/stevespages.org.uk/public/htdocs/code-examples/stripe-payment/client-only-api/index.php:25 Stack trace: #0 {main} thrown in /srv/stevespages.org.uk/public/htdocs/code-examples/stripe-payment/client-only-api/index.php on line 25


Fatal error: Uncaught Error: Class 'Stripe\Stripe' not found in /srv/stevespages.org.uk/public/htdocs/code-examples/stripe-payment/client-only-api/index.php:28 Stack trace: #0 {main} thrown in /srv/stevespages.org.uk/public/htdocs/code-examples/stripe-payment/client-only-api/index.php on line 28