File tree 1 file changed +19
-4
lines changed
src/Packages/Marketplace/Runtime
1 file changed +19
-4
lines changed Original file line number Diff line number Diff line change 1
1
using System ;
2
2
using System . Collections . Generic ;
3
3
using System . Linq ;
4
+ using UnityEngine ;
4
5
5
6
namespace Immutable . Marketplace
6
7
{
@@ -35,10 +36,24 @@ public static string GenerateOnRampLink(
35
36
var queryParamsDictionary = new Dictionary < string , string >
36
37
{
37
38
{ "apiKey" , apiKey } ,
38
- { "cryptoCurrencyList" , queryParams . CryptoCurrencyList } ,
39
- { "defaultCryptoCurrency" , queryParams . DefaultCryptoCurrency } ,
40
- { "defaultFiatAmount" , queryParams . DefaultFiatAmount } ,
41
- { "defaultFiatCurrency" , queryParams . DefaultFiatCurrency } ,
39
+ {
40
+ "cryptoCurrencyList" ,
41
+ string . IsNullOrEmpty ( queryParams . CryptoCurrencyList )
42
+ ? "imx,eth,usdc"
43
+ : queryParams . CryptoCurrencyList
44
+ } ,
45
+ {
46
+ "defaultCryptoCurrency" ,
47
+ string . IsNullOrEmpty ( queryParams . DefaultCryptoCurrency ) ? "IMX" : queryParams . DefaultCryptoCurrency
48
+ } ,
49
+ {
50
+ "defaultFiatAmount" ,
51
+ string . IsNullOrEmpty ( queryParams . DefaultFiatAmount ) ? "50" : queryParams . DefaultFiatAmount
52
+ } ,
53
+ {
54
+ "defaultFiatCurrency" ,
55
+ string . IsNullOrEmpty ( queryParams . DefaultFiatCurrency ) ? "USD" : queryParams . DefaultFiatCurrency
56
+ } ,
42
57
{
43
58
"defaultPaymentMethod" ,
44
59
extraQueryParams != null &&
You can’t perform that action at this time.
0 commit comments