API Libraries
Stripe has official libraries for different programming languages and mobile platforms. There are also many more third-party libraries and plugins created by the Stripe community.
Ruby
Available as a gem:
sudo gem install stripe
If you use bundler, you can use this line:
gem 'stripe', :git => 'https://github.com/stripe/stripe-ruby'
Check out the Ruby API docs, or see the source on GitHub.
Python
Available through pip:
pip install --upgrade stripe
Alternatively, you can also use easy_install:
easy_install --upgrade stripe
Check out the Python API docs, or see the source on GitHub. You can also find the Stripe package on PyPI.
PHP
The PHP library is installed via Composer. Add stripe/stripe-php to your composer.json file:
{
"require": {
"stripe/stripe-php": "4.*"
}
}
Alternatively, you can download the source directly.
Check out the PHP API docs, or see the source on GitHub.
Java
For Maven, add the following dependency to your POM:
<dependency>
<groupId>com.stripe</groupId>
<artifactId>stripe-java</artifactId>
<version>3.5.0</version>
</dependency>
In other environments, manually install the following JARs:
- The Stripe JAR from our github release page
- Google Gson from https://github.com/google/gson
Check out the Java API docs, or see the source on GitHub.
Node.js
Install via npm:
npm install stripe
Check out the node.js API Docs, or see the source on GitHub.
Go
Install via go:
go get github.com/stripe/stripe-go
Then import the package:
import (
"github.com/stripe/stripe-go"
)
For more details, check out the Go API docs and GoDoc, or see the source on GitHub.
iOS
Check out our iOS documentation.
Android
Check out our Android documentation.
Community Libraries
Find some of the many community-supported libraries available for Stripe listed below.
Angular
C#
- Stripe.NET by Jayme Davis.
- ServiceStack.Stripe by TeamServiceStack
ColdFusion
PHP
Perl
- Stripe Perl by Luke Closs.
- Business-Stripe by Paul Pham
Ruby
- ActiveMerchant by Ross Boucher and Greg Brockman
- Spree by Greg Brockman
- Payola, a Rails engine by Pete Keen
Other
- stripe-clojure by Prachetas Prabhu
- Haskell by David Johnson
- Smalltalk/Seaside by Paul DeBruicker
- Choreos by Temboo
- GWT by ArcBees
- Stripe-CLI by Andy Cohen
- Stripe Dart by Martin Flucka and Matias Meno at Exit Live.
Plugins for third-party services
Want to make an existing tool better with Stripe? Here are some plugins to help you get started without any programming needed.
Developed by Stripe
- Salesforce Commerce Cloud (formerly Demandware)
- Shopware
Developed by the community
Implemented your own library or an example you'd like to share? Send a link to your code and we'll be happy to add it to the list!