import os

from setup import basedir


class BaseConfig(object):
    SECRET_KEY = "SO_SECURE"
    DEBUG = True
    # SQLALCHEMY_DATABASE_URI = os.environ['DATABASE_URL']
    # SQLALCHEMY_TRACK_MODIFICATIONS = True


class TestingConfig(object):
    """Development configuration."""
    TESTING = True
    DEBUG = True
    WTF_CSRF_ENABLED = False
    # SQLALCHEMY_DATABASE_URI = 'sqlite:///:memory:'
    DEBUG_TB_ENABLED = True
    PRESERVE_CONTEXT_ON_EXCEPTION = False

PAYPAL_MODE='sandbox'   # sandbox or live
PAYPAL_CLIENT_ID='AZDea7NX3hwxn06oMt1-DkSUq2czSmEqcS45TYwImm7tlWNNXDxojf0U5gLQ6yz8-HW53_k7MKwE3d4S'
PAYPAL_CLIENT_SECRET='EKjXxlBc0TELhCpyJLJ6GjMRHp0D6xFg6eFrDBLrvESGMKpJVITjDtUDglaLTJSQRGMSNb3NiQbjDRAS'

@@ -3,16 +3,27 @@
 port os%0A
+import json
 %0Afrom se
@@ -42,16 +42,292 @@
 asedir%0A%0A
+PROJECT_NAME=%22Payment Test%22%0APAYMENT_MODE = %22sandbox%22%0Awith open('payment.json') as payment_file:%0A    PAYMENT=json.load(payment_file)%0A%0A    PAYPAL = PAYMENT%5B'paypal'%5D%5BPAYMENT_MODE%5D%0A    BRAINTREE = PAYMENT%5B'braintree'%5D%5BPAYMENT_MODE%5D%0A    STRIPE = PAYMENT%5B'stripe'%5D%5BPAYMENT_MODE%5D%0A%0A%0A
 %0Aclass B
@@ -755,250 +755,4 @@
 se%0A%0A
-PAYPAL_MODE='sandbox'   # sandbox or live%0APAYPAL_CLIENT_ID='AZDea7NX3hwxn06oMt1-DkSUq2czSmEqcS45TYwImm7tlWNNXDxojf0U5gLQ6yz8-HW53_k7MKwE3d4S'%0APAYPAL_CLIENT_SECRET='EKjXxlBc0TELhCpyJLJ6GjMRHp0D6xFg6eFrDBLrvESGMKpJVITjDtUDglaLTJSQRGMSNb3NiQbjDRAS'%0A

remove paypal config