Skip to content

Commit

Permalink
Revert "feat: remove marketplace api url var from Transak since its a…
Browse files Browse the repository at this point in the history
…lready t…" (#647)

This reverts commit 7f3b209.
  • Loading branch information
juanmahidalgo authored Nov 13, 2024
1 parent 7f3b209 commit 3f76740
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/modules/gateway/sagas.ts
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,9 @@ export function createGatewaySaga(config: GatewaySagasConfig) {
}
}

const marketplaceAPI = new MarketplaceAPI(transakConfig.apiBaseUrl)
const marketplaceAPI = new MarketplaceAPI(
transakConfig.marketplaceServerURL
)
const transak = new Transak(transakConfig, {}, identity)
let statusHasChanged = false

Expand Down
1 change: 1 addition & 0 deletions src/modules/gateway/transak/Transak.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ const mockConfig: GatewaySagasConfig = {
pollingDelay: 50
},
[NetworkGatewayType.TRANSAK]: {
marketplaceServerURL: 'https://marketplace-server.decentraland.zone',
apiBaseUrl: 'http://transak-base.url.xyz',
key: 'transak-key',
env: 'TEST',
Expand Down
1 change: 1 addition & 0 deletions src/modules/gateway/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ export type MoonPayConfig = {
}

export type TransakConfig = {
marketplaceServerURL: string
apiBaseUrl: string
key: string
env: string
Expand Down

0 comments on commit 3f76740

Please sign in to comment.