2012-08-16 21:11:32 +00:00
|
|
|
{% extends "basepledge.html" %}
|
|
|
|
{% load humanize %}
|
|
|
|
|
|
|
|
{% block title %}Stripe{% endblock %}
|
|
|
|
|
|
|
|
{% block extra_extra_head %}
|
|
|
|
<link type="text/css" rel="stylesheet" href="/static/css/campaign.css" />
|
|
|
|
<link type="text/css" rel="stylesheet" href="/static/css/pledge.css" />
|
|
|
|
|
2012-08-29 14:34:20 +00:00
|
|
|
<link href="/static/stripe/tag.css" rel="stylesheet" type="text/css">
|
|
|
|
<script type="text/javascript" src="/static/stripe/tag.js"></script>
|
2012-08-16 21:11:32 +00:00
|
|
|
|
2012-09-10 20:17:30 +00:00
|
|
|
|
2012-08-16 21:11:32 +00:00
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block doccontent %}
|
2012-08-29 15:22:35 +00:00
|
|
|
Stripe Test!:
|
2012-08-16 21:11:32 +00:00
|
|
|
|
|
|
|
<span class="payment-errors"></span>
|
2012-08-29 14:34:20 +00:00
|
|
|
<form action="" method="post" id="payment-form">
|
2012-08-16 21:11:32 +00:00
|
|
|
{% csrf_token %}
|
2012-08-29 14:34:20 +00:00
|
|
|
<payment key="{{STRIPE_PK}}"></payment>
|
|
|
|
<input type="submit" value="Submit">
|
2012-08-16 21:11:32 +00:00
|
|
|
</form>
|
|
|
|
|
2012-09-10 20:17:30 +00:00
|
|
|
<script type="application/x-javascript">
|
|
|
|
|
|
|
|
var $j = jQuery.noConflict();
|
|
|
|
console.debug('setting up handlers in stripe.html');
|
|
|
|
|
|
|
|
$j('payment').bind('success.payment', function () {
|
|
|
|
console.debug('success.payment ev');
|
|
|
|
});
|
|
|
|
|
|
|
|
</script>
|
2012-08-29 14:34:20 +00:00
|
|
|
|
2012-08-16 21:11:32 +00:00
|
|
|
{% endblock %}
|
|
|
|
|