Skip to content

Instantly share code, notes, and snippets.


Siddarth Chandrasekaran siddarth

View GitHub Profile
siddarth / gist:1379745
Created Nov 20, 2011 — forked from gdb/gist:1255035
Stripe PHP simple example
View gist:1379745
require 'path-to-Stripe.php';
if ($_POST) {
$error = '';
$success = '';
try {
if (!isset($_POST['stripeToken']))
throw new Exception("The Stripe Token was not generated correctly");
You can’t perform that action at this time.