Skip to content

Instantly share code, notes, and snippets.

View siddarth's full-sized avatar

Siddarth Chandrasekaran siddarth

View GitHub Profile
@siddarth
siddarth / gist:1379745
Created November 20, 2011 02:53 — forked from gdb/gist:1255035
Stripe PHP simple example
<?php
require 'path-to-Stripe.php';
if ($_POST) {
Stripe::setApiKey("YOUR-API-KEY");
$error = '';
$success = '';
try {
if (!isset($_POST['stripeToken']))
throw new Exception("The Stripe Token was not generated correctly");