@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.) hq.recaptime.dev/wiki/Phorge
phorge phabricator
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

at upstream/main 67 lines 2.1 kB view raw
1= Stripe PHP bindings 2{<img src="https://travis-ci.org/stripe/stripe-php.svg?branch=master" alt="Build Status" />}[https://travis-ci.org/stripe/stripe-php] 3{<img src="https://poser.pugx.org/stripe/stripe-php/v/stable.svg" alt="Latest Stable Version" />}[https://packagist.org/packages/stripe/stripe-php] 4{<img src="https://poser.pugx.org/stripe/stripe-php/downloads.svg" alt="Total Downloads" />}[https://packagist.org/packages/stripe/stripe-php] 5{<img src="https://poser.pugx.org/stripe/stripe-php/license.svg" alt="License" />}[https://packagist.org/packages/stripe/stripe-php] 6 7You can sign up for a Stripe account at https://stripe.com. 8 9== Requirements 10 11PHP 5.2 and later. 12 13== Composer 14 15You can install the bindings via Composer[http://getcomposer.org/]. Add this to your +composer.json+: 16 17 { 18 "require": { 19 "stripe/stripe-php": "1.*" 20 } 21 } 22 23Then install via: 24 25 composer.phar install 26 27To use the bindings, either user Composer's autoload[https://getcomposer.org/doc/00-intro.md#autoloading]: 28 29 require_once('vendor/autoload.php'); 30 31Or manually: 32 33 require_once('/path/to/vendor/stripe/stripe-php/lib/Stripe.php'); 34 35== Manual Installation 36 37Obtain the latest version of the Stripe PHP bindings with: 38 39 git clone https://github.com/stripe/stripe-php 40 41To use the bindings, add the following to your PHP script: 42 43 require_once("/path/to/stripe-php/lib/Stripe.php"); 44 45== Getting Started 46 47Simple usage looks like: 48 49 Stripe::setApiKey('d8e8fca2dc0f896fd7cb4cb0031ba249'); 50 $myCard = array('number' => '4242424242424242', 'exp_month' => 5, 'exp_year' => 2015); 51 $charge = Stripe_Charge::create(array('card' => $myCard, 'amount' => 2000, 'currency' => 'usd')); 52 echo $charge; 53 54== Documentation 55 56Please see https://stripe.com/api for up-to-date documentation. 57 58== Tests 59 60In order to run tests you have to install SimpleTest[http://packagist.org/packages/simpletest/simpletest] via Composer[http://getcomposer.org/] (recommended way): 61 62 composer.phar update --dev 63 64Run test suite: 65 66 php ./test/Stripe.php 67