Example #1
0
def index(request, account_id):
    account = balanced.Account.find(fucking_shit_hack_remove_me(account_id))
    return render_to_response(
        'card_processing/index.html',
        {
            'account': account
        },
        context_instance=RequestContext(request)
    )
Example #2
0
def show(request, account_id, card_id):
    if request.method == 'PUT':
        return update(request, account_id, card_id)
    account = balanced.Account.find(fucking_shit_hack_remove_me(account_id))
    card_uri = '/'.join([account.cards_uri, card_id])
    card = balanced.Card.find(card_uri)
    return render_to_response('card_processing/show.html', {
        'account': account,
        'card': card
    },
                              context_instance=RequestContext(request))
Example #3
0
def show(request, account_id, bank_account_id):
    account = balanced.Account.find(fucking_shit_hack_remove_me(account_id))
    card_uri = '/'.join([account.bank_accounts_uri, bank_account_id])
    bank_account = balanced.BankAccount.find(card_uri)

    return render_to_response(
        'ach/show.html',
        {
            'account': account,
            'bank_account': bank_account
        },
        context_instance=RequestContext(request)
    )
Example #4
0
def show(request, account_id, card_id):
    if request.method == 'PUT':
        return update(request, account_id, card_id)
    account = balanced.Account.find(fucking_shit_hack_remove_me(account_id))
    card_uri = '/'.join([account.cards_uri, card_id])
    card = balanced.Card.find(card_uri)
    return render_to_response(
        'card_processing/show.html',
        {
            'account': account,
            'card': card
        },
        context_instance=RequestContext(request)
    )
Example #5
0
def create(request, account_id):
    if request.method == 'POST':
        card = balanced.Card.find(request.POST['balancedCreditCardURI'])
        account = balanced.Account.find(
            fucking_shit_hack_remove_me(account_id))
        account.add_card(card.uri)
        return redirect('card_processing.show',
                        account_id=account_id,
                        card_id=card.id)

    return render_to_response('card_processing/create.html', {
        'account': account_id,
    },
                              context_instance=RequestContext(request))
Example #6
0
def create(request, account_id):
    if request.method == 'POST':
        bank_account = balanced.BankAccount.find(
            request.POST['balancedBankAccountURI'])
        account = balanced.Account.find(
            fucking_shit_hack_remove_me(account_id)
        )
        account.add_bank_account(bank_account.uri)
        return redirect('ach.show',
                        account_id=account_id,
                        bank_account_id=bank_account.id)
    return render_to_response(
        'ach/create.html',
        {

        },
        context_instance=RequestContext(request)
    )
Example #7
0
def create(request, account_id):
    if request.method == 'POST':
        card = balanced.Card.find(request.POST['balancedCreditCardURI'])
        account = balanced.Account.find(
            fucking_shit_hack_remove_me(account_id)
        )
        account.add_card(card.uri)
        return redirect('card_processing.show',
                        account_id=account_id,
                        card_id=card.id)

    return render_to_response(
        'card_processing/create.html',
        {
            'account': account_id,
        },
        context_instance=RequestContext(request)
    )
Example #8
0
def index(request, account_id):
    account = balanced.Account.find(fucking_shit_hack_remove_me(account_id))
    return render_to_response('card_processing/index.html',
                              {'account': account},
                              context_instance=RequestContext(request))