Skip to content

Commit 777c838

Browse files
Merge pull request #15 from cherrigaryhsu/feature/PlusPay
feat: add PlusPayExample app, and sdk version = '3.8.0'
2 parents 2dc4991 + ccbc479 commit 777c838

File tree

45 files changed

+1434
-31
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+1434
-31
lines changed

AtomePayExample/app/libs/tpdirect.aar

18.8 KB
Binary file not shown.
18.8 KB
Binary file not shown.
18.8 KB
Binary file not shown.
18.8 KB
Binary file not shown.

JkosPayExample/app/libs/tpdirect.aar

18.8 KB
Binary file not shown.

LinePayExample/app/libs/tpdirect.aar

18.8 KB
Binary file not shown.

PiWalletExample/app/libs/tpdirect.aar

18.8 KB
Binary file not shown.

PlusPayExample/.gitignore

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
*.iml
2+
.gradle
3+
/local.properties
4+
/.idea/caches
5+
/.idea/libraries
6+
/.idea/modules.xml
7+
/.idea/workspace.xml
8+
/.idea/navEditor.xml
9+
/.idea/assetWizardSettings.xml
10+
.DS_Store
11+
/build
12+
/captures
13+
.externalNativeBuild
14+
.cxx
15+
local.properties

PlusPayExample/app/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/build

PlusPayExample/app/build.gradle

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
plugins {
2+
id 'com.android.application'
3+
}
4+
5+
android {
6+
compileSdk 31
7+
8+
defaultConfig {
9+
applicationId "tech.cherri.pluspayexample"
10+
minSdk 18
11+
targetSdk 31
12+
versionCode 1
13+
versionName "1.0"
14+
15+
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
16+
}
17+
18+
buildTypes {
19+
release {
20+
minifyEnabled false
21+
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
22+
}
23+
}
24+
compileOptions {
25+
sourceCompatibility JavaVersion.VERSION_1_8
26+
targetCompatibility JavaVersion.VERSION_1_8
27+
}
28+
}
29+
30+
dependencies {
31+
32+
implementation 'androidx.appcompat:appcompat:1.4.1'
33+
implementation 'com.google.android.material:material:1.5.0'
34+
implementation 'androidx.constraintlayout:constraintlayout:2.1.3'
35+
implementation files('libs/tpdirect.aar')
36+
testImplementation 'junit:junit:4.+'
37+
androidTestImplementation 'androidx.test.ext:junit:1.1.3'
38+
androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
39+
}

PlusPayExample/app/libs/tpdirect.aar

443 KB
Binary file not shown.

PlusPayExample/app/proguard-rules.pro

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Add project specific ProGuard rules here.
2+
# You can control the set of applied configuration files using the
3+
# proguardFiles setting in build.gradle.
4+
#
5+
# For more details, see
6+
# http://developer.android.com/guide/developing/tools/proguard.html
7+
8+
# If your project uses WebView with JS, uncomment the following
9+
# and specify the fully qualified class name to the JavaScript interface
10+
# class:
11+
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
12+
# public *;
13+
#}
14+
15+
# Uncomment this to preserve the line number information for
16+
# debugging stack traces.
17+
#-keepattributes SourceFile,LineNumberTable
18+
19+
# If you keep the line number information, uncomment this to
20+
# hide the original source file name.
21+
#-renamesourcefileattribute SourceFile
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
3+
xmlns:tools="http://schemas.android.com/tools"
4+
package="tech.cherri.pluspayexample">
5+
6+
<application
7+
android:allowBackup="true"
8+
android:icon="@mipmap/ic_launcher"
9+
android:label="@string/app_name"
10+
android:roundIcon="@mipmap/ic_launcher_round"
11+
android:supportsRtl="true"
12+
android:theme="@style/Theme.PlusPayExample"
13+
tools:replace="android:allowBackup">
14+
<activity
15+
android:name=".MainActivity"
16+
android:exported="true">
17+
<intent-filter>
18+
<action android:name="android.intent.action.MAIN" />
19+
<category android:name="android.intent.category.LAUNCHER" />
20+
</intent-filter>
21+
22+
<intent-filter android:autoVerify="true">
23+
<action android:name="android.intent.action.VIEW" />
24+
25+
<category android:name="android.intent.category.DEFAULT" />
26+
<category android:name="android.intent.category.BROWSABLE" />
27+
28+
<data
29+
android:host="example.com"
30+
android:pathPrefix="/test"
31+
android:scheme="https" />
32+
33+
</intent-filter>
34+
35+
<intent-filter android:autoVerify="true">
36+
<action android:name="android.intent.action.VIEW" />
37+
38+
<category android:name="android.intent.category.DEFAULT" />
39+
<category android:name="android.intent.category.BROWSABLE" />
40+
41+
<data
42+
android:host="tech.cherri"
43+
android:path="/myaccount/detail"
44+
android:scheme="tpdirectexamplepluspay" />
45+
</intent-filter>
46+
</activity>
47+
</application>
48+
49+
<queries>
50+
<!-- for plus pay production app -->
51+
<package android:name="grasea.familife" />
52+
<!-- for plus pay sandbox app -->
53+
<!-- <package android:name="tw.com.pluspay.vendor.uat" />-->
54+
</queries>
55+
56+
</manifest>
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
package tech.cherri.pluspayexample;
2+
3+
public class Constants {
4+
5+
public static final String TAPPAY_DOMAIN = "https://sandbox.tappaysdk.com/tpc";
6+
7+
public static final String TAPPAY_PAY_BY_PRIME_URL = "/payment/pay-by-prime";
8+
public static final String FRONTEND_REDIRECT_URL_EXAMPLE = "https://example.com/front-end-redirect";
9+
public static final String BACKEND_NOTIFY_URL_EXAMPLE = "https://example.com/back-end-notify";
10+
11+
public static final String PARTNER_KEY = "your partner key";
12+
public static final String APP_KEY = "your app key";
13+
public static final Integer APP_ID = 0; // your app id
14+
15+
public static final String MERCHANT_ID = "your merchant id";
16+
17+
public static final String RETURN_URL = "tpdirectexamplepluspay://tech.cherri/myaccount/detail";
18+
}

0 commit comments

Comments
 (0)