From 51e528bfc2910f03a9b232bdbf0bdfdb0b6bdddc Mon Sep 17 00:00:00 2001 From: Cristiano Betta Date: Thu, 12 Sep 2024 09:11:30 +0100 Subject: [PATCH] feat(sync): Add sync transaction support (#34) --- lib/Gr4vyConfig.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/Gr4vyConfig.php b/lib/Gr4vyConfig.php index b1397ab..554adcf 100644 --- a/lib/Gr4vyConfig.php +++ b/lib/Gr4vyConfig.php @@ -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;