As mentioned in the Stripe API Readme, it is not needed to specify all of the includes in the Stripe API Library, since the init.php file loads them all.
This will allow us to not require X-Autoload module, for instance, nor are we forced to use Composer to build the Library. Technically this method makes the code footprint somewhat bigger, due to the fact that we aren't specifying the includes we need, but I feel this is overall the best long-term approach.
Note that this does NOT require X-Autoload in order to work. The init.php file loads all /lib files via a require_once() call on each, and so the library works as expected.
Comments
Comment #2
torgospizzaIt also turns out the path to init.php was wrong. D'oh!
Patch attached.
Comment #3
torgospizzaComment #4
torgospizzaComment #6
torgospizzaBeen using this in production without issue. As long as people are using 3.x of the Library it will work (older versions may not have init.php).