Product Docs Help

terms

<?php declare(strict_types=1); require __DIR__ . '/../../vendor/autoload.php'; use Dotenv\Dotenv; $dotenv = Dotenv::createImmutable(__DIR__ . '/../..'); $dotenv->load(); use Qvickly\Api\Checkout\CheckoutAPI; use function Qvickly\Api\Payment\Helpers\exampleCheckout; $checkoutAPI = new CheckoutAPI($_ENV['EID'], $_ENV['SECRET'], true); echo "Create checkout\n"; $payload = exampleCheckout(); $checkout = $checkoutAPI->initCheckout($payload); $terms = $checkoutAPI->terms($checkout['hash'], 1000, 8); echo $terms . "\n";

Full example can be found here

This code requires our composer package qvickly/api

composer require qvickly/api
Last modified: 13 September 2024