btcpayserver / magento2-plugin

4 stars 5 forks source link

Fix empty BTCPay URL detection. #18

Closed ndeet closed 1 year ago

ndeet commented 1 year ago

The "Generate API Key" was always shown even if the BTCPay URL was empty. Because the getBtcPayServerBaseUrl() never returned null but / if there was no URL set (due to the rtrim line).

woutersamaey commented 1 year ago

Good find. Thanks!