Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated deprecated notes in Readme & new repo redirection. #1

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
133 changes: 1 addition & 132 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,137 +8,7 @@
# [Mobile Plugin] - Fiuu Google Pay Plugin

This is the complete and functional Fiuu Google Pay Plugin payment module that is ready to be implemented into Android Studio application project through Maven framework.

## Recommended configurations

- Android Studio Flamingo | 2022.2.1 Patch 2

- Minimum target version: Android 5.0 - API Level 21

## Installation Guidance

**Installation**

### Maven

Maven primarily aids in the download of dependencies, which are libraries or JAR files, for Java-based applications. For usage and installation instructions, visit their website. To integrate Fiuu Google Pay Plugin into your Android Studio project using CocoaPods, specify it in your file:

In file settings.gradle

pluginManagement {
repositories {
...
mavenCentral()
}
}
dependencyResolutionManagement {
...
repositories {
...
mavenCentral()
maven { url 'https://jitpack.io' }
}
}
rootProject.name = "Application Name"
include ':app'

In file build.gradle under app folder

plugins {
id 'com.android.application'
}

android {
...

defaultConfig {
...
minSdk 21
...
}
...
}

dependencies {
...
implementation 'com.github.RazerMS:RazerMSGooglePayPlugin:1.0.3'

implementation "com.google.android.gms:play-services-pay:16.1.0"
implementation "com.google.android.gms:play-services-wallet:19.2.0-beta01"
implementation 'androidx.appcompat:appcompat:1.5.1'
implementation 'com.google.android.material:material:1.6.1'
implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
implementation "androidx.lifecycle:lifecycle-viewmodel:2.5.1"
implementation 'org.apache.commons:commons-lang3:3.4'
implementation 'com.google.zxing:core:3.5.0'
...

}

## Quick Guide

Demo App Link : https://github.com/RazerMS/RazerMSGooglePayPlugin/tree/demo-app

Refer to the Demo App for easy integration guidance.

All these 5 classes are compulsory to be created in your app :
1) CheckoutActivity
2) CheckoutSuccessActivity
3) PaymentsUtil
4) CheckoutViewModel
5) Constants

Create your own classes based on your app preferences.
Refer Demo App res folder for necessary resources guidance.

## Payment results

=========================================
Sample transaction result in JSON string:
=========================================

{
amount = "1.10";
appcode = 179367;
channel = CREDIT;
currency = MYR;
domain = "merchant_Dev";
orderid = order54;
paydate = "2022-09-22 17:49:08";
skey = 54XXXXXXXXXXXXXXXXXXXXXXXXXXd;
status = 00;
tranID = 1278569348;
xdkHTMLRedirection = "xxxxxxxxxx";
};

Parameter and meaning:

"status_code" - "00" for Success, "11" for Failed, "22" for *Pending.

"amount" - The transaction amount
"paydate" - The transaction date
"order_id" - The transaction order id
"channel" - The transaction channel description
"txn_ID" - The transaction id generated by MOLPay

* Notes: You may ignore other parameters and values not stated above

=====================================
* Sample error result in JSON string:
=====================================

{
"error_code" = A01;
"error_desc" = "Fail to detokenize Google Pay Token given";
status = 0;
}

Parameter and meaning:

"Fail to detokenize Google Pay Token given" - Error starting a payment process due to several possible reasons, please contact Fiuu support should the error persists.
1) Misconfigure GooglePay setup
2) API credentials (username, password, merchant id, verify key)
3) Fiuu server offline.
Refer here for full integration guidance : [Mobile-XDK-Fiuu_Android_Library](https://github.com/FiuuPayment/Mobile-XDK-Fiuu_Android_Library?tab=readme-ov-file#google-pay)

## Resources
- GitHub: https://github.com/FiuuPayment
Expand All @@ -148,7 +18,6 @@ Maven primarily aids in the download of dependencies, which are libraries or JAR
- Facebook: https://www.facebook.com/FiuuPayment/
- Instagram: https://www.instagram.com/FiuuPayment/


## Support

Submit issue to this repository or email to our [email protected]
Expand Down
1 change: 0 additions & 1 deletion app/.gitignore

This file was deleted.

55 changes: 0 additions & 55 deletions app/build.gradle

This file was deleted.

21 changes: 0 additions & 21 deletions app/proguard-rules.pro

This file was deleted.

This file was deleted.

11 changes: 0 additions & 11 deletions app/src/main/AndroidManifest.xml

This file was deleted.

This file was deleted.

This file was deleted.

Loading