Skip to content

Commit

Permalink
ADD: xanpool
Browse files Browse the repository at this point in the history
  • Loading branch information
Overtorment committed Apr 15, 2020
1 parent 7b378b7 commit bb4b948
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://checkout.xanpool.com/?apiKey=7e3o3bzh5f2opybhhkqgo63yfbqykmll&cryptoCurrency=btc&transactionType=buy";
if (address) xanpool_url += "&wallet=" + address;
window.location = xanpool_url;
} else {
window.location = 'https://changenow.io?link_id=7ccc7c1c261e17';
}
Expand Down

0 comments on commit bb4b948

Please sign in to comment.