You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
returnNSLocalizedString("Insufficient funds to complete this purchase.", comment:"DashSpend")
52
+
returnNSLocalizedString("Insufficient funds to complete this purchase. Please add more Dash to your wallet or reduce the amount.", comment:"DashSpend")
48
53
case.invalidMerchant:
49
54
returnNSLocalizedString("This merchant is currently unavailable.", comment:"DashSpend")
returnNSLocalizedString("This merchant is currently unavailable. Please try again later or choose a different merchant.", comment:"DashSpend")
59
+
case.transactionRejected:
60
+
returnNSLocalizedString("Your transaction was rejected. Please try again or contact support if the problem persists.", comment:"DashSpend")
61
+
case.purchaseLimitExceeded:
62
+
returnNSLocalizedString("Purchase amount exceeds the maximum limit for this merchant. Please reduce the amount and try again.", comment:"DashSpend")
63
+
case.purchaseLimitBelowMinimum:
64
+
returnNSLocalizedString("Purchase amount is below the minimum limit for this merchant. Please increase the amount and try again.", comment:"DashSpend")
65
+
case.serverError:
66
+
returnNSLocalizedString("Server error occurred. Please try again later.", comment:"DashSpend")
52
67
case.customError(let message):
53
68
return message
54
69
case.unknown:
@@ -88,7 +103,13 @@ final class CTXSpendAPI: HTTPClient<CTXSpendEndpoint> {
throwCTXSpendError.customError(NSLocalizedString("The purchase limits for this merchant have changed. Please contact CTX Support for more information.", comment:"DashSpend"))
140
+
let firstFiatError = fiatAmountErrors.first {
141
+
if firstFiatError =="above threshold"{
142
+
throwCTXSpendError.purchaseLimitExceeded
143
+
}elseif firstFiatError =="below threshold"{
144
+
throwCTXSpendError.purchaseLimitBelowMinimum
145
+
}
143
146
}
144
147
145
148
iflet firstError = errorData.errors.first {
146
149
// Look for specific error messages
147
150
leterrorMessage= firstError.message.lowercased()
148
151
149
-
if errorMessage.contains("insufficient") || errorMessage.contains("funds"){
152
+
if errorMessage.contains("insufficient") || errorMessage.contains("funds")|| errorMessage.contains("balance"){
case.insufficientMixedFunds:returnNSLocalizedString("Insufficient mixed funds. Wait for CoinJoin mixing to finish or disable this feature in the settings to complete this transaction.", comment:"Send screen")
Copy file name to clipboardExpand all lines: DashWallet/ar.lproj/Localizable.strings
+26-5Lines changed: 26 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -1228,8 +1228,11 @@
1228
1228
/* No comment provided by engineer. */
1229
1229
"Insufficient funds" = "رصيد غير كاف";
1230
1230
1231
-
/* CTXSpend error */
1232
-
"Insufficient funds to complete this purchase." = "Insufficient funds to complete this purchase.";
1231
+
/* DashSpend */
1232
+
"Insufficient funds to complete this purchase. Please add more Dash to your wallet or reduce the amount." = "Insufficient funds to complete this purchase. Please add more Dash to your wallet or reduce the amount.";
1233
+
1234
+
/* Send screen */
1235
+
"Insufficient funds. Please add more Dash to your wallet or reduce the amount." = "Insufficient funds. Please add more Dash to your wallet or reduce the amount.";
1233
1236
1234
1237
/* Send screen */
1235
1238
"Insufficient mixed funds. Wait for CoinJoin mixing to finish or disable this feature in the settings to complete this transaction." = "Insufficient mixed funds. Wait for CoinJoin mixing to finish or disable this feature in the settings to complete this transaction.";
@@ -1970,6 +1973,12 @@
1970
1973
/* Coinbase/Buy Dash */
1971
1974
"Purchase" = "شراء";
1972
1975
1976
+
/* DashSpend */
1977
+
"Purchase amount exceeds the maximum limit for this merchant. Please reduce the amount and try again." = "Purchase amount exceeds the maximum limit for this merchant. Please reduce the amount and try again.";
1978
+
1979
+
/* DashSpend */
1980
+
"Purchase amount is below the minimum limit for this merchant. Please increase the amount and try again." = "Purchase amount is below the minimum limit for this merchant. Please increase the amount and try again.";
"Server error occurred. Please try again later." = "Server error occurred. Please try again later.";
2307
+
2290
2308
/* No comment provided by engineer. */
2291
2309
"Set a trusted node" = "Set a trusted node";
2292
2310
@@ -2479,9 +2497,6 @@
2479
2497
/* Coinbase */
2480
2498
"The minimum amount you can send is %@" = "The minimum amount you can send is %@";
2481
2499
2482
-
/* DashSpend */
2483
-
"The purchase limits for this merchant have changed. Please contact CTX Support for more information." = "The purchase limits for this merchant have changed. Please contact CTX Support for more information.";
2484
-
2485
2500
/* Usernames */
2486
2501
"The username '%@' was blocked by the Dash Network. Please try again by requesting another username." = "The username '%@' was blocked by the Dash Network. Please try again by requesting another username.";
2487
2502
@@ -2521,6 +2536,9 @@
2521
2536
/* CTXSpend error */
2522
2537
"This merchant is currently unavailable." = "This merchant is currently unavailable.";
2523
2538
2539
+
/* DashSpend */
2540
+
"This merchant is currently unavailable. Please try again later or choose a different merchant." = "This merchant is currently unavailable. Please try again later or choose a different merchant.";
2541
+
2524
2542
/* No comment provided by engineer. */
2525
2543
"This PIN will be required to unlock your app every time when you use it." = "سيكون الرقم السري هذا مطلوبًا لإلغاء قفل تطبيقك في كل مرة تستخدمه.";
2526
2544
@@ -3148,6 +3166,9 @@
3148
3166
/* DashSpend */
3149
3167
"Your session expired" = "Your session expired";
3150
3168
3169
+
/* DashSpend */
3170
+
"Your transaction was rejected. Please try again or contact support if the problem persists." = "Your transaction was rejected. Please try again or contact support if the problem persists.";
3171
+
3151
3172
/* No comment provided by engineer. */
3152
3173
"Your transaction was sent and the amount should appear in your wallet in a few minutes." = "Your transaction was sent and the amount should appear in your wallet in a few minutes.";
Copy file name to clipboardExpand all lines: DashWallet/bg.lproj/Localizable.strings
+26-5Lines changed: 26 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -1228,8 +1228,11 @@
1228
1228
/* No comment provided by engineer. */
1229
1229
"Insufficient funds" = "Недостатъчно средства";
1230
1230
1231
-
/* CTXSpend error */
1232
-
"Insufficient funds to complete this purchase." = "Insufficient funds to complete this purchase.";
1231
+
/* DashSpend */
1232
+
"Insufficient funds to complete this purchase. Please add more Dash to your wallet or reduce the amount." = "Insufficient funds to complete this purchase. Please add more Dash to your wallet or reduce the amount.";
1233
+
1234
+
/* Send screen */
1235
+
"Insufficient funds. Please add more Dash to your wallet or reduce the amount." = "Insufficient funds. Please add more Dash to your wallet or reduce the amount.";
1233
1236
1234
1237
/* Send screen */
1235
1238
"Insufficient mixed funds. Wait for CoinJoin mixing to finish or disable this feature in the settings to complete this transaction." = "Insufficient mixed funds. Wait for CoinJoin mixing to finish or disable this feature in the settings to complete this transaction.";
@@ -1970,6 +1973,12 @@
1970
1973
/* Coinbase/Buy Dash */
1971
1974
"Purchase" = "Purchase";
1972
1975
1976
+
/* DashSpend */
1977
+
"Purchase amount exceeds the maximum limit for this merchant. Please reduce the amount and try again." = "Purchase amount exceeds the maximum limit for this merchant. Please reduce the amount and try again.";
1978
+
1979
+
/* DashSpend */
1980
+
"Purchase amount is below the minimum limit for this merchant. Please increase the amount and try again." = "Purchase amount is below the minimum limit for this merchant. Please increase the amount and try again.";
"Server error occurred. Please try again later." = "Server error occurred. Please try again later.";
2307
+
2290
2308
/* No comment provided by engineer. */
2291
2309
"Set a trusted node" = "Задаване на доверен нод";
2292
2310
@@ -2479,9 +2497,6 @@
2479
2497
/* Coinbase */
2480
2498
"The minimum amount you can send is %@" = "The minimum amount you can send is %@";
2481
2499
2482
-
/* DashSpend */
2483
-
"The purchase limits for this merchant have changed. Please contact CTX Support for more information." = "The purchase limits for this merchant have changed. Please contact CTX Support for more information.";
2484
-
2485
2500
/* Usernames */
2486
2501
"The username '%@' was blocked by the Dash Network. Please try again by requesting another username." = "The username '%@' was blocked by the Dash Network. Please try again by requesting another username.";
2487
2502
@@ -2521,6 +2536,9 @@
2521
2536
/* CTXSpend error */
2522
2537
"This merchant is currently unavailable." = "This merchant is currently unavailable.";
2523
2538
2539
+
/* DashSpend */
2540
+
"This merchant is currently unavailable. Please try again later or choose a different merchant." = "This merchant is currently unavailable. Please try again later or choose a different merchant.";
2541
+
2524
2542
/* No comment provided by engineer. */
2525
2543
"This PIN will be required to unlock your app every time when you use it." = "Този ПИН ще бъде необходим за отключване на приложението ви всеки път, когато го използвате.";
2526
2544
@@ -3148,6 +3166,9 @@
3148
3166
/* DashSpend */
3149
3167
"Your session expired" = "Your session expired";
3150
3168
3169
+
/* DashSpend */
3170
+
"Your transaction was rejected. Please try again or contact support if the problem persists." = "Your transaction was rejected. Please try again or contact support if the problem persists.";
3171
+
3151
3172
/* No comment provided by engineer. */
3152
3173
"Your transaction was sent and the amount should appear in your wallet in a few minutes." = "Вашата транзакция беше изпратена и сумата би трябвало да се появи във вашият портфейл до няколко минути.";
0 commit comments