# PaymentDetails::fromPayPalOrder()

> Builds a record from a captured PayPal order

- Source: `src/PaymentDetails.php#L93` <https://github.com/wagnerwagner/merx/blob/2.0.0-alpha.11/src/PaymentDetails.php#L93>

```php
PaymentDetails::fromPayPalOrder(array $paypalResponse): array
```

## Parameters

| Name | Type | Default |
| --- | --- | --- |
| `$paypalResponse` | `array` | `–` |

## Return type

`array`

## Description

PayPal reports one amount per capture. An order may hold more than one,
so their values are added up.

## Parent class

`Wagnerwagner\Merx\PaymentDetails`
