mirror of
https://github.com/lnbits/lnbits.git
synced 2025-05-31 18:20:41 +02:00
feat: add pay with stripe button
This commit is contained in:
parent
b0c286d58b
commit
936ea2cd4e
@ -644,6 +644,8 @@
|
|||||||
<q-input
|
<q-input
|
||||||
filled
|
filled
|
||||||
dense
|
dense
|
||||||
|
type="textarea"
|
||||||
|
rows="2"
|
||||||
v-model.trim="receive.data.memo"
|
v-model.trim="receive.data.memo"
|
||||||
:label="$t('memo')"
|
:label="$t('memo')"
|
||||||
></q-input>
|
></q-input>
|
||||||
@ -653,6 +655,7 @@
|
|||||||
color="primary"
|
color="primary"
|
||||||
:disable="receive.data.amount == null || receive.data.amount <= 0"
|
:disable="receive.data.amount == null || receive.data.amount <= 0"
|
||||||
type="submit"
|
type="submit"
|
||||||
|
class="full-width"
|
||||||
>
|
>
|
||||||
<span
|
<span
|
||||||
v-if="receive.lnurl"
|
v-if="receive.lnurl"
|
||||||
@ -660,11 +663,36 @@
|
|||||||
></span>
|
></span>
|
||||||
<span v-else v-text="$t('create_invoice')"></span>
|
<span v-else v-text="$t('create_invoice')"></span>
|
||||||
</q-btn>
|
</q-btn>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div
|
||||||
|
v-if="receive.status == 'pending'"
|
||||||
|
class="full-width text-center"
|
||||||
|
>
|
||||||
|
<span v-text="$t('or')" class="text-grey"></span>
|
||||||
|
</div>
|
||||||
|
<div v-if="receive.status == 'pending'" class="row">
|
||||||
|
<q-btn
|
||||||
|
unelevated
|
||||||
|
color="primary"
|
||||||
|
:disable="receive.data.amount == null || receive.data.amount <= 0"
|
||||||
|
type="submit"
|
||||||
|
class="full-width"
|
||||||
|
>
|
||||||
|
<span v-text="$t('pay_with')" class="q-mr-md"></span> Stripe
|
||||||
|
<!-- <q-avatar height="64px" class="q-mr-md">
|
||||||
|
<q-img
|
||||||
|
:src="'{{ static_url_for('static', 'images/stripe-logo.png') }}'"
|
||||||
|
></q-img>
|
||||||
|
</q-avatar> -->
|
||||||
|
</q-btn>
|
||||||
|
</div>
|
||||||
|
<div v-if="receive.status == 'pending'" class="row q-mt-lg">
|
||||||
<q-btn
|
<q-btn
|
||||||
v-close-popup
|
v-close-popup
|
||||||
flat
|
outline
|
||||||
color="grey"
|
color="grey"
|
||||||
class="q-ml-auto"
|
class="full-width"
|
||||||
:label="$t('cancel')"
|
:label="$t('cancel')"
|
||||||
></q-btn>
|
></q-btn>
|
||||||
</div>
|
</div>
|
||||||
|
2
lnbits/static/bundle.min.js
vendored
2
lnbits/static/bundle.min.js
vendored
File diff suppressed because one or more lines are too long
@ -368,6 +368,7 @@ window.localisation.en = {
|
|||||||
extension_paid_sats: 'You have already paid {paid_sats} sats.',
|
extension_paid_sats: 'You have already paid {paid_sats} sats.',
|
||||||
release_details_error: 'Cannot get the release details.',
|
release_details_error: 'Cannot get the release details.',
|
||||||
pay_from_wallet: 'Pay from Wallet',
|
pay_from_wallet: 'Pay from Wallet',
|
||||||
|
pay_with: 'Pay with',
|
||||||
wallet_required: 'Wallet *',
|
wallet_required: 'Wallet *',
|
||||||
show_qr: 'Show QR',
|
show_qr: 'Show QR',
|
||||||
retry_install: 'Retry Install',
|
retry_install: 'Retry Install',
|
||||||
|
BIN
lnbits/static/images/stripe-logo.png
Normal file
BIN
lnbits/static/images/stripe-logo.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 10 KiB |
BIN
lnbits/static/images/stripe-logo2.png
Normal file
BIN
lnbits/static/images/stripe-logo2.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 23 KiB |
Loading…
x
Reference in New Issue
Block a user