Skip to content

Commit 59b3fc5

Browse files
committed
pivo transaction result to payment API
1 parent d7d73fa commit 59b3fc5

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/PaymentApi.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,18 @@ public function siirtoTransactionResult($transactionId)
129129
return $this->makeRequest(self::$METHOD_GET, $uri);
130130
}
131131

132+
/**
133+
* Used to find out whether or not an Pivo transaction succeeded.
134+
* @param string|UUID $transactionId
135+
* @return Response
136+
* @throws \Httpful\Exception\ConnectionErrorException
137+
*/
138+
public function pivoTransactionResult($transactionId)
139+
{
140+
$uri = '/transaction/' . $transactionId . '/pivo/result';
141+
return $this->makeRequest(self::$METHOD_GET, $uri);
142+
}
143+
132144
/**
133145
* @param string $transactionId
134146
* @param string $amount

0 commit comments

Comments
 (0)