Skip to content

Commit 27372cf

Browse files
committed
新增建行渠道支付
1 parent a219053 commit 27372cf

File tree

5 files changed

+59
-11
lines changed

5 files changed

+59
-11
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# ChangeLog
22

3+
### 2.1.19 (2018-10-31)
4+
* 新增:
5+
新增建行支付渠道
6+
37
### 2.1.18 (2018-06-29)
48
* 新增:
59
新增招行 app 支付

README.md

Lines changed: 37 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -39,13 +39,13 @@ Android SDK 要求 Android 2.3 及以上版本
3939

4040
```java
4141
dependencies {
42-
compile 'com.pingxx:pingpp-core:2.1.18' // (Ping++ 标准版 SDK) 必须添加
43-
compile 'com.pingxx:pingpp-ui:2.1.18' // (Ping++ UI 控件) 使用 Ping++ UI 时添加
42+
compile 'com.pingxx:pingpp-core:2.1.19' // (Ping++ 标准版 SDK) 必须添加
43+
compile 'com.pingxx:pingpp-ui:2.1.19' // (Ping++ UI 控件) 使用 Ping++ UI 时添加
4444
compile 'com.tencent.mm.opensdk:wechat-sdk-android-without-mta:+' // 使用微信支付时添加,具体版本参考微信官方文档
45-
compile 'com.pingxx:pingpp-alipay:2.1.18' // 使用支付宝时添加
46-
compile 'com.pingxx:pingpp-upacp:2.1.18' // 使用银联支付时添加
47-
compile 'com.pingxx:pingpp-qpay:2.1.18' // 使用QQ钱包时添加
48-
compile 'com.pingxx:pingpp-cmbwallet:2.1.18' // 使用招行一网通时添加
45+
compile 'com.pingxx:pingpp-alipay:2.1.19' // 使用支付宝时添加
46+
compile 'com.pingxx:pingpp-upacp:2.1.19' // 使用银联支付时添加
47+
compile 'com.pingxx:pingpp-qpay:2.1.19' // 使用QQ钱包时添加
48+
compile 'com.pingxx:pingpp-cmbwallet:2.1.19' // 使用招行一网通时添加
4949
}
5050
```
5151

@@ -102,7 +102,7 @@ dependencies {
102102
<activity
103103
android:name="com.pingplusplus.android.PaymentActivity"
104104
android:configChanges="orientation|keyboardHidden|navigation|screenSize"
105-
android:launchMode="singleTask"
105+
android:launchMode="singleTop"
106106
android:theme="@android:style/Theme.Translucent.NoTitleBar" >
107107
</activity>
108108
```
@@ -166,7 +166,7 @@ dependencies {
166166
<activity
167167
android:name="com.pingplusplus.android.PaymentActivity"
168168
android:configChanges="orientation|keyboardHidden|navigation|screenSize"
169-
android:launchMode="singleTask"
169+
android:launchMode="singleTop"
170170
android:theme="@android:style/Theme.Translucent.NoTitleBar" >
171171

172172
<intent-filter>
@@ -211,7 +211,7 @@ dependencies {
211211
<activity
212212
android:name="com.pingplusplus.android.PaymentActivity"
213213
android:configChanges="orientation|keyboardHidden|navigation|screenSize"
214-
android:launchMode="singleTask"
214+
android:launchMode="singleTop"
215215
android:theme="@android:style/Theme.Translucent.NoTitleBar" >
216216

217217
<intent-filter>
@@ -225,6 +225,27 @@ dependencies {
225225
</activity>
226226
```
227227

228+
- 建行支付需注册 (自定义 action-name 保持与服务端的 third_app_info 一致)
229+
230+
``` xml
231+
<activity android:name="com.ccb.ccbnetpay.activity.appresult.ResultActivity"
232+
android:configChanges="orientation|keyboardHidden|screenSize"
233+
android:screenOrientation="portrait">
234+
<intent-filter>
235+
<action android:name="自定义 action-name"/>
236+
<category android:name="android.intent.category.DEFAULT"/>
237+
</intent-filter>
238+
</activity>
239+
240+
<activity android:name="com.ccb.ccbnetpay.activity.CcbUnionPayActivity"
241+
android:configChanges="orientation|keyboardHidden|screenSize"
242+
android:screenOrientation="portrait"/>
243+
244+
<activity android:name="com.ccb.ccbnetpay.activity.CcbH5PayActivity"
245+
android:configChanges="orientation|keyboardHidden|screenSize"
246+
android:screenOrientation="portrait"/>
247+
```
248+
228249
#### 2. 获取到 charge/order 后,调起支付
229250
##### 获取 charge/order
230251

@@ -272,6 +293,11 @@ protected void onActivityResult(int requestCode, int resultCode, Intent data) {
272293
boolean isInstalled = Pingpp.isCmbWalletInstalled(context);
273294
```
274295

296+
##### 2. 是否允许使用手机 Pay
297+
```
298+
// true: 允许 (默认) false: 不允许
299+
Pingpp.isPermissionSEPay(false);
300+
```
275301

276302
### <h3 id='4.4'>四、使用 Ping++ UI SDK</h3>
277303

@@ -285,7 +311,7 @@ boolean isInstalled = Pingpp.isCmbWalletInstalled(context);
285311
<activity
286312
android:name="com.pingplusplus.android.PaymentActivity"
287313
android:configChanges="orientation|keyboardHidden|navigation|screenSize"
288-
android:launchMode="singleTask"
314+
android:launchMode="singleTop"
289315
android:theme="@android:style/Theme.Translucent.NoTitleBar" />
290316

291317
<activity
@@ -358,7 +384,7 @@ android:configChanges="orientation|keyboardHidden|navigation|screenSize"/>
358384
<activity
359385
android:name="com.pingplusplus.android.PaymentActivity"
360386
android:configChanges="orientation|keyboardHidden|navigation|screenSize"
361-
android:launchMode="singleTask"
387+
android:launchMode="singleTop"
362388
android:theme="@android:style/Theme.Translucent.NoTitleBar" >
363389

364390
<intent-filter>

example/AndroidManifest.xml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,24 @@
101101
android:name="com.pingplusplus.ui.PaySuccessActivity"
102102
android:configChanges="orientation|screenSize"/>
103103

104+
<!-- 建行 SDK -->
105+
<activity android:name="com.ccb.ccbnetpay.activity.appresult.ResultActivity"
106+
android:configChanges="orientation|keyboardHidden|screenSize"
107+
android:screenOrientation="portrait">
108+
<intent-filter>
109+
<action android:name="pingppdemowv"/>
110+
<category android:name="android.intent.category.DEFAULT"/>
111+
</intent-filter>
112+
</activity>
113+
114+
<activity android:name="com.ccb.ccbnetpay.activity.CcbUnionPayActivity"
115+
android:configChanges="orientation|keyboardHidden|screenSize"
116+
android:screenOrientation="portrait"/>
117+
118+
<activity android:name="com.ccb.ccbnetpay.activity.CcbH5PayActivity"
119+
android:configChanges="orientation|keyboardHidden|screenSize"
120+
android:screenOrientation="portrait"/>
121+
104122
</application>
105123

106124
</manifest>
119 KB
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)