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