Beispiel #1
0
def offsite_authorize_net(request):
    params = {'x_amount': 1,
              'x_fp_sequence': datetime.datetime.now().strftime('%Y%m%d%H%M%S'),
              'x_fp_timestamp': datetime.datetime.now().strftime('%s'),
              'x_recurring_bill': 'F',
              }
    authorize_net_obj.add_fields(params)
    template_vars = {"obj": authorize_net_obj, 'title': authorize_net_obj.display_name}
    return render(request, 'app/offsite_authorize_net.html', template_vars)
Beispiel #2
0
def offsite_authorize_net(request):
    params = {'x_amount': 1,
              'x_fp_sequence': datetime.datetime.now().strftime('%Y%m%d%H%M%S'),
              'x_fp_timestamp': datetime.datetime.now().strftime('%s'),
              'x_recurring_bill': 'F',
              }
    authorize_net_obj.add_fields(params)
    template_vars = {"obj": authorize_net_obj, 'title': authorize_net_obj.display_name}
    return render(request, 'app/offsite_authorize_net.html', template_vars)
Beispiel #3
0
def offsite_authorize_net(request):
    params = {
        'x_amount': 1,
        'x_fp_sequence': datetime.datetime.now().strftime('%Y%m%d%H%M%S'),
        'x_fp_timestamp': datetime.datetime.now().strftime('%s'),
        'x_recurring_bill': 'F',
        'x_card_num': '4007000000027',
        'x_exp_date': '01/20',
        'x_card_code': '100',
        'x_first_name': 'John',
        'x_last_name': 'Doe',
        'x_address': '100, Spooner Street, Springfield',
        'x_city': 'San Francisco',
        'x_state': 'California',
        'x_zip': '90210',
        'x_country': 'United States'
    }
    authorize_net_obj.add_fields(params)
    template_vars = {"obj": authorize_net_obj, 'title': authorize_net_obj.display_name}
    return render(request, 'app/offsite_authorize_net.html', template_vars)
Beispiel #4
0
def offsite_authorize_net(request):
    params = {
        'x_amount': 1,
        'x_fp_sequence': datetime.datetime.now().strftime('%Y%m%d%H%M%S'),
        'x_fp_timestamp': datetime.datetime.now().strftime('%s'),
        'x_recurring_bill': 'F',
        'x_card_num': '4007000000027',
        'x_exp_date': '01/20',
        'x_card_code': '100',
        'x_first_name': 'John',
        'x_last_name': 'Doe',
        'x_address': '100, Spooner Street, Springfield',
        'x_city': 'San Francisco',
        'x_state': 'California',
        'x_zip': '90210',
        'x_country': 'United States'
    }
    authorize_net_obj.add_fields(params)
    template_vars = {
        "obj": authorize_net_obj,
        'title': authorize_net_obj.display_name
    }
    return render(request, 'app/offsite_authorize_net.html', template_vars)