Submit
Path:
~
/
home
/
caratcollect
/
domains
/
24caratcollection.com
/
public_html
/
razorpays
/
razorpay-php
/
File Content:
Razorpay.php
<?php // Include Requests require_once __DIR__.'/libs/Requests-1.6.1/library/Requests.php'; // Register requests autoloader Requests::register_autoloader(); spl_autoload_register(function ($class) { // project-specific namespace prefix $prefix = 'Razorpay\Api'; // base directory for the namespace prefix $base_dir = __DIR__ . '/src/'; // does the class use the namespace prefix? $len = strlen($prefix); if (strncmp($prefix, $class, $len) !== 0) { // no, move to the next registered autoloader return; } // get the relative class name $relative_class = substr($class, $len); // // replace the namespace prefix with the base directory, // replace namespace separators with directory separators // in the relative class name, append with .php // $file = $base_dir . str_replace('\\', '/', $relative_class) . '.php'; // if the file exists, require it if (file_exists($file)) { require $file; } });
Submit
FILE
FOLDER
Name
Size
Permission
Action
libs
---
0755
src
---
0755
README.md
2470 bytes
0755
Razorpay.php
1011 bytes
0644
composer.json
1080 bytes
0755
composer.lock
3928 bytes
0755
doc.md
649 bytes
0755
version.txt
6 bytes
0755
N4ST4R_ID | Naxtarrr