SilverStripe integration with omnipay PHP payments library.
I'm trying to get Omnipay working on my local machine, I've managed to clone silverstripe/omnipay and composer require omnipay onto my machine and I can see the code on my file system, however when I go to the checkout page I get an Apache error: [client 127.0.0.1:48327] PHP Fatal error: Class 'Omnipay\Common\GatewayFactory' not found in /var/www/tpd/silverstripe-omnipay/code/model/GatewayInfo.php on line 33
I'm guessing there's something missing in the include path or the Autoloader isn't loading it
composer makes a huge directory tree /var/www/tpd/omnipay/vendor/omnipay/common/src/Omnipay/ which I've tried linking to thus: haydn@scm:/var/www/tpd$ ls -l Omnipay lrwxrwxrwx 1 www-data www-data 55 Oct 5 10:13 Omnipay -> /var/www/tpd/omnipay/vendor/omnipay/common/src/Omnipay/
I ran sudo composer require burnbright/silverstripe-omnipay from /var/www/tpd and now my checkout page works :) , p.s I don't like composer there's too much magic in there ;)
I’ve created a gitter room for burnbright/silverstripe-omnipay, i’ll answer this question in there. :)