Skip to content

Commit 7f3fec8

Browse files
committed
Fix paybis
1 parent 4b9c1b3 commit 7f3fec8

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

src/partners/paybis.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ const asUserCountry = asObject({
4343
code: asString
4444
})
4545
const asUser = asObject({
46-
id: asString,
47-
email: asString,
46+
// id: asString,
47+
// email: asString,
4848
country: asEither(asUserCountry, asNull)
4949
})
5050
// const asExchangeRate = asObject({
@@ -273,8 +273,7 @@ export function processPaybisTx(rawTx: unknown): StandardTx {
273273
const payoutAmount = Number(receivedOriginal.amount)
274274
const depositTxid = gateway === 'crypto_to_fiat' ? hash : undefined
275275
const payoutTxid = gateway === 'fiat_to_crypto' ? hash : undefined
276-
277-
const direction = (gateway === 'fiat_to_crypto') == null ? 'buy' : 'sell'
276+
const direction = gateway === 'fiat_to_crypto' ? 'buy' : 'sell'
278277

279278
const standardTx: StandardTx = {
280279
status: statusMap[tx.status],
@@ -314,6 +313,8 @@ function getFiatPaymentType(
314313
case 'FPX':
315314
// Idk?
316315
return 'fpx'
316+
case 'Google Pay':
317+
return 'googlepay'
317318
case 'Giropay':
318319
return 'giropay'
319320
case 'Neteller':

0 commit comments

Comments
 (0)