# OrderPage

> Page model for order page

- Read more: <https://merx2.wagnerwagner.de/guide/getting-started/displaying-order.md>
- Source: `src/OrderPage.php` <https://github.com/wagnerwagner/merx/blob/2.0.0-alpha.11/src/OrderPage.php>

## Description

This model is used to store and validate order data.

## Pages

- [$orderPage->cart()](https://merx2.wagnerwagner.de/reference/classes/order-page/cart.md): List of products of the Order
- [$orderPage->dateCreated()](https://merx2.wagnerwagner.de/reference/classes/order-page/date-created.md): Content field: Date, when the order was created (date('c')).
- [$orderPage->datePaid()](https://merx2.wagnerwagner.de/reference/classes/order-page/date-paid.md): Content field: Date, when the order was paid (date('c')). Empty while the payment is pending.
- [$orderPage->email()](https://merx2.wagnerwagner.de/reference/classes/order-page/email.md): Content field: Customer’s email address
- [$orderPage->isCacheable()](https://merx2.wagnerwagner.de/reference/classes/order-page/is-cacheable.md): Do not cache order pages, to ensure that all security guards remain effective at all times.
- [$orderPage->isPaid()](https://merx2.wagnerwagner.de/reference/classes/order-page/is-paid.md): Whether the order is paid
- [$orderPage->items()](https://merx2.wagnerwagner.de/reference/classes/order-page/items.md): Content field: Cart items as YAML
- [$orderPage->orderNumber()](https://merx2.wagnerwagner.de/reference/classes/order-page/order-number.md): Content field: Sequential number for each order. Can be customized with wagnerwagner.merx.orderNumber option.
- [$orderPage->payPalOrderId()](https://merx2.wagnerwagner.de/reference/classes/order-page/pay-pal-order-id.md): Content field: Id of the PayPal order, used to complete the payment when the customer returns
- [$orderPage->paymentDetails()](https://merx2.wagnerwagner.de/reference/classes/order-page/payment-details.md): Reconciliation record of the payment
- [$orderPage->paymentProvider()](https://merx2.wagnerwagner.de/reference/classes/order-page/payment-provider.md): Name of the payment provider which processed the order, e.g. `stripe`
- [$orderPage->paymentProviderUrl()](https://merx2.wagnerwagner.de/reference/classes/order-page/payment-provider-url.md): Link to this order’s transaction in the provider’s dashboard
- [$orderPage->productUuids()](https://merx2.wagnerwagner.de/reference/classes/order-page/product-uuids.md): Page uuids of products in this order
- [$orderPage->redirect()](https://merx2.wagnerwagner.de/reference/classes/order-page/redirect.md): Content field: URL the customer is redirected to
- [$orderPage->render()](https://merx2.wagnerwagner.de/reference/classes/order-page/render.md): Renders the order page
- [$orderPage->sortingNumber()](https://merx2.wagnerwagner.de/reference/classes/order-page/sorting-number.md): Sorting number of the order: the time it was created, to the millisecond
- [OrderPage::sortingNumberFromDate()](https://merx2.wagnerwagner.de/reference/classes/order-page/sorting-number-from-date.md): Sorting number for an order created at $date
- [$orderPage->stripePaymentIntentId()](https://merx2.wagnerwagner.de/reference/classes/order-page/stripe-payment-intent-id.md): Content field: Id of the Stripe PaymentIntent, used to complete the payment when the customer returns
- [$orderPage->title()](https://merx2.wagnerwagner.de/reference/classes/order-page/title.md): Returns order number
- [$orderPage->total()](https://merx2.wagnerwagner.de/reference/classes/order-page/total.md): Total price of the order
