Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

## Unreleased (develop)

- added: Support for Paybis ACH buy

## 4.31.0 (staging)

- added: "Change Username" setting
Expand Down
9 changes: 9 additions & 0 deletions src/plugins/gui/providers/paybisProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ type AllowedPaymentTypes = Record<

const allowedPaymentTypes: AllowedPaymentTypes = {
buy: {
iach: true,
applepay: true,
credit: true,
googlepay: true,
Expand All @@ -77,6 +78,7 @@ const allowedPaymentTypes: AllowedPaymentTypes = {
spei: true
},
sell: {
iach: true,
colombiabank: true,
credit: true,
mexicobank: true,
Expand All @@ -98,6 +100,9 @@ const asPaymentMethodId = asValue(
'method-id-credit-card-out',
'method-id_bridgerpay_revolutpay',

// iach
'method-id-trustly',

// XXX Hack. Fake payment methods for googlepay/applepay
'fake-id-googlepay',
'fake-id-applepay',
Expand Down Expand Up @@ -368,6 +373,9 @@ const EDGE_TO_PAYBIS_CURRENCY_MAP: StringMap = Object.entries(
}, {})

const PAYMENT_METHOD_MAP: { [Payment in PaymentMethodId]: FiatPaymentType } = {
// iach
'method-id-trustly': 'iach',

'method-id-credit-card': 'credit',
'method-id-credit-card-out': 'credit',
'method-id_bridgerpay_revolutpay': 'revolut',
Expand All @@ -392,6 +400,7 @@ const PAYMENT_METHOD_MAP: { [Payment in PaymentMethodId]: FiatPaymentType } = {
const REVERSE_PAYMENT_METHOD_MAP: Partial<{
[Payment in FiatPaymentType]: PaymentMethodId
}> = {
iach: 'method-id-trustly',
applepay: 'method-id-credit-card',
credit: 'method-id-credit-card',
googlepay: 'method-id-credit-card',
Expand Down
Loading