diff --git a/README.md b/README.md index 72898b9..a9d6d07 100644 --- a/README.md +++ b/README.md @@ -23,24 +23,10 @@ WIP 5. Signed APKs : ✅ 6. Support addon hardware : ❌ -### Other Countries: +### Supported Countries: 1. India - UPI - Dynamic Works - Split The Bill Works -2. Singapore(Testing Needed) -- SGQR - - Dynamic Works - - Split The Bill Works -3. Thailand -- Thai QR - - Dynamic Not Started - - Split The Bill Not Started -4. Vietnam -- VietQR - - Dynamic Not Started - - Split The Bill Not Started -5. Indonesia -- QRIS - - Dynamic Not Started - - Split The Bill Not Started \ No newline at end of file + +If you know any countries that use a simple URL like India does (upi://...), pleas let me know and I can try to add support. \ No newline at end of file diff --git a/app/src/main/java/com/zeusinstitute/upiapp/DynamicFragment.kt b/app/src/main/java/com/zeusinstitute/upiapp/DynamicFragment.kt index 99852d0..24e8fa2 100644 --- a/app/src/main/java/com/zeusinstitute/upiapp/DynamicFragment.kt +++ b/app/src/main/java/com/zeusinstitute/upiapp/DynamicFragment.kt @@ -102,7 +102,7 @@ class DynamicFragment : Fragment() { private fun updateQRCode(savedData: String, amount: String) { val qrString = when (paymentMethod) { - "SGQR" -> "sgqr://pay?merchantId=$savedData&$amount" + // "SGQR" -> "sgqr://pay?merchantId=$savedData&$amount" "UPI" -> "upi://pay?pa=$savedData&tn=undefined&am=$amount" else -> "" } @@ -122,7 +122,7 @@ class DynamicFragment : Fragment() { private fun getCurrencySymbol(): String { return when (currency) { "₹ (INR)" -> "₹" - "S$ (SGD)" -> "S$" + // "S$ (SGD)" -> "S$" else -> "" } } diff --git a/app/src/main/java/com/zeusinstitute/upiapp/FirstFragment.kt b/app/src/main/java/com/zeusinstitute/upiapp/FirstFragment.kt index 816f286..15d90f3 100644 --- a/app/src/main/java/com/zeusinstitute/upiapp/FirstFragment.kt +++ b/app/src/main/java/com/zeusinstitute/upiapp/FirstFragment.kt @@ -66,7 +66,7 @@ class FirstFragment : Fragment(), SharedPreferences.OnSharedPreferenceChangeList val savedData = sharedPref.getString("saved_data", null) paymentMethod = sharedPref.getString("payment_method", "") ?: "" val upiString = when (paymentMethod) { - "SGQR" -> "sgqr://pay?merchantId=$savedData" + //"SGQR" -> "sgqr://pay?merchantId=$savedData" "UPI" -> "upi://pay?pa=$savedData&tn=undefined" else -> "" } diff --git a/app/src/main/java/com/zeusinstitute/upiapp/Login.kt b/app/src/main/java/com/zeusinstitute/upiapp/Login.kt index caba309..13ae2c8 100644 --- a/app/src/main/java/com/zeusinstitute/upiapp/Login.kt +++ b/app/src/main/java/com/zeusinstitute/upiapp/Login.kt @@ -130,7 +130,7 @@ class Login : Fragment() { private fun updatePaymentMethodSpinner(country: String) { val paymentMethodsResId = when (country) { "India" -> R.array.payment_methods_india - "Singapore" -> R.array.payment_methods_singapore + // "Singapore" -> R.array.payment_methods_singapore else -> return } val paymentMethods = resources.getStringArray(paymentMethodsResId) @@ -141,7 +141,7 @@ class Login : Fragment() { private fun updateCurrencySpinner(country: String) { val currenciesResId = when (country) { "India" -> R.array.currencies_india - "Singapore" -> R.array.currencies_singapore + // "Singapore" -> R.array.currencies_singapore else -> return } val currencies = resources.getStringArray(currenciesResId) diff --git a/app/src/main/java/com/zeusinstitute/upiapp/SplitBill.kt b/app/src/main/java/com/zeusinstitute/upiapp/SplitBill.kt index 9344b31..0af5e0a 100644 --- a/app/src/main/java/com/zeusinstitute/upiapp/SplitBill.kt +++ b/app/src/main/java/com/zeusinstitute/upiapp/SplitBill.kt @@ -156,7 +156,7 @@ class SplitBillFragment : Fragment() { if (amount <= 0) return null val barcodeEncoder = BarcodeEncoder() val qrString = when (paymentMethod) { - "SGQR" -> "sgqr://pay?merchantId=$paymentId&$amount" + // "SGQR" -> "sgqr://pay?merchantId=$paymentId&$amount" "UPI" -> "upi://pay?pa=$paymentId&tn=undefined&am=$amount" else -> return null } @@ -172,7 +172,7 @@ class SplitBillFragment : Fragment() { private fun getCurrencySymbol(): String { return when (currency) { "₹ (INR)" -> "₹" - "S$ (SGD)" -> "S$" + // "S$ (SGD)" -> "S$" else -> "" } } diff --git a/app/src/main/res/values/arrays.xml b/app/src/main/res/values/arrays.xml index 93294d4..04b8ca5 100644 --- a/app/src/main/res/values/arrays.xml +++ b/app/src/main/res/values/arrays.xml @@ -13,23 +13,23 @@ India - Singapore + UPI - + ₹ (INR) - + \ No newline at end of file