Skip to content

Commit

Permalink
Merge pull request #30 from alexstewartja/server-pairing-fix
Browse files Browse the repository at this point in the history
Fix the headers being send while creating the key pair
  • Loading branch information
vrajroham authored Aug 11, 2021
2 parents 6101ec3 + 9a8e4eb commit 1d5fff2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Commands/CreateKeypair.php
Original file line number Diff line number Diff line change
Expand Up @@ -153,8 +153,8 @@ public function pairWithServerAndCreateToken()
$response = $bitpayClient->post('/tokens', [
'json' => $postData,
'headers' => [
'x-accept-version: 2.0.0',
'Content-Type: application/json',
'x-accept-version' => '2.0.0',
'Content-Type' => 'application/json',
// Todo: If added below headers, bitpay responds with error, "This endpoint does not support the `user` facade"
// 'x-identity' => $this->publicKey->__toString(),
// 'x-signature' => $this->privateKey->sign($this->network.'/tokens'.json_encode($postData)),
Expand Down

0 comments on commit 1d5fff2

Please sign in to comment.