Skip to content

Commit 130d407

Browse files
committed
Merge branch 'dev'
2 parents d2cf35d + aadcd88 commit 130d407

File tree

2 files changed

+2
-14
lines changed

2 files changed

+2
-14
lines changed

src/Base.php

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -175,17 +175,6 @@ public function getBaseUrl(): string
175175
return $this->base_url;
176176
}
177177

178-
179-
/**
180-
* Verify Payment
181-
* @throws Exception
182-
*/
183-
public function verifyPayment($paymentRefId)
184-
{
185-
$url = $this->base_url . 'verify/payment/' . $paymentRefId;
186-
return Helper::httpGet($url);
187-
}
188-
189178
/**
190179
* @throws NagadPaymentException
191180
*/

src/Helper.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ public function encryptDataWithPublicKey($data): string
7575
return base64_encode($cryptoText);
7676
}
7777

78-
throw new ExceptionHandler('Invalid Public key');
78+
throw new ExceptionHandler('Invalid Public key. Check Public Key in Configuration');
7979
}
8080

8181
/**
@@ -94,7 +94,7 @@ public function signatureGenerate($data): string
9494
return base64_encode($signature);
9595
}
9696

97-
throw new ExceptionHandler('Invalid private key');
97+
throw new ExceptionHandler('Invalid private key. Check Private Key in Configuration');
9898
}
9999

100100
/**
@@ -133,7 +133,6 @@ public function httpPostMethod(string $postUrl, array $postData)
133133
$response = json_decode($resultData, true);
134134
curl_close($url);
135135
return $response;
136-
137136
}
138137

139138

0 commit comments

Comments
 (0)