Skip to content

Latest commit

 

History

History
53 lines (43 loc) · 2.02 KB

File metadata and controls

53 lines (43 loc) · 2.02 KB

Project Setup

Note to devs: Add any details you think might be useful :)

Configure Stripe API Keys

  • Create a new File in the app directory called apikeys.gradle (it is a git ignored file local to your machine). This file will contain your private Stripe API keys.
  • Add one line to the file like this, and specify your Stripe Publishable API key: ext.STRIPE_API_CLIENT_KEY = '"your_publishable_api_key"'
  • Add one line to the file like this, and specify your Stripe Secret API key: ext.STRIPE_API_SERVER_KEY = '"your_secret_api_key"'
  • References to these keys are generated by the app/build.gradle commands and are accessible from the BuildConfig class in debug builds.
  • You will need these keys to process Credit Card payments through the Stripe platform.

Example apikeys.gradle file:

// Publishable API Key for the Android Client
ext.STRIPE_API_CLIENT_KEY = '"pk_test_superSekrit"'

// Secret API Key for the Java Server
ext.STRIPE_API_SERVER_KEY = '"sk_test_superDuperSekrit"'

Stripe Android Documentation

https://stripe.dev/stripe-android

AOSP Java Code Style Guidelines

Core Project Dependencies

// Room Database
def room_version = "2.2.4"
implementation "androidx.room:room-runtime:$room_version"
annotationProcessor "androidx.room:room-compiler:$room_version"

// Google Gson
implementation 'com.google.code.gson:gson:2.8.5'

// Square Retrofit HTTP Library - https://square.github.io/retrofit/
implementation 'com.squareup.retrofit2:retrofit:2.5.0'
implementation 'com.squareup.retrofit2:converter-gson:2.5.0'
implementation 'com.squareup.okhttp3:okhttp:3.12.0'
implementation 'com.squareup.okhttp3:logging-interceptor:3.11.0'

// Stripe Java SDK (Server)
implementation "com.stripe:stripe-java:17.16.0"

// Stripe Android SDK (Client)
implementation 'com.stripe:stripe-android:14.0.0'