Skip to content

Commit

Permalink
Always include shopId when given
Browse files Browse the repository at this point in the history
  • Loading branch information
barryvdh authored Jul 12, 2017
1 parent 7655af5 commit 8f7c0b8
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions src/Message/PurchaseRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,15 +86,9 @@ public function setShippingCountrycode($value)
*/
protected function generateSignature()
{
if ($this->getPaymentMethod() == 'klarna') {
return sha1(
$this->getTransactionId() . $this->getEntranceCode() . $this->getAmountInteger() .
$this->getShopId() . $this->getMerchantId() . $this->getMerchantKey()
);
}
return sha1(
$this->getTransactionId() . $this->getEntranceCode() .
$this->getAmountInteger() . $this->getMerchantId() . $this->getMerchantKey()
$this->getTransactionId() . $this->getEntranceCode() . $this->getAmountInteger() .
$this->getShopId() . $this->getMerchantId() . $this->getMerchantKey()
);
}

Expand Down

0 comments on commit 8f7c0b8

Please sign in to comment.