Skip to content

Instantly share code, notes, and snippets.

@somair
somair / checkout.html
Created July 14, 2017 05:59
Using checkout.js with dj-stripe
{% load currency %}
{% load staticfiles %}
<html>
<head></head>
<body>
<div class="container">
<h2 class="text-center">Studio Registration</h2>
<div class="row" id="registration">
<div class="col-xs-12 column text-left">
@somair
somair / app.py
Created July 13, 2017 08:22 — forked from octaflop/app.py
import os
from flask import Flask, render_template, request
import stripe
stripe_keys = {
'secret_key': os.environ['SECRET_KEY'],
'publishable_key': os.environ['PUBLISHABLE_KEY']
}
stripe.api_key = stripe_keys['secret_key']
@somair
somair / app.py
Created July 13, 2017 08:21 — forked from maccman/app.py
Stripe Flask Example
import os
from flask import Flask, render_template, request
import stripe
stripe_keys = {
'secret_key': os.environ['SECRET_KEY'],
'publishable_key': os.environ['PUBLISHABLE_KEY']
}
stripe.api_key = stripe_keys['secret_key']