# PaymentDetails::create()

> Builds a record, dropping everything which is not an allowed key

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

```php
PaymentDetails::create(array $data): array
```

## Parameters

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

## Return type

`array`

## Description

Use this in a custom payment gateway instead of storing the provider’s
response as it is.

## Parent class

`Wagnerwagner\Merx\PaymentDetails`
