Skip to content

Instantly share code, notes, and snippets.

@josephmisiti
Created September 4, 2012 14:43
Show Gist options
  • Save josephmisiti/3621831 to your computer and use it in GitHub Desktop.
Save josephmisiti/3621831 to your computer and use it in GitHub Desktop.
def credit_card(request):
params = {
'STRIPE_PUBLISHABLE' : settings.STRIPE_PUBLISHABLE,
}
c = RequestContext(request)
q_type = request.GET.get('li')
params['q_type'] = q_type
if q_type == 'SEARCH' or q_type == 'REGISTER':
sub_type = request.GET.get('typ')
params['s_type'] = sub_type
return render_to_response('credit_card.html', params,context_instance=c)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment