forked from veritrans/veritrans-php
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Veritrans.php
31 lines (25 loc) · 889 Bytes
/
Veritrans.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<?php
// This snippet due to the braintree_php.
if (version_compare(PHP_VERSION, '5.2.1', '<')) {
throw new Exception('PHP version >= 5.2.1 required');
}
// This snippet (and some of the curl code) due to the Facebook SDK.
if (!function_exists('curl_init')) {
throw new Exception('Veritrans needs the CURL PHP extension.');
}
if (!function_exists('json_decode')) {
throw new Exception('Veritrans needs the JSON PHP extension.');
}
// Configurations
require_once('Veritrans/Config.php');
// Veritrans API Resources
require_once('Veritrans/Transaction.php');
// Plumbing
require_once('Veritrans/ApiRequestor.php');
require_once('Veritrans/SnapApiRequestor.php');
require_once('Veritrans/Notification.php');
require_once('Veritrans/VtDirect.php');
require_once('Veritrans/VtWeb.php');
require_once('Veritrans/Snap.php');
// Sanitization
require_once('Veritrans/Sanitizer.php');