Skip to content

Commit

Permalink
Fixed bug in URL, missing slash
Browse files Browse the repository at this point in the history
  • Loading branch information
woutersamaey committed May 11, 2023
1 parent 8f6c275 commit 2356aa3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Model/BTCPay/BTCPayService.php
Original file line number Diff line number Diff line change
Expand Up @@ -697,7 +697,8 @@ public function getWebhookUrl(int $magentoStoreId): string
public function getReceiveApikeyUrl(int $magentoStoreId): string
{
$url = $this->getStoreConfig('web/secure/base_url', $magentoStoreId);
$url .= 'btcpay/apikey/save';
$url = rtrim($url, '/');
$url .= '/btcpay/apikey/save';
$hashedSecret = $this->hashSecret($magentoStoreId);
return $url . '?secret=' . urlencode($hashedSecret) . '&store=' . $magentoStoreId;
}
Expand Down

0 comments on commit 2356aa3

Please sign in to comment.