![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/cartforge.co/vendor/braintree/braintree_php/lib/ |
<?php // phpcs:disable require_once(__DIR__ . DIRECTORY_SEPARATOR . 'autoload.php'); if (version_compare(PHP_VERSION, '7.3.0', '<')) { throw new Braintree\Exception('PHP version >= 7.3.0 required'); } /** * Braintree PHP Library * Creates class_aliases for old class names replaced by PSR-4 Namespaces */ class Braintree { /** * Checks for required dependencies * * @throws Braintree/Exception With the missing extension * * @return void */ public static function requireDependencies() { $requiredExtensions = ['xmlwriter', 'openssl', 'dom', 'hash', 'curl']; foreach ($requiredExtensions as $ext) { if (!extension_loaded($ext)) { throw new Braintree\Exception('The Braintree library requires the ' . $ext . ' extension.'); } } } } Braintree::requireDependencies();