# PaymentDetails::fromStripePaymentIntent()

> Builds a record from a Stripe PaymentIntent

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

```php
PaymentDetails::fromStripePaymentIntent(Stripe\PaymentIntent $paymentIntent): array
```

## Parameters

| Name | Type | Default |
| --- | --- | --- |
| `$paymentIntent` | `Stripe\PaymentIntent` | `–` |

## Return type

`array`

## Description

Stripe reports the amount in the currency’s minor unit. It is converted
back with the same factor `StripePayment::createStripePaymentIntent()`
uses to create the intent.

## Parent class

`Wagnerwagner\Merx\PaymentDetails`
