Skip to content

Commit

Permalink
fix(quote): always include the payment method id when fetching a quote (
Browse files Browse the repository at this point in the history
  • Loading branch information
blockdylanb committed Dec 21, 2022
1 parent 97390c2 commit 5319928
Showing 1 changed file with 1 addition and 5 deletions.
Expand Up @@ -1453,10 +1453,6 @@ export default ({ api, coreSagas, networks }: { api: APIType; coreSagas: any; ne
const { amount, pair, paymentMethod, paymentMethodId } = payload
const pairReversed = reversePair(pair)

// paymentMethodId is required when profile=SIMPLEBUY and paymentMethod=BANK_TRANSFER
const buyQuotePaymentMethodId =
paymentMethod === BSPaymentTypes.BANK_TRANSFER ? paymentMethodId : undefined

const effectivePaymentMethod =
paymentMethod === BSPaymentTypes.USER_CARD ? BSPaymentTypes.PAYMENT_CARD : paymentMethod

Expand All @@ -1466,7 +1462,7 @@ export default ({ api, coreSagas, networks }: { api: APIType; coreSagas: any; ne
'SIMPLEBUY',
amount,
effectivePaymentMethod,
buyQuotePaymentMethodId
paymentMethodId
)

const refreshConfig = getQuoteRefreshConfig({
Expand Down

0 comments on commit 5319928

Please sign in to comment.