Commerce Stripe and 2.0 version of library with namespace? 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' =&gt; array(
      'name' =&gt; 'Stripe API Client Library for PHP',
      'vendor url' =&gt; 'https://stripe.com/',
      'download url' =&gt; 'https://github.com/stripe/stripe-php',
      'dependencies' =&gt; array(),
      'version arguments' =&gt; array(
        'file' =&gt; 'VERSION',
        'pattern' =&gt; '/(2.\d+(\.\d+)?)/',
      ),
      'files' =&gt; array(
        'php' =&gt; array(
          'init.php',
        ),
      ),
    'xautoload' =&gt; function($api) {
        $api-&gt;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?
Download the 2.x uc_stripe version of the gateway for Stripe - it has code that works (https://www.drupal.org/project/uc_stripe) as you are seeking - the version 2.0 library uses \Stripe\Action-to-Take:: instead of Stripe_Action-to-Take::  Stripe Connect however is a whole other issue requiring a OAuth2 flow and JSON working with the Stripe Webhooks to get it working initially and THEN one can use the API for the rest of the issues for nmaintainance