Testing Shapeshift integration

This commit is contained in:
lepipele 2018-03-13 12:20:22 -05:00
parent 56eea18b2d
commit 9e16b83202
2 changed files with 5 additions and 0 deletions

View file

@ -100,6 +100,10 @@
<img style="height:32px; margin-left:5px;" alt="@crypto.PaymentMethodId" src="@crypto.CryptoImage" />
</a>
}
<script>function shapeshift_click(a, e) { e.preventDefault(); var link = a.href; var shapeshiftWindow = window.open(link, '1418115287605', 'width=700,height=500,toolbar=0,menubar=0,location=0,status=1,scrollbars=1,resizable=0,left=0,top=0'); shapeshiftWindow.focus(); return false; }</script>
<a onclick="shapeshift_click(this, event);" v-bind:href="srvModel.shapeshiftUrl">
<img src="https://shapeshift.io/legacy/images/lens_icon.png" class="ss-button" style="height:32px; margin-left: 5px;">
</a>
</div>
<div class="payment__spinner">
<bp-spinner>

View file

@ -53,6 +53,7 @@ function onDataCallback(jsonData) {
$(".payment__spinner").hide();
}
jsonData.shapeshiftUrl = "https://shapeshift.io/shifty.html?destination=" + jsonData.btcAddress + "&output=" + jsonData.paymentMethodId + "&amount=" + jsonData.btcDue;
// updating ui
checkoutCtrl.srvModel = jsonData;
}