Skip to content

Latest commit

 

History

History
39 lines (28 loc) · 1.45 KB

README.en.md

File metadata and controls

39 lines (28 loc) · 1.45 KB

elepay android demo appliation

This is a demo application for the usage of elepay Android SDK.

Requirement

  • Android API 21
  • Android Studio 3.2.1 +
  • Kotlin 1.3 +
  • Gradle 4.6 +

Note that the version of the IDE and build tools may increase in the future.

  • elepay API key (test mode key and live mode key)

You should request those keys from https://admin.elepay.io

Usage

You can either git clone or download the zip of the project. Open the project in Android Studio and replace the API keys in

app/src/main/java/jp/elestyle/androidapp/elepaydemoapp/ui/PaymentActivity.kt

    private val testModePublicKey = PaymentManager.INVALID_KEY
    private val liveModePublicKey = PaymentManager.INVALID_KEY
    // The following keys are used to generate charge data.
    // You may consider create your charge data from your server for payment management.
    // So these keys may not live here.
    private val testModeSecretKey = PaymentManager.INVALID_KEY
    private val liveModeSecretKey = PaymentManager.INVALID_KEY

After running, there are 2 products to demo the payment processing. And each product can be payed by several payment methods. However, not all of the payment method work for every product.

  • The product with price ¥1 is available for Alipay and UnionPay.
  • The product with price ¥100 is available for credit-card and Paypal testing.