Magento 2 – How to Manually Install Stripe-PHP Library for Stripe Extension

magento2payment-methodsPHP

I would like to use the free stripe extension from Inchoo for my magento2 store in production.
I did not yet find out how to install the needed "stripe-php" library manually? I do not want to install that module with composer, but install everything manually.

This is the extension im talking about: https://github.com/Inchoo/magento2-Inchoo_Stripe

Where do i have to place the stripe-php folder library if I install manually?
thanks alot!

Best Answer

If you want it manual, you need to add following in lib/internal/Stripe folder of Magento 2 root directory.

https://github.com/stripe/stripe-php/tree/master/lib

So all files and folders of above link will be under following folder.

<magento2-root-directory>/lib/internal/Stripe

Then those classes will be autoloaded. Then you can use that stripe classes as follows in your extension.

use Stripe\Account;
Related Topic