Start typing to see suggestions. Use arrow keys to navigate, Enter to select.

checkout

Kirby controller

Source: /controllers/checkout.php
Template: checkout

Description

Handles checkout form and Paddle transaction creation. Checkout is split in two steps, some vars aren’t available until step two.

Template variables

Variable Type Description
$cart Cart Active cart
$subtotal ?float Pre-tax total
$total ?float Tax total
$licensee string -
$transactionUrl string -
$transactionID string -
$errors array Validation errors keyed by field
$fieldError Closure Returns error message for a field
$hasError
$formData Array with form data

Usage

This controller provides template variables for the checkout template.
Variables are available in the template file templates/checkout.php.


Source: /controllers/checkout.php