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

torgosPizza created an issue. See original summary.

torgospizza’s picture

Status: Active » Needs review
StatusFileSize
new1.21 KB

It also turns out the path to init.php was wrong. D'oh!

Patch attached.

torgospizza’s picture

Issue summary: View changes
torgospizza’s picture

Issue summary: View changes

  • torgosPizza committed 8e9f93b on 7.x-3.x
    Issue #2816141 by torgosPizza: Do not specify all files in...
torgospizza’s picture

Status: Needs review » Fixed

Been 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).

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.