fix: webhook url for signature check

This commit is contained in:
Vlad Stan
2026-05-13 15:23:29 +03:00
parent 0e8072a36e
commit f7e21b225c
5 changed files with 10 additions and 14 deletions
File diff suppressed because one or more lines are too long
+1 -1
View File
File diff suppressed because one or more lines are too long
+3 -1
View File
@@ -268,7 +268,9 @@ window.localisation.en = {
webhook_stripe_description:
'One the stripe side you must configure a webhook with a URL that points to your LNbits server.',
webhook_square_description:
'On the Square side configure a webhook pointing to your LNbits server.',
'On the Square side configure a webhook pointing to this exact LNbits URL.',
square_webhook_url_hint:
'Must exactly match the Square notification URL. LNbits requires the /api/v1/callback/square path.',
access_token: 'Access Token',
location_id: 'Location ID',
square_location_id_hint:
@@ -21,12 +21,6 @@ window.app.component('lnbits-admin-fiat-providers', {
this.formData?.paypal_payment_webhook_url ||
this.calculateWebhookUrl('paypal')
)
},
squareWebhookUrl() {
return (
this.formData?.square_payment_webhook_url ||
this.calculateWebhookUrl('square')
)
}
},
watch: {
@@ -664,11 +664,9 @@
<q-input
filled
type="text"
disable
:model-value="squareWebhookUrl"
v-model="formData.square_payment_webhook_url"
:label="$t('webhook_url')"
:hint="$t('webhook_url_hint')"
readonly
:hint="$t('square_webhook_url_hint')"
></q-input>
</div>
<div class="col-auto">
@@ -676,7 +674,9 @@
outline
color="grey"
icon="content_copy"
@click="copyWebhookUrl(squareWebhookUrl)"
@click="
copyWebhookUrl(formData.square_payment_webhook_url)
"
:aria-label="$t('copy_webhook_url')"
>
<q-tooltip>