Permalink
Browse files

Initial release

  • Loading branch information...
0 parents commit 7f3864f4e0185b4505a4bc94c3aa15559c43315b @gdb gdb committed Jun 1, 2011
Showing with 4,294 additions and 0 deletions.
  1. +21 −0 LICENSE
  2. +20 −0 README.rdoc
  3. +1 −0 VERSION
  4. +3,524 −0 src/data/ca-certificates.crt
  5. +613 −0 src/stripe.php
  6. +115 −0 test/test_stripe.php
@@ -0,0 +1,21 @@
+The MIT License
+
+Copyright (c) 2010 Stripe
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
@@ -0,0 +1,20 @@
+= Installation
+
+Obtain the latest version of the Stripe PHP bindings with:
+
+ git clone https://github.com/stripe-bindings/stripe-php
+
+To get started, add the following to your PHP script:
+
+ require_once("/path/to/stripe-php/src/stripe.php");
+
+Simple usage looks like:
+
+ Stripe::$apiKey = 'd8e8fca2dc0f896fd7cb4cb0031ba249';
+ $myCard = array('number' => 4242424242424242, 'exp_month' => 5, 'exp_year' => 2015);
+ $charge = StripeCharge::create(array('card' => $myCard, 'amount' => 2000, 'currency' => 'usd'));
+ var_dump($charge);
+
+= Documentation
+
+Please see https://stripe.com/api for up-to-date documentation.
@@ -0,0 +1 @@
+1.5.0
Oops, something went wrong.

0 comments on commit 7f3864f

Please sign in to comment.