You are here

public function ExpressCheckoutInterface::doRefundTransaction in Commerce PayPal 8

RefundTransaction API Operation (NVP) request.

Builds the data for the request and make the request.

Parameters

\Drupal\commerce_payment\Entity\PaymentInterface $payment: The payment.

array $extra: Extra data needed for this request, ex.: refund amount, refund type, etc....

Return value

array PayPal response data.

See also

https://developer.paypal.com/docs/classic/api/merchant/RefundTransaction...

1 method overrides ExpressCheckoutInterface::doRefundTransaction()
ExpressCheckout::doRefundTransaction in src/Plugin/Commerce/PaymentGateway/ExpressCheckout.php
RefundTransaction API Operation (NVP) request.

File

src/Plugin/Commerce/PaymentGateway/ExpressCheckoutInterface.php, line 140

Class

ExpressCheckoutInterface
Provides the interface for the Express Checkout payment gateway.

Namespace

Drupal\commerce_paypal\Plugin\Commerce\PaymentGateway

Code

public function doRefundTransaction(PaymentInterface $payment, array $extra);