Skip to content

Commit

Permalink
Fix default value for generatePreSKey and generateSKey function
Browse files Browse the repository at this point in the history
  • Loading branch information
Chan Lee Siong committed Mar 2, 2017
1 parent 12c1381 commit f1931bd
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/Message/CompletePurchaseRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -226,9 +226,11 @@ public function sendData($data)
/**
* Generate pre-sKey - first hash encryption.
*
* @param bool $fallbackMode
*
* @return string
*/
protected function generatePreSKey($fallbackMode)
protected function generatePreSKey($fallbackMode = false)
{
$this->validate('amount', 'currency', 'domain', 'status', 'transactionId', 'transactionReference');

Expand All @@ -244,9 +246,11 @@ protected function generatePreSKey($fallbackMode)
/**
* Generate sKey - final hash encryption.
*
* @param bool $fallbackMode
*
* @return string
*/
protected function generateSKey($fallbackMode)
protected function generateSKey($fallbackMode = false)
{
$this->validate('appCode', 'domain', 'payDate', 'verifyKey');

Expand Down

0 comments on commit f1931bd

Please sign in to comment.