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: 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/ Stack trace: #0 {main} thrown in /srv/ on line 25

Warning: require(vendor/autoload.php): failed to open stream: No such file or directory in /srv/ on line 25

Fatal error: require(): Failed opening required 'vendor/autoload.php' (include_path='.:/usr/share/php') in /srv/ on line 25