Skip to content

Instantly share code, notes, and snippets.

tcope25

Block or report user

Report or block tcope25

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:d7b9b3643c951cd20b9d
{% if todayProjects is not null %}
{% for project in todayProjects %}
{% include 'projects/block-project.twig' with { 'project': project } %}
{% endfor %}
{% endif %}
View gist:b57534e8c22a582b864e
<?php
require_once('./lib/Stripe.php');
if ($_POST) {
Stripe::setApiKey("blah");
$error = '';
$success = '';
try {
if (!isset($_POST['stripeToken'])) {
throw new Exception("The Stripe Token was not generated correctly");
View gist:c84953454ed02be10bc3
$customer = Stripe_Customer::create(array(
'email' => $_POST['email'],
'description' => $_POST['first-name'] . " " . $_POST['last-name'],
'card' => $_POST['stripeToken'],
'plan' => 'wh_15'
)
);
You can’t perform that action at this time.