stripe-android

Stripe Android SDK

  • Owner: stripe/stripe-android
  • Platform:
  • License:: MIT License
  • Category::
  • Topic:
  • Like:
    0
      Compare:

Github stars Tracking Chart

Stripe Android SDK

Build Status
GitHub release
License

The Stripe Android SDK makes it quick and easy to build an excellent payment experience in your Android app. We provide powerful and customizable UI elements that can be used out-of-the-box to collect your users' payment details. We also expose the low-level APIs that power those UIs so that you can build fully custom experiences.

Get started with our ? integration guides and example projects, or ? browse the SDK reference.

Updating to a newer version of the SDK? See our migration guide and changelog.

Table of contents

Installation

Requirements

Configuration

Add stripe-android to your build.gradle dependencies.

dependencies {
    implementation 'com.stripe:stripe-android:14.0.0'
}

Releases

  • The changelog provides a summary of changes in each release.
  • The migration guide provides instructions on upgrading from older versions.

Proguard

The Stripe Android SDK will configure your app's Proguard rules using proguard-rules.txt.

Features

Simplified Security: Use the SDK to collect credit card numbers and remain PCI compliant. This means sensitive data is sent directly to Stripe instead of passing through your server. For more information, see our Integration Security Guide.

Google Pay: Stripe is fully compatible with Google Pay.

Stripe API: We provide low-level APIs that correspond to objects and methods in the Stripe API. You can build your own entirely custom UI on top of this layer.

SCA-Ready: The SDK automatically performs native 3D Secure authentication to comply with Strong Customer Authentication regulation in Europe.

Native UI: We provide native screens and elements to collect payment and shipping details. For example, CardInputWidget is a view that collects and validates card details. You can use these individually, or take all of the prebuilt UI in one flow by following the Basic Integration guide.

Getting Started

Get started with our ? integration guides and example projects, or ? browse the SDK reference.

The Stripe class is the entry-point to the Stripe SDK. It must be instantiated with a Stripe publishable key.

When testing, you can use a test publishable key. Remember to replace the test key with your live key in production. You can view your API keys in the Stripe Dashboard.

new Stripe(context, "pk_test_yourkey");

Examples

Main metrics

Overview
Name With Ownerstripe/stripe-android
Primary LanguageKotlin
Program languageJava (Language Count: 6)
Platform
License:MIT License
所有者活动
Created At2012-11-29 18:11:30
Pushed At2025-06-24 20:19:47
Last Commit At2025-06-24 10:29:14
Release Count335
Last Release Namev21.19.0 (Posted on 2025-06-23 18:19:04)
First Release Namev1.0.0 (Posted on 2013-03-21 14:38:46)
用户参与
Stargazers Count1.4k
Watchers Count61
Fork Count675
Commits Count9.1k
Has Issues Enabled
Issues Count1198
Issue Open Count56
Pull Requests Count8582
Pull Requests Open Count41
Pull Requests Close Count1037
项目设置
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private