def pay_ship_info(request): credit_pay_ship_info = import_func_from_string(getattr(django_settings, 'CREDIT_PAY_SHIP_INFO', 'payment.views.payship.credit_pay_ship_info')) return credit_pay_ship_info(request, config_get_group('PAYMENT_SATCHMO_BRAINTREE'))
def confirm_info(request): credit_confirm_info = import_func_from_string(getattr(django_settings, 'CREDIT_CONFIRM_INFO', 'payment.views.confirm.credit_confirm_info')) return credit_confirm_info(request, config_get_group('PAYMENT_SATCHMO_BRAINTREE'))
def pay_ship_info(request): credit_pay_ship_info = import_func_from_string( getattr(django_settings, 'CREDIT_PAY_SHIP_INFO', 'payment.views.payship.credit_pay_ship_info')) return credit_pay_ship_info(request, config_get_group('PAYMENT_SATCHMO_BRAINTREE'))
def confirm_info(request): credit_confirm_info = import_func_from_string( getattr(django_settings, 'CREDIT_CONFIRM_INFO', 'payment.views.confirm.credit_confirm_info')) return credit_confirm_info(request, config_get_group('PAYMENT_SATCHMO_BRAINTREE'))
from django.conf import settings as django_settings from django.template import loader, Context from django.utils.http import urlencode from django.utils.translation import ugettext_lazy as _ from payment.modules.base import BasePaymentProcessor, ProcessorResult from satchmo_store.shop.models import Config from satchmo_utils.numbers import trunc_decimal from tax.utils import get_tax_processor from livesettings import config_get_group import signals try: from satchmo_braintree import import_func_from_string braintree_wrapper_server = import_func_from_string( getattr(django_settings, 'BRAINTREE_WRAPPER_SERVER')) except: braintree_wrapper_server = None from braintree import Configuration, Environment, Transaction class PaymentProcessor(BasePaymentProcessor): """ Braintree payment processing module ( http://www.braintreepaymentsolutions.com/ ) You must have an account with Braintree in order to use this module. """ def __init__(self, settings): super(PaymentProcessor, self).__init__('satchmo_braintree', settings) def can_authorize(self): return False # disabled for now
from django.conf import settings as django_settings from django.template import loader, Context from django.utils.http import urlencode from django.utils.translation import ugettext_lazy as _ from payment.modules.base import BasePaymentProcessor, ProcessorResult from satchmo_store.shop.models import Config from satchmo_utils.numbers import trunc_decimal from tax.utils import get_tax_processor from livesettings import config_get_group import signals try: from satchmo_braintree import import_func_from_string braintree_wrapper_server = import_func_from_string(getattr(django_settings, "BRAINTREE_WRAPPER_SERVER")) except: braintree_wrapper_server = None from braintree import Configuration, Environment, Transaction class PaymentProcessor(BasePaymentProcessor): """ Braintree payment processing module ( http://www.braintreepaymentsolutions.com/ ) You must have an account with Braintree in order to use this module. """ def __init__(self, settings): super(PaymentProcessor, self).__init__("satchmo_braintree", settings) def can_authorize(self):