Skip to content

Commit

Permalink
Added shopeepay channel
Browse files Browse the repository at this point in the history
  • Loading branch information
hisyam committed Dec 9, 2020
1 parent 21acac0 commit 2afa141
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 15 deletions.
8 changes: 4 additions & 4 deletions MOLPayXdkExample/app/build.gradle
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
apply plugin: 'com.android.application'

android {
compileSdkVersion 27
buildToolsVersion "27.0.3"
compileSdkVersion 29
buildToolsVersion "29.0.3"

defaultConfig {
applicationId "com.molpay.molpayxdkexample"
minSdkVersion 16
targetSdkVersion 27
targetSdkVersion 29
versionCode 1
versionName "1.0"
}
Expand All @@ -25,5 +25,5 @@ dependencies {
implementation 'com.android.support:support-v4:27.0.1'
implementation 'com.android.support:appcompat-v7:27.0.1'
implementation 'com.android.support:design:27.0.1'
implementation 'com.molpay:molpay-mobile-xdk-android:3.28.0'
implementation 'com.molpay:molpay-mobile-xdk-android:3.29.1'
}
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,12 @@ protected void onCreate(Bundle savedInstanceState) {
setSupportActionBar(toolbar);

HashMap<String, Object> paymentDetails = new HashMap<>();
paymentDetails.put(MOLPayActivity.mp_amount, "");
paymentDetails.put(MOLPayActivity.mp_amount, "1.10");
paymentDetails.put(MOLPayActivity.mp_username, "");
paymentDetails.put(MOLPayActivity.mp_password, "");
paymentDetails.put(MOLPayActivity.mp_merchant_ID, "");
paymentDetails.put(MOLPayActivity.mp_app_name, "");
paymentDetails.put(MOLPayActivity.mp_order_ID, "");
paymentDetails.put(MOLPayActivity.mp_order_ID, "2781123");
paymentDetails.put(MOLPayActivity.mp_currency, "MYR");
paymentDetails.put(MOLPayActivity.mp_country, "MY");
paymentDetails.put(MOLPayActivity.mp_verification_key, "");
Expand All @@ -51,7 +51,7 @@ protected void onCreate(Bundle savedInstanceState) {
paymentDetails.put(MOLPayActivity.mp_bill_mobile, "+601234567789");

//paymentDetails.put(MOLPayActivity.mp_channel_editing, false);
//paymentDetails.put(MOLPayActivity.mp_editing_enabled, false);
//paymentDetails.put(MOLPayActivity.mp_editing_enabled, true);
//paymentDetails.put(MOLPayActivity.mp_transaction_id, "");
//paymentDetails.put(MOLPayActivity.mp_request_type, "");

Expand All @@ -71,10 +71,10 @@ protected void onCreate(Bundle savedInstanceState) {
//paymentDetails.put(MOLPayActivity.mp_express_mode, true);
//paymentDetails.put(MOLPayActivity.mp_advanced_email_validation_enabled, true);
//paymentDetails.put(MOLPayActivity.mp_advanced_phone_validation_enabled, true);
//paymentDetails.put(MOLPayActivity.mp_bill_name_edit_disabled, true);
//paymentDetails.put(MOLPayActivity.mp_bill_email_edit_disabled, true);
//paymentDetails.put(MOLPayActivity.mp_bill_mobile_edit_disabled, true);
//paymentDetails.put(MOLPayActivity.mp_bill_description_edit_disabled, true);
//paymentDetails.put(MOLPayActivity.mp_bill_name_edit_disabled, false);
//paymentDetails.put(MOLPayActivity.mp_bill_email_edit_disabled, false);
//paymentDetails.put(MOLPayActivity.mp_bill_mobile_edit_disabled, false);
//paymentDetails.put(MOLPayActivity.mp_bill_description_edit_disabled, false);
//paymentDetails.put(MOLPayActivity.mp_language, "EN");
//paymentDetails.put(MOLPayActivity.mp_dev_mode, true);
//paymentDetails.put(MOLPayActivity.mp_cash_waittime, 24);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.molpay.molpayxdkexample;

import org.junit.Test;
import org.junit.jupiter.api.Test;

import static org.junit.Assert.*;

Expand Down
2 changes: 1 addition & 1 deletion MOLPayXdkExample/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ buildscript {
google()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.5.3'
classpath 'com.android.tools.build:gradle:4.0.2'

// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
Expand Down
4 changes: 2 additions & 2 deletions MOLPayXdkExample/gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#Mon Dec 30 10:44:46 MYT 2019
#Wed Dec 09 14:38:46 MYT 2020
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-5.4.1-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-6.1.1-all.zip

0 comments on commit 2afa141

Please sign in to comment.