'; $latestSessions = $mollie->sessions->page(); \_PhpScoper506056c89102\printSessions($latestSessions); $previousSessions = $latestSessions->next(); \_PhpScoper506056c89102\printSessions($previousSessions); echo ''; } catch (\Mollie\Api\Exceptions\ApiException $e) { echo "API call failed: " . \htmlspecialchars($e->getMessage()); } function printSessions($sessions) { if (empty($sessions)) { return; } foreach ($sessions as $session) { echo '
| Billed to | Shipped to | Total amount |
|---|---|---|
| ' . \htmlspecialchars($session->shippingAddress->givenName) . ' ' . \htmlspecialchars($session->shippingAddress->familyName) . ' | '; echo '' . \htmlspecialchars($session->billingAddress->givenName) . ' ' . \htmlspecialchars($session->billingAddress->familyName) . ' | '; echo '' . \htmlspecialchars($session->amount->currency) . \str_replace('.', ',', \htmlspecialchars($session->amount->value)) . ' | '; echo '