# $cart->payPalPurchaseUnits()

> Cart as PayPal purchase unit

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

```php
$cart->payPalPurchaseUnits(): array
```

## Return type

`array`

Returns an array in the format of PayPal’s purchase_unit_request

## Description

Could be used for wagnerwagner.merx.paypal.purchaseUnits. The option
replaces Merx’ own purchase unit, so the returned unit carries the total
of the whole cart.

## Parent class

`Wagnerwagner\Merx\Cart`
