2018-03-03 07:32:51 +01:00
|
|
|
@addTagHelper *, Meziantou.AspNetCore.BundleTagHelpers
|
|
|
|
@model PaymentModel
|
2017-09-13 08:47:34 +02:00
|
|
|
@{
|
2017-10-27 06:46:21 +02:00
|
|
|
Layout = null;
|
2017-09-13 08:47:34 +02:00
|
|
|
}
|
|
|
|
<!DOCTYPE html>
|
|
|
|
<html>
|
|
|
|
<head>
|
2017-10-27 06:46:21 +02:00
|
|
|
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
|
2018-01-30 17:39:58 +01:00
|
|
|
|
2017-10-27 06:46:21 +02:00
|
|
|
<meta charset="utf-8">
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
|
2017-12-02 06:13:11 +01:00
|
|
|
<title>BTCPay Invoice</title>
|
2017-09-13 08:47:34 +02:00
|
|
|
|
2018-03-03 07:32:51 +01:00
|
|
|
<bundle name="wwwroot/bundles/checkout-bundle.min.css" />
|
2018-01-30 17:39:58 +01:00
|
|
|
|
2017-10-27 06:46:21 +02:00
|
|
|
<script type="text/javascript">
|
2017-12-16 17:04:20 +01:00
|
|
|
@Model.ToJSVariableModel("srvModel")
|
2017-10-27 06:46:21 +02:00
|
|
|
</script>
|
2018-03-03 07:32:51 +01:00
|
|
|
|
|
|
|
<bundle name="wwwroot/bundles/checkout-bundle.min.js" />
|
2017-09-13 08:47:34 +02:00
|
|
|
</head>
|
|
|
|
<body style="background: #E4E4E4">
|
2017-10-27 06:46:21 +02:00
|
|
|
<noscript>
|
|
|
|
<center style="padding: 2em">
|
|
|
|
<h2>Javascript is currently disabled in your browser.</h2>
|
|
|
|
<h5>Please enable Javascript and refresh this page for the best experience.</h5>
|
2017-09-13 08:47:34 +02:00
|
|
|
|
2017-10-27 06:46:21 +02:00
|
|
|
<p>Alternatively, click below to continue to our HTML-only invoice.</p>
|
2017-09-13 08:47:34 +02:00
|
|
|
|
2017-10-27 06:46:21 +02:00
|
|
|
<form action="/invoice-noscript" method="GET">
|
|
|
|
<button style="text-decoration: underline; color: blue">Continue to javascript-disabled invoice ></button>
|
|
|
|
</form>
|
|
|
|
</center>
|
|
|
|
</noscript>
|
2017-09-13 08:47:34 +02:00
|
|
|
|
2017-10-27 06:46:21 +02:00
|
|
|
<!--[if lte IE 8]>
|
|
|
|
<center style="padding: 2em">
|
|
|
|
<form action="/invoice-noscript" method="GET">
|
|
|
|
<button style="text-decoration: underline; color: blue">Continue to legacy browser compatible invoice page
|
|
|
|
</button>
|
|
|
|
</form>
|
|
|
|
</center>
|
|
|
|
<![endif]-->
|
2017-09-13 08:47:34 +02:00
|
|
|
|
2017-10-27 06:46:21 +02:00
|
|
|
<invoice>
|
|
|
|
<div class="no-bounce" id="checkoutCtrl">
|
|
|
|
<div class="modal page">
|
2018-03-23 05:15:54 +01:00
|
|
|
<div class="modal-dialog open opened enter-purchaser-email" role="document">
|
2017-10-27 06:46:21 +02:00
|
|
|
<div class="modal-content long">
|
|
|
|
<div class="content">
|
|
|
|
<div class="invoice">
|
2018-03-22 18:08:49 +01:00
|
|
|
@Html.Partial("Checkout-Body")
|
2017-10-27 06:46:21 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2018-03-22 06:07:30 +01:00
|
|
|
<div style="margin-top: 10px; text-align: right;">
|
2018-03-20 20:30:37 +01:00
|
|
|
@* Not working because of nsSeparator: false, keySeparator: false,
|
2018-03-22 06:21:26 +01:00
|
|
|
{{$t("nested.lang")}} >>
|
2018-03-20 20:30:37 +01:00
|
|
|
*@
|
2018-03-23 05:16:38 +01:00
|
|
|
<select class="cmblang reverse invisible" onchange="changeLanguage($(this).val())">
|
2018-03-22 06:07:30 +01:00
|
|
|
<option value="en-US">English</option>
|
|
|
|
<option value="de-DE">Deutsch</option>
|
2018-03-23 05:04:42 +01:00
|
|
|
<option value="ja-JP">日本語</option>
|
|
|
|
<option value="fr-FR">Français</option>
|
|
|
|
<option value="es-ES">Spanish</option>
|
2018-03-22 06:07:30 +01:00
|
|
|
</select>
|
|
|
|
<script>
|
|
|
|
$(function () {
|
2018-03-23 05:02:53 +01:00
|
|
|
if (urlParams.lang) {
|
|
|
|
$(".cmblang").val(urlParams.lang);
|
|
|
|
}
|
2018-03-22 06:07:30 +01:00
|
|
|
|
|
|
|
$('select').prettyDropdown({
|
|
|
|
classic: false,
|
|
|
|
height: 30,
|
|
|
|
reverse: true,
|
|
|
|
hoverIntent: 5000
|
|
|
|
});
|
|
|
|
});
|
|
|
|
</script>
|
2018-03-20 20:30:37 +01:00
|
|
|
</div>
|
2017-10-27 06:46:21 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</invoice>
|
2018-03-03 07:32:04 +01:00
|
|
|
<script type="text/javascript">
|
2018-03-22 17:12:15 +01:00
|
|
|
// initialization
|
|
|
|
i18next.init({
|
|
|
|
lng: 'en',
|
|
|
|
fallbackLng: 'en',
|
|
|
|
nsSeparator: false,
|
|
|
|
keySeparator: false,
|
|
|
|
resources: {
|
|
|
|
en: { translation: locales_en },
|
2018-03-23 05:04:42 +01:00
|
|
|
de: { translation: locales_de },
|
|
|
|
es: { translation: locales_es },
|
|
|
|
ja: { translation: locales_ja },
|
|
|
|
fr: { translation: locales_fr }
|
2018-03-22 17:12:15 +01:00
|
|
|
},
|
|
|
|
});
|
|
|
|
|
2018-03-23 05:16:38 +01:00
|
|
|
function changeLanguage(lang) {
|
|
|
|
i18next.changeLanguage(lang);
|
|
|
|
}
|
|
|
|
|
|
|
|
if (urlParams.lang) {
|
|
|
|
changeLanguage(urlParams.lang);
|
|
|
|
}
|
|
|
|
|
2018-03-22 17:12:15 +01:00
|
|
|
const i18n = new VueI18next(i18next);
|
|
|
|
|
2018-03-03 07:32:04 +01:00
|
|
|
// TODO: Move all logic from core.js to Vue controller
|
|
|
|
Vue.config.ignoredElements = [
|
|
|
|
'line-items',
|
|
|
|
'low-fee-timeline',
|
|
|
|
// Ignoring custom HTML5 elements, eg: bp-spinner
|
|
|
|
/^bp-/
|
|
|
|
];
|
|
|
|
var checkoutCtrl = new Vue({
|
2018-03-22 06:06:56 +01:00
|
|
|
i18n: i18n,
|
2018-03-03 07:32:04 +01:00
|
|
|
el: '#checkoutCtrl',
|
|
|
|
components: {
|
|
|
|
qrcode: VueQr
|
|
|
|
},
|
|
|
|
data: {
|
2018-03-23 05:02:53 +01:00
|
|
|
srvModel: srvModel,
|
|
|
|
expiringSoon: false
|
2018-03-03 07:32:04 +01:00
|
|
|
}
|
|
|
|
});
|
|
|
|
</script>
|
2017-09-13 08:47:34 +02:00
|
|
|
</body>
|
2017-10-27 10:53:04 +02:00
|
|
|
</html>
|