Skip to content

Commit b8f4df6

Browse files
PHPSDK-181: Create an auxiliar non-static method for verifyNotification() (#387)
1 parent 9fb9d2d commit b8f4df6

1 file changed

Lines changed: 19 additions & 0 deletions

File tree

src/Util/Notification.php

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,25 @@
1111

1212
class Notification
1313
{
14+
/**
15+
* Method for scenarios where instance-based calls are required
16+
*
17+
* @param TransactionResponse|string $request
18+
* @param string $auth
19+
* @param string $apiKey
20+
* @param int $validationTimeInSeconds
21+
* @return bool
22+
* @throws InvalidArgumentException
23+
*/
24+
public function verify(
25+
$request,
26+
string $auth,
27+
string $apiKey,
28+
int $validationTimeInSeconds = 600
29+
): bool {
30+
return self::verifyNotification($request, $auth, $apiKey, $validationTimeInSeconds);
31+
}
32+
1433
/**
1534
* @param TransactionResponse|string $request
1635
* @param string $auth

0 commit comments

Comments
 (0)