API Libraries

    Stripe has official libraries for different programming languages and mobile platforms. There are also many more third-party libraries and plug-ins created by the Stripe community.

    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.

    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.

    The PHP library can be installed via Composer:

    composer require stripe/stripe-php

    Alternatively, you can download the source directly.

    Check out the PHP API docs, or see the source on GitHub.

    For Maven, add the following dependency to your POM:

    <dependency>
      <groupId>com.stripe</groupId>
      <artifactId>stripe-java</artifactId>
      <version>10.0.2</version>
    </dependency>

    In other environments, manually install the following JARs:

    Check out the Java API docs, or see the source on GitHub.

    Install via npm:

    npm install stripe

    Check out the node.js API Docs, or see the source on GitHub.

    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.

    Install via dotnet:

    dotnet add package Stripe.net
    dotnet restore

    Or using NuGet:

    PM> Install-Package Stripe.net

    For more details, check out the .NET API docs, or see the source on GitHub.

    Check out our iOS and Android documentation to learn more about installing our mobile SDKs.

    Community Libraries

    Find some of the many community-supported libraries available for Stripe listed below.

    Plug-ins for third-party services

    Want to make an existing tool better with Stripe? Here are some plug-ins to help you get started without any programming needed.

    Developed by Stripe

    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!

    Questions?

    We're always happy to help with code or other questions you might have. Search our documentation, contact support, or connect with our sales team. You can also chat live with other developers in #stripe on freenode.

    Was this page helpful? Yes No

    Send

    Thank you for helping improve Stripe's documentation. If you need help or have any questions, please consider contacting support.

    On this page