Skip to content

Instantly share code, notes, and snippets.

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