diff --git a/spec/Nikapps/NikPay/PaymentProviders/Saman/SamanSpec.php b/spec/Nikapps/NikPay/PaymentProviders/Saman/SamanSpec.php index 1b56647..f40a576 100644 --- a/spec/Nikapps/NikPay/PaymentProviders/Saman/SamanSpec.php +++ b/spec/Nikapps/NikPay/PaymentProviders/Saman/SamanSpec.php @@ -113,7 +113,7 @@ function it_should_throw_an_exception_when_verifying_is_failed($soap, $samanConf $soap->call('verifyTransaction', $params)->willReturn(-3); $this->shouldThrow( - new NotVerifiedException('Payment is not verified', -3) + new NotVerifiedException('Payment is not verified by bank', -3) )->duringVerify('ref-123-123'); } diff --git a/src/Exceptions/BankNotFoundException.php b/src/Exceptions/BankNotFoundException.php index 9b2e835..c3c1939 100644 --- a/src/Exceptions/BankNotFoundException.php +++ b/src/Exceptions/BankNotFoundException.php @@ -4,4 +4,5 @@ class BankNotFoundException extends PaymentException { + protected $message = "The given bank doesn't exist"; } \ No newline at end of file diff --git a/src/Exceptions/DuplicateReferenceException.php b/src/Exceptions/DuplicateReferenceException.php index a58ddca..dc5e5ba 100644 --- a/src/Exceptions/DuplicateReferenceException.php +++ b/src/Exceptions/DuplicateReferenceException.php @@ -4,6 +4,8 @@ class DuplicateReferenceException extends PaymentException { + protected $message = "The reference number already exists"; + /** * @var string */ diff --git a/src/Exceptions/FailedPaymentException.php b/src/Exceptions/FailedPaymentException.php index 68bb93d..4328b44 100644 --- a/src/Exceptions/FailedPaymentException.php +++ b/src/Exceptions/FailedPaymentException.php @@ -4,6 +4,8 @@ class FailedPaymentException extends PaymentException { + protected $message = "Transaction was not successful"; + /** * Payment state * diff --git a/src/Exceptions/InvalidPostDataException.php b/src/Exceptions/InvalidPostDataException.php index e5b9960..58a4e46 100644 --- a/src/Exceptions/InvalidPostDataException.php +++ b/src/Exceptions/InvalidPostDataException.php @@ -4,4 +4,5 @@ class InvalidPostDataException extends PaymentException { + protected $message = "Post data is invalid"; } \ No newline at end of file diff --git a/src/Exceptions/NotEqualAmountException.php b/src/Exceptions/NotEqualAmountException.php index 02bd229..56d019c 100644 --- a/src/Exceptions/NotEqualAmountException.php +++ b/src/Exceptions/NotEqualAmountException.php @@ -4,6 +4,7 @@ class NotEqualAmountException extends PaymentException { + protected $message = "Given amount form bank is not equal to provided amount"; /** * @var string */ diff --git a/src/Exceptions/NotFoundConfigurationException.php b/src/Exceptions/NotFoundConfigurationException.php index f8a664a..09504fb 100644 --- a/src/Exceptions/NotFoundConfigurationException.php +++ b/src/Exceptions/NotFoundConfigurationException.php @@ -4,4 +4,5 @@ class NotFoundConfigurationException extends PaymentException { + protected $message = "Configuration is not found for given bank"; } \ No newline at end of file diff --git a/src/Exceptions/NotVerifiedException.php b/src/Exceptions/NotVerifiedException.php index 5e6c406..da239c6 100644 --- a/src/Exceptions/NotVerifiedException.php +++ b/src/Exceptions/NotVerifiedException.php @@ -4,7 +4,7 @@ class NotVerifiedException extends PaymentException { - protected $message = 'Payment is not verified'; + protected $message = 'Payment is not verified by bank'; /** * @var integer diff --git a/src/Exceptions/SoapException.php b/src/Exceptions/SoapException.php index e134f9a..59bf0be 100644 --- a/src/Exceptions/SoapException.php +++ b/src/Exceptions/SoapException.php @@ -4,6 +4,8 @@ class SoapException extends PaymentException { + protected $message = "SoapClient is failed"; + /** * SoapFault exception *