Skip to content

Commit 7bc9544

Browse files
authored
Merge pull request #6 from BoltApp/jz/transaction-review
Add support for manually review transactions
2 parents 84bc4bc + 6056f54 commit 7bc9544

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

lib/ApiClient.php

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
* Class ApiClient
2121
* @package BoltPay
2222
*
23-
* API Client to interact with Bolt APIs (https://docs.bolt.com/reference).
23+
* API Client to interact with Bolt APIs (https://docs.bolt.com/api_reference).
2424
*/
2525
class ApiClient {
2626

@@ -96,6 +96,15 @@ public function authorize(array $params) {
9696
return $this->httpClient->post($this->getUrl('merchant/transactions/authorize'), $params);
9797
}
9898

99+
/**
100+
* Manually review a transaction that is in the reversibly_rejected state.
101+
* @param array $params
102+
* @return Response
103+
*/
104+
public function review(array $params) {
105+
return $this->httpClient->post($this->getUrl('merchant/transactions/review'), $params);
106+
}
107+
99108
private function getUrl($path) {
100109
$base = $this->isSandbox ? Bolt::$apiSandboxUrl . '/v1/' : Bolt::$apiProductionUrl . '/v1/';
101110
return $base . $path;

0 commit comments

Comments
 (0)