Esempio n. 1
0
def checkout(request):
    data = {}
    #transaction data
    data['orderID'] = '1'
    data['amount'] = '500'
    data['currency'] = 'EUR'
    data['language'] = 'en'
    data['SHASign'] = Ogone.sign(data)

    context = {}
    context['form'] = Ogone.get_form(data)
    context['action'] = Ogone.get_action()

    return render_to_response('shop/checkout/form.html', context)
Esempio n. 2
0
def checkout(request):
    data = {}
    #transaction data
    data['orderID'] = '1'
    data['amount'] = '500'
    data['currency'] = 'EUR'
    data['language'] = 'en'
    data['SHASign'] = Ogone.sign(data)
    
    context = {}
    context['form'] = ogone_forms.OgoneForm(data)
    
    if ogone_settings.PRODUCTION:
        request.context['action'] = 'https://secure.ogone.com/ncol/test/orderstandard.asp'
    else:
        request.context['action'] = 'https://secure.ogone.com/ncol/prod/orderstandard.asp'