Skip to content

Commit 1a89f35

Browse files
authored
Merge pull request #5834 from EdgeApp/sam/libertyx-cash-payment-type
Sam/libertyx cash payment type
2 parents 2d83e8e + b7375b1 commit 1a89f35

File tree

8 files changed

+85
-25
lines changed

8 files changed

+85
-25
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
- added: BitsOfGold and LibertyX ramp plugins.
88
- fixed: Fixed broken `logEvent` tracking calls by adding the needed `dispatch`.
9+
- fixed: Localized display names for payment types in new buy/sell feature.
910
- removed: Remove change quote tracking.
1011

1112
## 4.38.0 (2025-11-04)

src/locales/en_US.ts

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1979,6 +1979,32 @@ const strings = {
19791979

19801980
// #endregion Home
19811981

1982+
// Payment types
1983+
ach_bank_transfer: 'ACH Bank Transfer',
1984+
apple_pay: 'Apple Pay',
1985+
bank_transfer: 'Bank Transfer',
1986+
in_person_cash_and_debit_card: 'In-person Cash and Debit Card',
1987+
colombia_bank_transfer: 'Colombia Bank Transfer',
1988+
credit_and_debit_card: 'Credit and Debit Card',
1989+
debit_card: 'Debit Card',
1990+
direct_to_bank: 'Direct to Bank',
1991+
faster_payments: 'Faster Payments',
1992+
google_pay: 'Google Pay',
1993+
instant_ach_bank_transfer: 'Instant ACH Bank Transfer',
1994+
ideal: 'iDEAL',
1995+
interac_e_transfer: 'Interac e-Transfer',
1996+
mexico_bank_transfer: 'Mexico Bank Transfer',
1997+
payid: 'PayID',
1998+
paypal: 'Paypal',
1999+
pix: 'PIX',
2000+
pse_payment: 'PSE Payment',
2001+
revolut: 'Revolut',
2002+
sepa_bank_transfer: 'SEPA Bank Transfer',
2003+
spei_bank_transfer: 'SPEI Bank Transfer',
2004+
turkish_bank_transfer: 'Turkish Bank Transfer',
2005+
venmo: 'Venmo',
2006+
bank_wire_transfer: 'Bank Wire Transfer',
2007+
19822008
// #region UK Compliance
19832009

19842010
uk_deposit_parent_crypto_modal_message_no_exchange_2s:

src/locales/strings/enUS.json

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1512,6 +1512,30 @@
15121512
"title_support": "Need Support?",
15131513
"body_support": "Contact our team of experts to troubleshoot your crypto needs",
15141514
"button_support": "Contact Support",
1515+
"ach_bank_transfer": "ACH Bank Transfer",
1516+
"apple_pay": "Apple Pay",
1517+
"bank_transfer": "Bank Transfer",
1518+
"in_person_cash_and_debit_card": "In-person Cash and Debit Card",
1519+
"colombia_bank_transfer": "Colombia Bank Transfer",
1520+
"credit_and_debit_card": "Credit and Debit Card",
1521+
"debit_card": "Debit Card",
1522+
"direct_to_bank": "Direct to Bank",
1523+
"faster_payments": "Faster Payments",
1524+
"google_pay": "Google Pay",
1525+
"instant_ach_bank_transfer": "Instant ACH Bank Transfer",
1526+
"ideal": "iDEAL",
1527+
"interac_e_transfer": "Interac e-Transfer",
1528+
"mexico_bank_transfer": "Mexico Bank Transfer",
1529+
"payid": "PayID",
1530+
"paypal": "Paypal",
1531+
"pix": "PIX",
1532+
"pse_payment": "PSE Payment",
1533+
"revolut": "Revolut",
1534+
"sepa_bank_transfer": "SEPA Bank Transfer",
1535+
"spei_bank_transfer": "SPEI Bank Transfer",
1536+
"turkish_bank_transfer": "Turkish Bank Transfer",
1537+
"venmo": "Venmo",
1538+
"bank_wire_transfer": "Bank Wire Transfer",
15151539
"uk_deposit_parent_crypto_modal_message_no_exchange_2s": "%1$s%2$s is required to send this transaction. Please deposit %2$s and try again.",
15161540
"uk_deposit_parent_crypto_modal_message_no_exchange_3s": "%1$s%2$s (on %3$s) is required to send this transaction. Please deposit %2$s and try again.",
15171541
"uk_token_agreement_modal_message": "%1$s is required to pay the mining fees when sending tokens. The associated %1$s wallet must contain a sufficient amount of funds.\n\nIf you do not have %1$s, you can acquire it within %2$s using the Exchange function.",

src/plugins/gui/fiatPluginTypes.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ export type FiatDirection = ReturnType<typeof asFiatDirection>
4545
export const asFiatPaymentType = asValue(
4646
'ach',
4747
'applepay',
48+
'cash',
4849
'colombiabank',
4950
'credit',
5051
'directtobank',

src/plugins/ramps/libertyx/libertyxRampPlugin.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export const libertyxRampPlugin: RampPluginFactory = config => {
1717
partnerIcon: initOptions.partnerIcon,
1818
guiPlugin: guiPlugins.libertyx,
1919
buy: {
20-
paymentTypes: ['wire', 'credit'],
20+
paymentTypes: ['cash'],
2121
countries: ['US'],
2222
cryptoAssets: [{ pluginId: 'bitcoin', tokenId: null }],
2323
settlementRange: SETTLEMENT_INSTANT,

src/plugins/ramps/utils/getSettlementRange.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ export function getBuySettlementRange(
4242
return RANGE(10, 'minutes', 30, 'minutes')
4343
case 'colombiabank':
4444
return RANGE(5, 'minutes', 24, 'hours')
45+
case 'cash':
46+
return INSTANT
4547
case 'credit':
4648
return RANGE(10, 'minutes', 30, 'minutes')
4749
case 'directtobank':
@@ -92,6 +94,8 @@ export function getSellSettlementRange(
9294
return RANGE(2, 'days', 3, 'days')
9395
case 'applepay':
9496
return RANGE(10, 'minutes', 30, 'minutes')
97+
case 'cash':
98+
return INSTANT
9599
case 'colombiabank':
96100
return RANGE(5, 'minutes', 24, 'hours')
97101
case 'credit':

src/util/paymentTypeIcons.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ const paymentTypeToThemeKey: Record<FiatPaymentType, keyof Theme | null> = {
88
ach: 'paymentTypeLogoBankTransfer', // Using bank transfer as fallback
99
applepay: 'paymentTypeLogoApplePay',
1010
colombiabank: 'paymentTypeLogoBankTransfer', // Using bank transfer as fallback
11+
cash: 'paymentTypeLogoCash',
1112
credit: 'paymentTypeLogoCreditCard',
1213
directtobank: 'paymentTypeLogoBankTransfer', // Using bank transfer as fallback
1314
fasterpayments: 'paymentTypeLogoFasterPayments',

src/util/paymentTypeUtils.ts

Lines changed: 27 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,32 @@
1+
import { lstrings } from '../locales/strings'
2+
13
// Payment type display name mapping based on plugin configurations
24
const paymentTypeDisplayNames: Record<string, string> = {
3-
ach: 'ACH Bank Transfer',
4-
applepay: 'Apple Pay',
5-
bank: 'Bank Transfer',
6-
colombiabank: 'Colombia Bank Transfer',
7-
credit: 'Credit and Debit Card',
8-
debit: 'Debit Card',
9-
directtobank: 'Direct to Bank',
10-
fasterpayments: 'Faster Payments',
11-
googlepay: 'Google Pay',
12-
iach: 'Instant ACH Bank Transfer',
13-
ideal: 'iDEAL',
14-
interac: 'Interac e-Transfer',
15-
iobank: 'Bank Transfer',
16-
mexicobank: 'Mexico Bank Transfer',
17-
payid: 'PayID',
18-
paypal: 'Paypal',
19-
pix: 'PIX',
20-
pse: 'PSE Payment',
21-
revolut: 'Revolut',
22-
sepa: 'SEPA Bank Transfer',
23-
spei: 'SPEI Bank Transfer',
24-
turkishbank: 'Turkish Bank Transfer',
25-
venmo: 'Venmo',
26-
wire: 'Bank Wire Transfer'
5+
ach: lstrings.ach_bank_transfer,
6+
applepay: lstrings.apple_pay,
7+
bank: lstrings.bank_transfer,
8+
cash: lstrings.in_person_cash_and_debit_card,
9+
colombiabank: lstrings.colombia_bank_transfer,
10+
credit: lstrings.credit_and_debit_card,
11+
debit: lstrings.debit_card,
12+
directtobank: lstrings.direct_to_bank,
13+
fasterpayments: lstrings.faster_payments,
14+
googlepay: lstrings.google_pay,
15+
iach: lstrings.instant_ach_bank_transfer,
16+
ideal: lstrings.ideal,
17+
interac: lstrings.interac_e_transfer,
18+
iobank: lstrings.bank_transfer,
19+
mexicobank: lstrings.mexico_bank_transfer,
20+
payid: lstrings.payid,
21+
paypal: lstrings.paypal,
22+
pix: lstrings.pix,
23+
pse: lstrings.pse_payment,
24+
revolut: lstrings.revolut,
25+
sepa: lstrings.sepa_bank_transfer,
26+
spei: lstrings.spei_bank_transfer,
27+
turkishbank: lstrings.turkish_bank_transfer,
28+
venmo: lstrings.venmo,
29+
wire: lstrings.bank_wire_transfer
2730
}
2831

2932
/**

0 commit comments

Comments
 (0)