[feat] Add stripe payments (#3184)

This commit is contained in:
Vlad Stan
2025-07-08 10:17:19 +02:00
committed by dni ⚡
parent 5c9511ccfe
commit 695e9b6471
51 changed files with 2014 additions and 175 deletions
+8 -1
View File
@@ -35,6 +35,7 @@ window.WalletPageLogic = {
lnurl: null,
units: ['sat'],
unit: 'sat',
fiatProvider: '',
data: {
amount: null,
memo: ''
@@ -253,12 +254,15 @@ window.WalletPageLogic = {
this.receive.data.amount,
this.receive.data.memo,
this.receive.unit,
this.receive.lnurl && this.receive.lnurl.callback
this.receive.lnurl && this.receive.lnurl.callback,
this.receive.fiatProvider
)
.then(response => {
this.g.updatePayments = !this.g.updatePayments
this.receive.status = 'success'
this.receive.paymentReq = response.data.bolt11
this.receive.fiatPaymentReq =
response.data.extra?.fiat_payment_request
this.receive.amountMsat = response.data.amount
this.receive.paymentHash = response.data.payment_hash
if (!this.receive.lnurl) {
@@ -820,6 +824,9 @@ window.WalletPageLogic = {
},
swapBalancePriority() {
this.isFiatPriority = !this.isFiatPriority
this.receive.unit = this.isFiatPriority
? this.g.wallet.currency || 'sat'
: 'sat'
this.$q.localStorage.setItem('lnbits.isFiatPriority', this.isFiatPriority)
},
handleFiatTracking() {