Skip to content

Commit

Permalink
resolved conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
Overtorment committed Apr 15, 2020
2 parents 31cc7d5 + 1465a93 commit 5f4608b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions buy-bitcoin-redirect.html
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
<div class="lds-dual-ring"></div>
<script>
var safello_countries = ["SE"];
var xanpool_countries = ["SG", "HK", "TH", "PH", "IN", "ID", "VN", "MY"];
var u = new URLSearchParams(window.location.search);
var address = u.get('address') || '';
var force_country = u.get('force_country') || '';
Expand Down Expand Up @@ -68,6 +69,10 @@
}

window.location = safello_url
} else if (xanpool_countries.indexOf(location.country_code) !== -1) {
var xanpool_url = "https://widget.xanpool.com/?apiKey=7e3o3bzh5f2opybhhkqgo63yfbqykmll&cryptoCurrency=btc&transactionType=buy&isWebView=true";
if (address) xanpool_url += "&wallet=" + address;
window.location = xanpool_url;
} else {
var moonpay_url = 'https://moonpay-redirect.herokuapp.com/?apiKey=pk_live_IkhSI2lIXSiolwakfd95QFD4p3908cZa&enabledPaymentMethods=credit_debit_card%2Csepa_bank_transfer%2Cgbp_bank_transfer&currencyCode=BTC&colorCode=%2368BBE1&showWalletAddressForm=true';
if (address) moonpay_url += '&walletAddress=' + address;
Expand Down

0 comments on commit 5f4608b

Please sign in to comment.