__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
<?php
namespace Razorpay\Api;
class Api
{
protected static $baseUrl = 'https://api.razorpay.com/v1/';
protected static $key = null;
protected static $secret = null;
/*
* App info is to store the Plugin/integration
* information
*/
public static $appsDetails = array();
const VERSION = '2.8.1';
/**
* @param string $key
* @param string $secret
*/
public function __construct($key, $secret)
{
self::$key = $key;
self::$secret = $secret;
}
/*
* Set Headers
*/
public function setHeader($header, $value)
{
Request::addHeader($header, $value);
}
public function setAppDetails($title, $version = null)
{
$app = array(
'title' => $title,
'version' => $version
);
array_push(self::$appsDetails, $app);
}
public function getAppsDetails()
{
return self::$appsDetails;
}
public function setBaseUrl($baseUrl)
{
self::$baseUrl = $baseUrl;
}
/**
* @param string $name
* @return mixed
*/
public function __get($name)
{
$className = __NAMESPACE__.'\\'.ucwords($name);
$entity = new $className();
return $entity;
}
public static function getBaseUrl()
{
return self::$baseUrl;
}
public static function getKey()
{
return self::$key;
}
public static function getSecret()
{
return self::$secret;
}
public static function getFullUrl($relativeUrl)
{
return self::getBaseUrl() . $relativeUrl;
}
}
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| Errors | Folder | 0750 |
|
|
| Addon.php | File | 556 B | 0640 |
|
| Api.php | File | 1.61 KB | 0640 |
|
| ArrayableInterface.php | File | 177 B | 0640 |
|
| Card.php | File | 182 B | 0640 |
|
| Collection.php | File | 304 B | 0640 |
|
| Customer.php | File | 721 B | 0640 |
|
| Entity.php | File | 5.57 KB | 0640 |
|
| FundAccount.php | File | 522 B | 0640 |
|
| Invoice.php | File | 2.32 KB | 0640 |
|
| Item.php | File | 654 B | 0640 |
|
| Order.php | File | 916 B | 0640 |
|
| Payment.php | File | 4.18 KB | 0640 |
|
| PaymentLink.php | File | 1.74 KB | 0640 |
|
| PaymentPage.php | File | 582 B | 0640 |
|
| Plan.php | File | 341 B | 0640 |
|
| QrCode.php | File | 1.47 KB | 0640 |
|
| Refund.php | File | 752 B | 0640 |
|
| Request.php | File | 5.91 KB | 0640 |
|
| Resource.php | File | 1.18 KB | 0640 |
|
| Settlement.php | File | 1.96 KB | 0640 |
|
| Subscription.php | File | 2.19 KB | 0640 |
|
| Token.php | File | 677 B | 0640 |
|
| Transfer.php | File | 1.41 KB | 0640 |
|
| Utility.php | File | 2.63 KB | 0640 |
|
| VirtualAccount.php | File | 1.33 KB | 0640 |
|
| Webhook.php | File | 727 B | 0640 |
|