# PaymentDetails

> Builds the record stored in an order’s `paymentDetails` field

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

## Description

A provider’s raw response holds personal data (email, name, phone, address)
and, in Stripe’s case, the PaymentIntent’s `client_secret`, which Stripe
states must not be stored. Order pages are plain content files, so only the
fields needed to find the transaction again are kept.

## Pages

- [PaymentDetails::create()](https://merx2.wagnerwagner.de/reference/classes/payment-details/create.md): Builds a record, dropping everything which is not an allowed key
- [PaymentDetails::fromPayPalOrder()](https://merx2.wagnerwagner.de/reference/classes/payment-details/from-pay-pal-order.md): Builds a record from a captured PayPal order
- [PaymentDetails::fromStripePaymentIntent()](https://merx2.wagnerwagner.de/reference/classes/payment-details/from-stripe-payment-intent.md): Builds a record from a Stripe PaymentIntent
