Object.defineProperty(orion.stripe, 'api', {
  get: function() {
    return StripeSync(orion.config.get('STRIPE_SECRET_KEY'));
  }
});

@@ -1,8 +1,234 @@
+Meteor.startup(function () %7B%0A  orion.stripe.cards._ensureIndex(%7B%0A    'metadata.userId': 1,%0A    id: 1,%0A    customer: 1%0A  %7D);%0A%0A  orion.stripe.charges._ensureIndex(%7B%0A    'metadata.userId': 1,%0A    id: 1,%0A    created: 1%0A  %7D);%0A%7D);%0A%0A
 Object.d

add indexes