You are here

public function CheckoutSdkInterface::capturePayment in Commerce PayPal 8

Captures an authorized payment, by ID.

Parameters

string $authorization_id: The PayPal-generated ID for the authorized payment to capture.

array $parameters: (optional An array of parameters to pass as the request body.

Return value

\Psr\Http\Message\ResponseInterface The HTTP response.

1 method overrides CheckoutSdkInterface::capturePayment()
CheckoutSdk::capturePayment in src/CheckoutSdk.php
Captures an authorized payment, by ID.

File

src/CheckoutSdkInterface.php, line 98

Class

CheckoutSdkInterface

Namespace

Drupal\commerce_paypal

Code

public function capturePayment($authorization_id, array $parameters = []);