Skip to content

extralam/Stripe-Android

Repository files navigation

Stripe-Android

Android Stripe UI

  • Implement A Stripe UI Helper

ScreenShot



# Video ScreenShot


##Gradle

  • Step 1. Add the JitPack repository to your build file
  • Add it in your root build.gradle at the end of repositories:
allprojects {
	repositories {
		...
		maven { url "https://jitpack.io" }
	}
}
  • Step 2. Add the dependency
compile 'com.github.extralam:Stripe-Android:1.0.2'

Sample Code

String mDefaultPublishKey = "pk_test_your_code";
StripePaymentDialog.show(
        getSupportFragmentManager(),
        mDefaultPublishKey,
        "[email protected]",
        "https://stripe.com/img/about/logos/logos/black.png",
        "Your Shop Name Limited",
        "$100 Movie Ticket",
        "hkd",
        100,
        new StripePaymentDialog.OnStripePaymentDismissListener() {
            @Override
            public void onSuccess(Dialog mmDialog, Token mmToken) {
                Log.d("atest","id : " + mmToken.getId());
            }
        });

About me

An android developer in Hong Kong.

About

Simple Android Stripe implement Library

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •  

Languages