From 8f7c0b8d1de910c0ede67db8a2d69c3bbe2575b5 Mon Sep 17 00:00:00 2001 From: "Barry vd. Heuvel" Date: Wed, 12 Jul 2017 15:03:17 +0200 Subject: [PATCH] Always include shopId when given --- src/Message/PurchaseRequest.php | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/src/Message/PurchaseRequest.php b/src/Message/PurchaseRequest.php index 1daeeb9..32b1440 100644 --- a/src/Message/PurchaseRequest.php +++ b/src/Message/PurchaseRequest.php @@ -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() ); }