You are here

public function ExpressCheckoutInterface::doCapture in Commerce PayPal 8

DoCapture API Operation (NVP) request.

Builds the data for the request and make the request.

Parameters

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

int $amount_number: The amount number to be captured.

Return value

array PayPal response data.

See also

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

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

File

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

Class

ExpressCheckoutInterface
Provides the interface for the Express Checkout payment gateway.

Namespace

Drupal\commerce_paypal\Plugin\Commerce\PaymentGateway

Code

public function doCapture(PaymentInterface $payment, $amount_number);