'; $latestOrders = $mollie->orders->page(); \_PhpScoper506056c89102\printOrders($latestOrders); $previousOrders = $latestOrders->next(); \_PhpScoper506056c89102\printOrders($previousOrders); echo ''; } catch (\Mollie\Api\Exceptions\ApiException $e) { echo "API call failed: " . \htmlspecialchars($e->getMessage()); } function printOrders($orders) { if (empty($orders)) { return; } foreach ($orders as $order) { echo '
  • Order ' . \htmlspecialchars($order->id) . ': (' . \htmlspecialchars($order->createdAt) . ')'; echo '
    Status: ' . \htmlspecialchars($order->status); echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo '
    Billed toShipped toTotal amount
    ' . \htmlspecialchars($order->shippingAddress->givenName) . ' ' . \htmlspecialchars($order->shippingAddress->familyName) . '' . \htmlspecialchars($order->billingAddress->givenName) . ' ' . \htmlspecialchars($order->billingAddress->familyName) . '' . \htmlspecialchars($order->amount->currency) . \str_replace('.', ',', \htmlspecialchars($order->amount->value)) . '
    '; echo 'Click here to pay'; echo '
  • '; } }