This repository has been archived by the owner on Nov 11, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 120
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Release v2.0
- Loading branch information
Showing
12 changed files
with
424 additions
and
74 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
EasyUpiPayment/src/main/java/com/shreyaspatil/EasyUpiPayment/model/PaymentApp.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
package com.shreyaspatil.EasyUpiPayment.model; | ||
|
||
public enum PaymentApp { | ||
NONE(""), | ||
AMAZON_PAY(Package.AMAZON_PAY), | ||
BHIM_UPI(Package.BHIM_UPI), | ||
GOOGLE_PAY(Package.GOOGLE_PAY), | ||
PAYTM(Package.PAYTM), | ||
PHONE_PE(Package.PHONE_PE); | ||
|
||
private String mPackageName; | ||
|
||
PaymentApp(String mPackageName) { | ||
this.mPackageName = mPackageName; | ||
} | ||
|
||
public String getPackageName() { | ||
return mPackageName; | ||
} | ||
|
||
private static final class Package { | ||
static final String AMAZON_PAY = "in.amazon.mShop.android.shopping"; | ||
static final String BHIM_UPI = "in.org.npci.upiapp"; | ||
static final String GOOGLE_PAY = "com.google.android.apps.nbu.paisa.user"; | ||
static final String PHONE_PE = "com.phonepe.app"; | ||
static final String PAYTM = "net.one97.paytm"; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.