Skip to content

Commit

Permalink
Fix minor bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Chan Lee Siong committed Mar 2, 2017
1 parent f1931bd commit b3ac042
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Message/CompletePurchaseRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit b3ac042

Please sign in to comment.