tweak moonpay parameters
This commit is contained in:
parent
825dc83126
commit
47b58fc9a6
1 changed files with 4 additions and 2 deletions
|
@ -70,7 +70,7 @@ public class WalletFragment extends BaseFragment implements SdkStatusListener, W
|
|||
|
||||
private static final String MOONPAY_KEY = "c2tfbGl2ZV9ueVJqVXNDbE5pcnVSdnlCMkJLWW5JcFA5VnA3dWU=";
|
||||
private static final String MOONPAY_URL_FORMAT =
|
||||
"https://buy.moonpay.io?apiKey=pk_live_xNFffrN5NWKy6fu0ggbV8VQIwRieRzy¤cyCode=LBC&walletAddress=%s";
|
||||
"https://buy.moonpay.io?apiKey=pk_live_xNFffrN5NWKy6fu0ggbV8VQIwRieRzy&colorCode=%%232F9176¤cyCode=LBC&showWalletAddressForm=true&walletAddress=%s&externalCustomerId=%s";
|
||||
|
||||
private View layoutAccountRecommended;
|
||||
private View layoutSdkInitializing;
|
||||
|
@ -517,7 +517,9 @@ public class WalletFragment extends BaseFragment implements SdkStatusListener, W
|
|||
return;
|
||||
}
|
||||
|
||||
String url = String.format(MOONPAY_URL_FORMAT, receiveAddress);
|
||||
long userId = Lbryio.currentUser != null ? Lbryio.currentUser.getId() : 0;
|
||||
String url = String.format(MOONPAY_URL_FORMAT, receiveAddress,
|
||||
URLEncoder.encode(String.format("android-%d", userId), StandardCharsets.UTF_8.name()));
|
||||
String email = Lbryio.getSignedInEmail();
|
||||
if (!Helper.isNullOrEmpty(email)) {
|
||||
url = String.format("%s&email=%s", url, URLEncoder.encode(email, StandardCharsets.UTF_8.name()));
|
||||
|
|
Loading…
Reference in a new issue