fix: webhook url for signature check
This commit is contained in:
+1
-1
File diff suppressed because one or more lines are too long
@@ -268,7 +268,9 @@ window.localisation.en = {
|
|||||||
webhook_stripe_description:
|
webhook_stripe_description:
|
||||||
'One the stripe side you must configure a webhook with a URL that points to your LNbits server.',
|
'One the stripe side you must configure a webhook with a URL that points to your LNbits server.',
|
||||||
webhook_square_description:
|
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',
|
access_token: 'Access Token',
|
||||||
location_id: 'Location ID',
|
location_id: 'Location ID',
|
||||||
square_location_id_hint:
|
square_location_id_hint:
|
||||||
|
|||||||
@@ -21,12 +21,6 @@ window.app.component('lnbits-admin-fiat-providers', {
|
|||||||
this.formData?.paypal_payment_webhook_url ||
|
this.formData?.paypal_payment_webhook_url ||
|
||||||
this.calculateWebhookUrl('paypal')
|
this.calculateWebhookUrl('paypal')
|
||||||
)
|
)
|
||||||
},
|
|
||||||
squareWebhookUrl() {
|
|
||||||
return (
|
|
||||||
this.formData?.square_payment_webhook_url ||
|
|
||||||
this.calculateWebhookUrl('square')
|
|
||||||
)
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
|
|||||||
@@ -664,11 +664,9 @@
|
|||||||
<q-input
|
<q-input
|
||||||
filled
|
filled
|
||||||
type="text"
|
type="text"
|
||||||
disable
|
v-model="formData.square_payment_webhook_url"
|
||||||
:model-value="squareWebhookUrl"
|
|
||||||
:label="$t('webhook_url')"
|
:label="$t('webhook_url')"
|
||||||
:hint="$t('webhook_url_hint')"
|
:hint="$t('square_webhook_url_hint')"
|
||||||
readonly
|
|
||||||
></q-input>
|
></q-input>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-auto">
|
<div class="col-auto">
|
||||||
@@ -676,7 +674,9 @@
|
|||||||
outline
|
outline
|
||||||
color="grey"
|
color="grey"
|
||||||
icon="content_copy"
|
icon="content_copy"
|
||||||
@click="copyWebhookUrl(squareWebhookUrl)"
|
@click="
|
||||||
|
copyWebhookUrl(formData.square_payment_webhook_url)
|
||||||
|
"
|
||||||
:aria-label="$t('copy_webhook_url')"
|
:aria-label="$t('copy_webhook_url')"
|
||||||
>
|
>
|
||||||
<q-tooltip>
|
<q-tooltip>
|
||||||
|
|||||||
Reference in New Issue
Block a user