Skip to content

android pay denaTW molpay

MOLPay

配置MOLPay

1.在AndroidManifest.xml中添加以下内容:

<!-- ############################# MOLPoints START ############################# -->
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.DISABLE_KEYGUARD" />
<uses-permission android:name="android.permission.WRITE_SETTINGS" />
<uses-permission android:name="com.android.launcher.permission.READ_SETTINGS" />
<uses-permission android:name="android.permission.READ_PHONE_STATE" />
<!-- ############################# MOLPoints END ############################# -->

<application>
    <!-- ############################# MOLPoints START ############################# -->
    <activity
        android:name="com.mol.payment.MOLPointsActivity"
        android:configChanges="orientation|keyboardHidden|screenSize"
        android:screenOrientation="portrait" />
    <!-- ############################# MOLPoints END #############################  -->
</application>
有些权限是多个第三方sdk都需要的,在添加时请注意不要重复添加
MOLPay提供了Sandbox和Production两种环境,可以通过以下meta-data控制:

<meta-data android:name="DeNA_TW_STORE_SANDBOX" android:value="false"/>

true:Sandbox环境
false:Production环境

Release阶段请务必使用Production环境
Back to top