From b3ac042eed3762f909fb30c2c14f1f943b4aba60 Mon Sep 17 00:00:00 2001 From: Chan Lee Siong Date: Thu, 2 Mar 2017 15:29:55 +0800 Subject: [PATCH] Fix minor bug --- src/Message/CompletePurchaseRequest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Message/CompletePurchaseRequest.php b/src/Message/CompletePurchaseRequest.php index 242de3b..e42b462 100644 --- a/src/Message/CompletePurchaseRequest.php +++ b/src/Message/CompletePurchaseRequest.php @@ -234,10 +234,10 @@ protected function generatePreSKey($fallbackMode = false) { $this->validate('amount', 'currency', 'domain', 'status', 'transactionId', 'transactionReference'); - $preSKey = md5($this->getTransactionReference().$this->getTransactionId().$this->getStatus().$this->getDomain().$this->getAmount()->getFormatted().$this->getCurrency()); + $preSKey = md5($this->getTransactionReference().$this->getTransactionId().$this->getStatus().$this->getDomain().$this->getAmount().$this->getCurrency()); if ($fallbackMode) { - $preSKey = md5($this->getTransactionReference().$this->getTransactionId().$this->getStatus().$this->getDomain().$this->getAmount()->getFormatted().$this->getConvertedCurrency()); + $preSKey = md5($this->getTransactionReference().$this->getTransactionId().$this->getStatus().$this->getDomain().$this->getAmount().$this->getConvertedCurrency()); } return $preSKey;