Skip to content

Commit 3e9df6e

Browse files
authored
triv(refunds): propagate refund exceptions to caller (#5)
1 parent ca8c298 commit 3e9df6e

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

lib/RaiAcceptService.php

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -164,13 +164,8 @@ public static function get_transaction_details($client, string $access_token, st
164164
public static function refund($client, string $access_token, string $order_id, string $transaction_id, $request_obj)
165165
{
166166
$apiInstance = new Api\RaiAcceptAPIApi($client);
167-
try {
168-
$result = $apiInstance->refund($access_token, $order_id, $transaction_id, $request_obj);
169-
} catch (\Exception $e) {
170-
return null;
171-
}
172167

173-
return $result;
168+
return $apiInstance->refund($access_token, $order_id, $transaction_id, $request_obj);
174169
}
175170

176171
public static function getPaidStatuses(): array {

0 commit comments

Comments
 (0)