Skip to content

Commit

Permalink
Merge branch 'fix/simplexGetQuoteSepaPaymentMethod' of github.com:Gam…
Browse files Browse the repository at this point in the history
…boster/bitcore
  • Loading branch information
kajoseph committed Aug 5, 2024
2 parents 6c66035 + 3747fab commit ce4a229
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/bitcore-wallet-service/src/lib/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5909,6 +5909,11 @@ export class WalletService implements IWalletService {
Authorization: 'ApiKey ' + API_KEY
};

if (req.body && req.body.payment_methods && Array.isArray(req.body.payment_methods)) {
// Workaround to fix older versions of the app
req.body.payment_methods = req.body.payment_methods.map(item => item === 'simplex_account' ? 'sepa_open_banking' : item);
}

this.request.post(
API + '/wallet/merchant/v2/quote',
{
Expand Down

0 comments on commit ce4a229

Please sign in to comment.