Skip to content

Commit

Permalink
Update Banxa payment types
Browse files Browse the repository at this point in the history
  • Loading branch information
samholmes committed Dec 12, 2024
1 parent e33fd0e commit b8be9b0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
- added: "Add Wallet" button to bottom of `WalletListScene`
- added: `isBuiltInAsset` param for 'Exchange_Shift_Success' tracking event
- added: Show all Zcash addresses on Request scene
- changed: Credit and apply pay payment types changed from Banxa provider.
- changed: Support optional Sideshift private key
- changed: Upgrade edge-core-js to v2.21.0
- changed: Filter CreateWalletItem list by networkLocation instead of tokenId
Expand Down
10 changes: 4 additions & 6 deletions src/plugins/gui/providers/banxaProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,6 @@ const asBanxaTxLimit = asObject({
})

const asBanxaPaymentType = asValue(
'CHECKOUTCREDIT',
'CLEARJCNSELLFP',
'CLEARJCNSELLSEPA',
'CLEARJUNCTION',
Expand All @@ -118,8 +117,8 @@ const asBanxaPaymentType = asValue(
'IDEAL',
'MANUALPAYMENT',
'MONOOVAPAYID',
'WORLDPAYAPPLE',
'WORLDPAYCREDIT',
'PRIMERAP',
'PRIMERCC',
'WORLDPAYGOOGLE'
)

Expand Down Expand Up @@ -828,7 +827,6 @@ const addToAllowedCurrencies = (
}

const typeMap: { [Payment in BanxaPaymentType]: FiatPaymentType } = {
CHECKOUTCREDIT: 'credit',
CLEARJCNSELLFP: 'fasterpayments',
CLEARJCNSELLSEPA: 'sepa',
CLEARJUNCTION: 'sepa',
Expand All @@ -841,8 +839,8 @@ const typeMap: { [Payment in BanxaPaymentType]: FiatPaymentType } = {
IDEAL: 'ideal',
MANUALPAYMENT: 'turkishbank',
MONOOVAPAYID: 'payid',
WORLDPAYAPPLE: 'applepay',
WORLDPAYCREDIT: 'credit',
PRIMERAP: 'applepay',
PRIMERCC: 'credit',
WORLDPAYGOOGLE: 'googlepay'
}

Expand Down

0 comments on commit b8be9b0

Please sign in to comment.