Skip to content

Commit

Permalink
Merge pull request #18 from gopaycommunity/hotfix/GPOMA-134-php-captu…
Browse files Browse the repository at this point in the history
…re-na-nizsi-castku

Added method for partial capture function
  • Loading branch information
FSichinger authored Oct 5, 2017
2 parents 2236644 + 33f0800 commit eb79986
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Payments.php
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down

0 comments on commit eb79986

Please sign in to comment.