Skip to content

Commit

Permalink
use correct x-nowpayments-sig param in webhook example
Browse files Browse the repository at this point in the history
  • Loading branch information
loki84nl committed Jul 14, 2021
1 parent 7a91849 commit e3dd218
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webhook.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
// requires symfony http kernel: (composer require symfony/http-kernel)

$request = \Symfony\Component\HttpFoundation\Request::createFromGlobals();
if(Authentication::authenticate($request->getContent(), $request->headers->get('http_x_nowpayments_sig'), $ipnSecret)) {
if(Authentication::authenticate($request->getContent(), $request->headers->get('x-nowpayments-sig'), $ipnSecret)) {

// webhook authenticated

Expand Down

0 comments on commit e3dd218

Please sign in to comment.