Skip to content

Commit b13c7de

Browse files
committed
feat: [LM-1679] Add ACH as payment method
1 parent 5e87761 commit b13c7de

File tree

3 files changed

+8
-0
lines changed

3 files changed

+8
-0
lines changed

src/PaymentMethod.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ export const PAYMENT_METHODS = [
88
'money_order',
99
'comchek',
1010
'credit_card',
11+
'ach',
1112
'direct_deposit',
1213
'venmo',
1314
'cashapp',
@@ -42,6 +43,8 @@ export function formatPaymentMethod(
4243
return 'CashApp';
4344
case 'uship':
4445
return 'UShip';
46+
case 'ach':
47+
return 'ACH';
4548
case 'superpay':
4649
return 'SuperPay';
4750
default:

src/__tests__/PaymentMethod.spec.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@ it('formats known', () => {
3232
"credit_card",
3333
"Credit Card",
3434
],
35+
Array [
36+
"ach",
37+
"ACH",
38+
],
3539
Array [
3640
"direct_deposit",
3741
"Direct Deposit",

src/__tests__/index.spec.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ it('exports public api', () => {
103103
"money_order",
104104
"comchek",
105105
"credit_card",
106+
"ach",
106107
"direct_deposit",
107108
"venmo",
108109
"cashapp",

0 commit comments

Comments
 (0)