From 9e16b83202514cb46f4d72393a06c84f6c3ee9b8 Mon Sep 17 00:00:00 2001 From: lepipele Date: Tue, 13 Mar 2018 12:20:22 -0500 Subject: [PATCH] Testing Shapeshift integration --- BTCPayServer/Views/Invoice/Checkout.cshtml | 4 ++++ BTCPayServer/wwwroot/js/core.js | 1 + 2 files changed, 5 insertions(+) diff --git a/BTCPayServer/Views/Invoice/Checkout.cshtml b/BTCPayServer/Views/Invoice/Checkout.cshtml index dec3105f2..0e3336193 100644 --- a/BTCPayServer/Views/Invoice/Checkout.cshtml +++ b/BTCPayServer/Views/Invoice/Checkout.cshtml @@ -100,6 +100,10 @@ @crypto.PaymentMethodId } + + + +
diff --git a/BTCPayServer/wwwroot/js/core.js b/BTCPayServer/wwwroot/js/core.js index 8946e2181..56628fbb6 100644 --- a/BTCPayServer/wwwroot/js/core.js +++ b/BTCPayServer/wwwroot/js/core.js @@ -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; }