# PayPalPayment::executePayPalPayment()

> Capture PayPal payment for order

- See also: `https://developer.paypal.com/docs/api/orders/v2/#orders_capture PayPal REST API Documentation`
- Source: `src/PayPalPayment.php#L91` <https://github.com/wagnerwagner/merx/blob/2.0.0-alpha.11/src/PayPalPayment.php#L91>

```php
PayPalPayment::executePayPalPayment(string $payPalOrderId): array
```

## Parameters

| Name | Type | Default |
| --- | --- | --- |
| `$payPalOrderId` | `string` | `–` |

## Return type

`array`

Captured PayPal payment details
              - 'id': (string) The ID of the order.
              - 'status': (string) The order status.
              - 'payment_source': (array) The payment source used to fund the payment.
              - 'purchase_units': (array) An array of purchase units.
              - 'payer': (array) The customer who approves and pays for the order. The customer is also known as the payer.
              - 'links': (array) An array of request-related HATEOAS links.

## Parent class

`Wagnerwagner\Merx\PayPalPayment`
