Skip to content

Commit

Permalink
feat(sync): Add sync transaction support (#34)
Browse files Browse the repository at this point in the history
  • Loading branch information
cbetta authored Sep 12, 2024
1 parent 5fd242e commit 51e528b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/Gr4vyConfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -403,6 +403,10 @@ public function getTransaction($transaction_id) {
$response = $this->get("/transactions/" . $transaction_id);
return $response;
}
public function syncTransaction($transaction_id) {
$response = $this->post("/transactions/" . $transaction_id . "/sync", null);
return $response;
}
public function captureTransaction($transaction_id, $transaction_request) {
$response = $this->post("/transactions/" . $transaction_id . "/capture", $transaction_request);
return $response;
Expand Down

0 comments on commit 51e528b

Please sign in to comment.