Product Docs Help

getCheckoutVersion

<?php declare(strict_types=1); require __DIR__ . '/../../vendor/autoload.php'; use Dotenv\Dotenv; $dotenv = Dotenv::createImmutable(__DIR__ . '/../..'); $dotenv->load(); use Qvickly\Api\Checkout\CheckoutAPI; $checkoutAPI = new CheckoutAPI($_ENV['EID'], $_ENV['SECRET']); echo "Get version\n"; $version = $checkoutAPI->getVersion(); echo "Current Checkout version is " . $version . "\n";

Full example can be found here

This code requires our composer package qvickly/api

composer require qvickly/api

Response

Get version Current Checkout version is 1.7.27
Last modified: 13 September 2024