I am working on an integration with Commerce Stripe and the new Connect functionality. This however requires the 2.0 version of the library which can be found here https://github.com/stripe/stripe-php/releases.
I have downloaded the source code for this and put this in my stripe-php directory. The stripe-php library has a namespace of Stripe. I have defined my hook_libraries_info
as follows
function bh_test_namespace_libraries_info() {
return array(
'stripe-php' => array(
'name' => 'Stripe API Client Library for PHP',
'vendor url' => 'https://stripe.com/',
'download url' => 'https://github.com/stripe/stripe-php',
'dependencies' => array(),
'version arguments' => array(
'file' => 'VERSION',
'pattern' => '/(2.\d+(\.\d+)?)/',
),
'files' => array(
'php' => array(
'init.php',
),
),
'xautoload' => function($api) {
$api->namespaceRoot('Stripe', 'lib');
},
),
);
}
I have installed the xautoload module. However, the classes are still not loaded. Does anyone have an idea as to what I am doing wrong?