mirror of
https://github.com/aljazceru/BTCPayServerPlugins.git
synced 2025-12-17 15:44:26 +01:00
initial commit
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
Vue.component("fixed-float", {
|
||||
props: ["toCurrency", "toCurrencyDue", "toCurrencyAddress"],
|
||||
data() {
|
||||
return {
|
||||
shown: false,
|
||||
};
|
||||
},
|
||||
computed: {
|
||||
url() {
|
||||
let settleMethodId = "";
|
||||
if (
|
||||
this.toCurrency.endsWith("LightningLike") ||
|
||||
this.toCurrency.endsWith("LNURLPay")
|
||||
) {
|
||||
settleMethodId = "BTCLN";
|
||||
} else {
|
||||
settleMethodId = this.toCurrency
|
||||
.replace("_BTCLike", "")
|
||||
.replace("_MoneroLike", "")
|
||||
.replace("_ZcashLike", "")
|
||||
.toUpperCase();
|
||||
}
|
||||
const topup = this.$parent.srvModel.isUnsetTopUp;
|
||||
return (
|
||||
"https://widget.fixedfloat.com/?" +
|
||||
`to=${settleMethodId}` +
|
||||
"&lockReceive=true&ref=fkbyt39c" +
|
||||
`&address=${this.toCurrencyAddress}` +
|
||||
(topup
|
||||
? ""
|
||||
: `&lockType=true&hideType=true&lockAmount=true&toAmount=${this.toCurrencyDue}`)
|
||||
);
|
||||
},
|
||||
},
|
||||
});
|
||||
Reference in New Issue
Block a user