AsiaPay offers comprehensive and flexible payment services and solutions.Via our state-of the-art secure multi-currency, multi-lingual and multi-channel processing platform, we offer payment acceptance flexibility for Direct Merchant Account or Master Account offerings, with options for credit card and direct debit acceptance, whether online, MOTO or call centre and popular mobile wallets.
The cardholder inputs their bank account/card details on the PayDollar Checkout form in order to pay for a product/service.The transaction amount is routed via the card networks to PayDollar's acquiring banking partners. Once PayDollar receives the amount, it is settled to your bank account after fees deduction.
-
Requirements Android API level 19 (4.4 - Kitkat) & above
Android Gradle Plugin 3.5.1 -
Download the latest sdk from https://github.com/asiapay-lib/paysdk-android-lib
-
Copy paydollarsdk-release.aar to libs folder.
-
Add below line to project’s gradle file:
repositories { flatDir { dirs'libs' } }
-
Add following libraries to gradle file
implementation(name: 'PaySDK-2.7.69', ext: 'aar') implementation(name: 'alipaySdk-15.6.2-20190416165036', ext: 'aar') implementation 'com.squareup.retrofit2:converter-gson:2.2.0' implementation 'com.google.code.gson:gson:2.3.1' implementation 'org.bouncycastle:bcprov-jdk15on:1.60' implementation 'com.android.volley:volley:1.1.1' implementation 'org.greenrobot:eventbus:3.0.0' implementation 'com.google.android.material:material:1.2.0-alpha04' implementation 'com.google.android.material:material:1.0.0-beta01' implementation 'com.google.android.gms:play-services-ads:17.2.1' implementation 'com.google.android.gms:play-services-location:16.0.0' // for google pay implementation 'com.google.android.gms:play-services-wallet:16.0.1' //WeChat implementation 'com.tencent.mm.opensdk:wechat-sdk-android:+'
-
Add following permission to manifest file
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" /> <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> <uses-permission android:name="android.permission.INTERNET" />
Create the paysdk.properties file in the assets folder with the following attribute.
merchant_rsa_publickey=<<SECURITY_KEY>>
domain=<<SDK Server Domain (Optional)>>
-
Instantiate PaySDK class.
PaySDK paySDK = new PaySDK(getApplicationContext());
-
Use following payment services.
Payment Services | Example |
---|---|
Direct Payment | Direct Payment |
Webview Payment | Webview Payment |
3Ds 2.0 Extra Paramters | 3DS |
Alipay | Alipay |
WeChat Pay | WeChat Pay |
Google Pay™ | Google Pay™ |
Octopus | Octopus |
Member Pay | Member Pay |
Installment Pay | Installmet Pay |
Schedule Pay | Schedule Pay |
Promo Pay | Promo Pay |
Transaction Query | Transaction Query |
Payment Methods Query | Payment Methods Query |
EVoucher | EVoucher |
PayMe | PayMe |
paySDK.responseHandler(new PaymentResponse() {
@Override
public void getResponse(PayResult payResult) {
}
@Override
public void onError(Data data) {
}
});
Asiapay is a tech company. All our engineers handle support too. You can write to us at it@pesopay.com ,it@paydollar.com , it@siampy.com and expect a response from the devs from the Android SDK.
MIT Licensed. LICENSE file added to repo.