btcpayserver / xenforo

MIT License
5 stars 4 forks source link

[Link to pay missing] user recieves an alert containing a link to pay but link is missing/empty. #10

Open git-3000 opened 4 weeks ago

git-3000 commented 4 weeks ago

Hello. I am 2 issues that i think are related. I installed the btcpay add-on to my xenforo forum. Followed the instructions. When i purchase an upgrade. I receive an alert with a link but the link is missing/empty.

When i log into the btcpay instance i can see the invoice was generated but on xenforo there is no link to pay. When i visit: https://mywebsite.com/forum/payment_callback.php?_xfProvider=btcPayServer I see a message "Invalid payment profile."

Is it possible it's not working because i installed my forum inside a subfolder? I'm not sure but here is my forum's information.

Info: Xenforo v2.3.3 PHP version - [8.3.11] MySQL version - 10.6.19 (10.6.19-MariaDB-cll-lve) PHP memory_limit - 512M PHP post_max_size - 300M PHP upload_max_filesize - 512M PHP max_input_vars - 1000 PHP max_execution_time - 30 cURL version - 7.87.0 cURL SSL version - OpenSSL/1.1.1w OpenSSL version - OpenSSL 1.1.1w 11 Sep 2023 Snuffleupagus enabled - No Imagick support - Yes EXIF support - Yes GZip support - Yes gmp support - No ZipArchive support Yes

Here is some pictures:

Add-on installed btcpay10

Add-on settings btc1

User upgrade setting btcpay8

Payment profile btcpay9

Webhooks settings btcpay3

Api settings. I added only the api that the instructions asked for but didn't work so afterwards i installed all the apis for testing but still doesn't work. btcpay2

Payload URL btcpay7

Account upgrade btcpay6

Invoice Alert. - when i click on the link nothing happens. When i copy the link. It does not copy because the link is missing. Link is empty. btcpay5

When i right click inspect the link i see this:
<a data-template-name="public:alert_user_btcpayprovider_invoice_created" id="_xfUid-1-1728575018" data-xf-click="">The invoice</a>
#_xfUid-1-1728575018
html#XF.has-js.template-forum_list.has-no-touchevents.has-passiveeventlisteners.has-hiddenscroll.has-overflowanchor.has-no-displaymodestandalone.has-flexgap.has-os-linux.has-browser-mozilla.has-pointer-nav body div#js-XFUniqueId61.menu.menu--structural.menu--medium.menu--potentialFixed.menu--right.is-active.is-complete div.menu-content div.js-alertsMenuBody div.menu-scroller ol.listPlain li.alert.js-alert.menu-row.menu-row--separated.menu-row--clickable div.fauxBlockLink div.contentRow div.contentRow-main.contentRow-main--close a#_xfUid-1-1728575018
//*[@id="_xfUid-1-1728575018"]

Invoice is present in my btcpay store btcpay4

021-projects commented 1 day ago

Hi! The link should be missing because it is processed using JS. It is also normal that you see the message "Invalid payment profile" when you go directly to the webhook link. I'm not quite clear what code you sent below the link, HTML can't look like that, so it would be great to see it as a screenshot to better understand what you mean. And please check your console for errors when you try to open an invoice from the alert. I also want to ask if there are any errors in your log?