2017-02-07 20:57:37 +00:00
|
|
|
'''
|
|
|
|
Default settings for longclaw apps
|
|
|
|
'''
|
2017-02-03 10:04:57 +00:00
|
|
|
from django.conf import settings
|
|
|
|
|
2017-02-07 20:57:37 +00:00
|
|
|
# The payment gateway backend to use
|
2017-03-12 18:05:00 +00:00
|
|
|
# Can be 'longclaw.longclawcheckout.gateways.braintree.BraintreePayment',
|
|
|
|
# 'longclaw.longclawcheckout.gateways.braintree.PaypalVZeroPayment',
|
|
|
|
# 'longclaw.longclawcheckout.gateways.stripe.StripePayment' or 'longclaw.longclawcheckout.gateways.BasePayment'
|
2017-02-07 20:57:37 +00:00
|
|
|
# Or a custom implementation
|
2017-02-03 16:55:21 +00:00
|
|
|
PAYMENT_GATEWAY = getattr(settings,
|
|
|
|
'PAYMENT_GATEWAY',
|
2017-03-12 18:05:00 +00:00
|
|
|
'longclaw.longclawcheckout.gateways.base.BasePayment')
|
2017-02-04 11:30:01 +00:00
|
|
|
|
2017-02-09 22:13:28 +00:00
|
|
|
# The product variant model to use. This allows custom implementations of
|
|
|
|
# product models.
|
|
|
|
PRODUCT_VARIANT_MODEL = getattr(
|
2017-02-17 09:03:21 +00:00
|
|
|
settings, 'PRODUCT_VARIANT_MODEL', 'longclawproducts.ProductVariant')
|
2017-02-07 20:57:37 +00:00
|
|
|
|
|
|
|
|
|
|
|
# Only required if using Stripe as the payment gateway
|
|
|
|
STRIPE_PUBLISHABLE = getattr(settings, 'STRIPE_PUBLISHABLE', '')
|
|
|
|
STRIPE_SECRET = getattr(settings, 'STRIPE_SECRET', '')
|
|
|
|
|
|
|
|
# Only required if using Braintree as the payment gateway
|
|
|
|
BRAINTREE_MERCHANT_ID = getattr(settings, 'BRAINTREE_MERCHANT_ID', '')
|
|
|
|
BRAINTREE_PUBLIC_KEY = getattr(settings, 'BRAINTREE_PUBLIC_KEY', '')
|
|
|
|
BRAINTREE_PRIVATE_KEY = getattr(settings, 'BRAINTREE_PRIVATE_KEY', '')
|
|
|
|
|
2017-03-12 18:05:00 +00:00
|
|
|
# Only required for using paypal as the payment gateway through braintree v.zero
|
2017-02-07 20:57:37 +00:00
|
|
|
VZERO_ACCESS_TOKEN = getattr(settings, 'VZERO_ACCESS_TOKEN', '')
|
2017-03-09 08:33:44 +00:00
|
|
|
|
|
|
|
API_URL_PREFIX = getattr(settings, 'LONGCLAW_API_URL_PREFIX', 'api/')
|