diff --git a/src/Payments.php b/src/Payments.php index 36cf82c..5bd90b3 100644 --- a/src/Payments.php +++ b/src/Payments.php @@ -61,6 +61,11 @@ public function captureAuthorization($id) return $this->post("payments/payment/{$id}/capture", GoPay::FORM, array()); } + public function captureAuthorizationPartial($id, array $capturePayment) + { + return $this->post("payments/payment/{$id}/capture", GoPay::JSON, $capturePayment); + } + public function voidAuthorization($id) { return $this->post("payments/payment/{$id}/void-authorization", GoPay::FORM, array());