diff --git a/src/Base.php b/src/Base.php index 841b7ab..523afd4 100644 --- a/src/Base.php +++ b/src/Base.php @@ -175,17 +175,6 @@ public function getBaseUrl(): string return $this->base_url; } - - /** - * Verify Payment - * @throws Exception - */ - public function verifyPayment($paymentRefId) - { - $url = $this->base_url . 'verify/payment/' . $paymentRefId; - return Helper::httpGet($url); - } - /** * @throws NagadPaymentException */ diff --git a/src/Helper.php b/src/Helper.php index f7a7f54..e8d51db 100644 --- a/src/Helper.php +++ b/src/Helper.php @@ -75,7 +75,7 @@ public function encryptDataWithPublicKey($data): string return base64_encode($cryptoText); } - throw new ExceptionHandler('Invalid Public key'); + throw new ExceptionHandler('Invalid Public key. Check Public Key in Configuration'); } /** @@ -94,7 +94,7 @@ public function signatureGenerate($data): string return base64_encode($signature); } - throw new ExceptionHandler('Invalid private key'); + throw new ExceptionHandler('Invalid private key. Check Private Key in Configuration'); } /** @@ -133,7 +133,6 @@ public function httpPostMethod(string $postUrl, array $postData) $response = json_decode($resultData, true); curl_close($url); return $response; - }