mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2025-01-18 16:55:58 +00:00
Pass the correct params for swap SDK
This commit is contained in:
parent
63b0896db9
commit
6d53f7bebe
1 changed files with 3 additions and 4 deletions
|
@ -22,15 +22,14 @@ class MoonpayExchangeWebView extends BasePage {
|
||||||
const moonPay = window.MoonPayWebSdk.init;
|
const moonPay = window.MoonPayWebSdk.init;
|
||||||
|
|
||||||
const moonPaySdk = moonPay({
|
const moonPaySdk = moonPay({
|
||||||
flow: 'buy',
|
flow: 'swapsCustomerSetup',
|
||||||
environment: 'production',
|
environment: 'production',
|
||||||
variant: 'newTab',
|
variant: 'newTab',
|
||||||
params: {
|
params: {
|
||||||
apiKey: '${secrets.moonPayApiKey}',
|
apiKey: '${secrets.moonPayApiKey}',
|
||||||
theme: 'dark',
|
theme: 'dark',
|
||||||
baseCurrencyCode: 'usd',
|
amountCurrencyCode: 'usd',
|
||||||
baseCurrencyAmount: '100',
|
amount: '100',
|
||||||
defaultCurrencyCode: 'eth'
|
|
||||||
},
|
},
|
||||||
debug: $kDebugMode
|
debug: $kDebugMode
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue