Skip to content

Commit b6e4146

Browse files
author
Vladimir
committed
Feat: add exception while calling payment transactions
- add exceptions while calling payment transactions
1 parent 9259bda commit b6e4146

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/Client.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -331,6 +331,12 @@ private function getVelocityProcessor($merchantProfileId)
331331
{
332332
$this->checkSignOn();
333333

334+
if (empty($merchantProfileId)) {
335+
throw new UnhandledException(
336+
'Merchant profile ID is empty to perform payment transaction', 0
337+
);
338+
}
339+
334340
return new \VelocityProcessor(
335341
$this->applicationProfileId, $merchantProfileId, $this->workflowId,
336342
$this->isTestAccount, $this->identityToken, $this->getSessionToken()

0 commit comments

Comments
 (0)