Skip to content

Commit

Permalink
feat: add explanations for payment profile fields
Browse files Browse the repository at this point in the history
  • Loading branch information
021-projects committed Sep 15, 2024
1 parent 324895c commit bd47a75
Show file tree
Hide file tree
Showing 7 changed files with 38 additions and 5 deletions.
24 changes: 24 additions & 0 deletions src/addons/BS/BtcPayProvider/_output/phrases/_metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,12 @@
"version_string": "1.0.0",
"hash": "d876ff8da67c3731ae25d8335a4168b4"
},
"btcpayserver_api_key_explain.txt": {
"global_cache": false,
"version_id": 1000070,
"version_string": "1.0.0",
"hash": "fb75ea4eba2d8925006acdd694d991eb"
},
"btcpayserver_enable_invoice_alert.txt": {
"global_cache": false,
"version_id": 1000070,
Expand All @@ -65,16 +71,34 @@
"version_string": "1.0.0",
"hash": "c2ca16d048ec66e04bca283eab048ec2"
},
"btcpayserver_host_explain.txt": {
"global_cache": false,
"version_id": 1000070,
"version_string": "1.0.0",
"hash": "f0945f3c97a181c618bc8c319f812b2c"
},
"btcpayserver_secret.txt": {
"global_cache": false,
"version_id": 1000070,
"version_string": "1.0.0",
"hash": "1e6947ac7fb3a9529a9726eb692c8cc5"
},
"btcpayserver_secret_explain.txt": {
"global_cache": false,
"version_id": 1000070,
"version_string": "1.0.0",
"hash": "ed70c2d61b2d8676b8853a5824e29e14"
},
"btcpayserver_store_id.txt": {
"global_cache": false,
"version_id": 1000070,
"version_string": "1.0.0",
"hash": "1feafb67c1da8183793afe1f61bce2f4"
},
"btcpayserver_store_id_explain.txt": {
"global_cache": false,
"version_id": 1000070,
"version_string": "1.0.0",
"hash": "95a8a7ca79c1df2a2e6f45f03c75f02b"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<a href="https://docs.btcpayserver.org/Xenforo/#create-api-key" target="_blank">Where to get an API key?</a>
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Enter the address to the BTCPay instance you want to use.<br>Example: https://mainnet.demo.btcpayserver.org
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<a href="https://docs.btcpayserver.org/Xenforo/#setup-webhook" target="_blank">How to setup a webhook and get a secret?</a>
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
You can find it under [Store Settings] –> General.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"admin/payment_profile_btcPayServer.html": {
"version_id": 1000070,
"version_string": "1.0.0",
"hash": "c5427f34a5520323146511e37d53feea"
"hash": "6611ea1ab92867b91568f712c1539657"
},
"public/alert_user_btcpayprovider_invoice_created.html": {
"version_id": 1000070,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,19 @@
<xf:textboxrow name="options[host]" value="{$profile.options.host}"
label="{{ phrase('btcpayserver_host') }}"/>
label="{{ phrase('btcpayserver_host') }}"
explain="{{ phrase('btcpayserver_host_explain') }}" />

<xf:textboxrow name="options[api_key]" value="{$profile.options.api_key}"
label="{{ phrase('btcpayserver_api_key') }}" />
label="{{ phrase('btcpayserver_api_key') }}"
explain="{{ phrase('btcpayserver_api_key_explain') }}" />

<xf:textboxrow name="options[secret]" value="{$profile.options.secret}"
label="{{ phrase('btcpayserver_secret') }}" type="password" />
label="{{ phrase('btcpayserver_secret') }}"
explain="{{ phrase('btcpayserver_secret_explain') }}"
type="password" />

<xf:textboxrow name="options[store_id]" value="{$profile.options.store_id}"
label="{{ phrase('btcpayserver_store_id') }}" />
label="{{ phrase('btcpayserver_store_id') }}"
explain="{{ phrase('btcpayserver_store_id_explain') }}" />

<xf:checkboxrow explain="{{ phrase('btcpayserver_enable_invoice_alert_explain') }}">
<xf:option label="{{ phrase('btcpayserver_enable_invoice_alert') }}" name="options[invoice_alert]" checked="{$profile.options.invoice_alert}" />
Expand Down

0 comments on commit bd47a75

Please sign in to comment.