You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

199 lines
5.2 KiB
Python

"""
This class is designed to handle Clients
"""
import stripe
from couchdbkit import Server, Document
import json
) ;
has_plan = False
"""
def subscribe(self,id,plans):
r = []
for plan in plans:
x = self.stripe.Subscription.create(
customer=id,
plan=plan['id']
) ;
info = self.db.get(uid)
#db.save_doc(doc) ;