You are here

public function CheckoutSdkInterface::refundPayment in Commerce PayPal 8

Refunds a captured payment, by ID.

Parameters

string $capture_id: The PayPal-generated ID for the captured payment to refund.

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::refundPayment()
CheckoutSdk::refundPayment in src/CheckoutSdk.php
Refunds a captured payment, by ID.

File

src/CheckoutSdkInterface.php, line 124

Class

CheckoutSdkInterface

Namespace

Drupal\commerce_paypal

Code

public function refundPayment($capture_id, array $parameters = []);