golden hour
/var/softaculous/sitepad/editor/site-data/plugins/kkart-pro/includes/gateways/stripe/stripe-php/lib
⬆️ Go Up
Upload
File/Folder
Size
Actions
Account.php
16.46 KB
Del
OK
AccountLink.php
830 B
Del
OK
AlipayAccount.php
2.33 KB
Del
OK
ApiOperations
-
Del
OK
ApiRequestor.php
18.77 KB
Del
OK
ApiResource.php
3.37 KB
Del
OK
ApiResponse.php
712 B
Del
OK
ApplePayDomain.php
1016 B
Del
OK
ApplicationFee.php
4.1 KB
Del
OK
ApplicationFeeRefund.php
2.44 KB
Del
OK
Balance.php
2.31 KB
Del
OK
BalanceTransaction.php
5.54 KB
Del
OK
BankAccount.php
7.13 KB
Del
OK
BaseStripeClient.php
10.3 KB
Del
OK
BaseStripeClientInterface.php
990 B
Del
OK
BillingPortal
-
Del
OK
BitcoinReceiver.php
4.14 KB
Del
OK
BitcoinTransaction.php
885 B
Del
OK
Capability.php
2.87 KB
Del
OK
Card.php
8.31 KB
Del
OK
Charge.php
12.27 KB
Del
OK
Checkout
-
Del
OK
Collection.php
7.53 KB
Del
OK
CountrySpec.php
1.74 KB
Del
OK
Coupon.php
2.91 KB
Del
OK
CreditNote.php
5.65 KB
Del
OK
CreditNoteLineItem.php
1.85 KB
Del
OK
Customer.php
12.76 KB
Del
OK
CustomerBalanceTransaction.php
5.21 KB
Del
OK
Discount.php
1.5 KB
Del
OK
Dispute.php
5.07 KB
Del
OK
EphemeralKey.php
1.55 KB
Del
OK
ErrorObject.php
8.58 KB
Del
OK
Event.php
13.95 KB
Del
OK
Exception
-
Del
OK
ExchangeRate.php
1.41 KB
Del
OK
File.php
3.79 KB
Del
OK
FileLink.php
1.45 KB
Del
OK
HttpClient
-
Del
OK
Identity
-
Del
OK
Invoice.php
19.26 KB
Del
OK
InvoiceItem.php
3.67 KB
Del
OK
InvoiceLineItem.php
2.84 KB
Del
OK
Issuing
-
Del
OK
LineItem.php
1.16 KB
Del
OK
LoginLink.php
426 B
Del
OK
Mandate.php
1.08 KB
Del
OK
OAuth.php
3.31 KB
Del
OK
OAuthErrorObject.php
861 B
Del
OK
Order.php
5.11 KB
Del
OK
OrderItem.php
333 B
Del
OK
OrderReturn.php
1.65 KB
Del
OK
PaymentIntent.php
11.27 KB
Del
OK
PaymentMethod.php
3.72 KB
Del
OK
Payout.php
6.69 KB
Del
OK
Person.php
5.35 KB
Del
OK
Plan.php
5.55 KB
Del
OK
Price.php
5.13 KB
Del
OK
Product.php
4.02 KB
Del
OK
PromotionCode.php
2.19 KB
Del
OK
Quote.php
8.58 KB
Del
OK
Radar
-
Del
OK
Recipient.php
2.69 KB
Del
OK
RecipientTransfer.php
918 B
Del
OK
Refund.php
4.04 KB
Del
OK
Reporting
-
Del
OK
RequestTelemetry.php
539 B
Del
OK
Review.php
3.34 KB
Del
OK
SKU.php
2.82 KB
Del
OK
Service
-
Del
OK
SetupAttempt.php
2.39 KB
Del
OK
SetupIntent.php
7.05 KB
Del
OK
Sigma
-
Del
OK
SingletonApiResource.php
917 B
Del
OK
Source.php
8.37 KB
Del
OK
SourceTransaction.php
408 B
Del
OK
Stripe.php
7.05 KB
Del
OK
StripeClient.php
3.66 KB
Del
OK
StripeClientInterface.php
586 B
Del
OK
StripeObject.php
18.37 KB
Del
OK
StripeStreamingClientInterface.php
238 B
Del
OK
Subscription.php
11.07 KB
Del
OK
SubscriptionItem.php
5.47 KB
Del
OK
SubscriptionSchedule.php
3.83 KB
Del
OK
TaxCode.php
663 B
Del
OK
TaxId.php
4.79 KB
Del
OK
TaxRate.php
2.88 KB
Del
OK
Terminal
-
Del
OK
ThreeDSecure.php
2.54 KB
Del
OK
Token.php
3.54 KB
Del
OK
Topup.php
3.91 KB
Del
OK
Transfer.php
6.18 KB
Del
OK
TransferReversal.php
3.25 KB
Del
OK
UsageRecord.php
980 B
Del
OK
UsageRecordSummary.php
812 B
Del
OK
Util
-
Del
OK
Webhook.php
1.48 KB
Del
OK
WebhookEndpoint.php
2.26 KB
Del
OK
WebhookSignature.php
4.27 KB
Del
OK
Edit: Stripe.php
<?php namespace Stripe; /** * Class Stripe. */ class Stripe { /** @var string The Stripe API key to be used for requests. */ public static $apiKey; /** @var string The Stripe client_id to be used for Connect requests. */ public static $clientId; /** @var string The base URL for the Stripe API. */ public static $apiBase = 'https://api.stripe.com'; /** @var string The base URL for the OAuth API. */ public static $connectBase = 'https://connect.stripe.com'; /** @var string The base URL for the Stripe API uploads endpoint. */ public static $apiUploadBase = 'https://files.stripe.com'; /** @var null|string The version of the Stripe API to use for requests. */ public static $apiVersion = null; /** @var null|string The account ID for connected accounts requests. */ public static $accountId = null; /** @var string Path to the CA bundle used to verify SSL certificates */ public static $caBundlePath = null; /** @var bool Defaults to true. */ public static $verifySslCerts = true; /** @var array The application's information (name, version, URL) */ public static $appInfo = null; /** * @var null|Util\LoggerInterface the logger to which the library will * produce messages */ public static $logger = null; /** @var int Maximum number of request retries */ public static $maxNetworkRetries = 0; /** @var bool Whether client telemetry is enabled. Defaults to true. */ public static $enableTelemetry = true; /** @var float Maximum delay between retries, in seconds */ private static $maxNetworkRetryDelay = 2.0; /** @var float Maximum delay between retries, in seconds, that will be respected from the Stripe API */ private static $maxRetryAfter = 60.0; /** @var float Initial delay between retries, in seconds */ private static $initialNetworkRetryDelay = 0.5; const VERSION = '7.94.0'; /** * @return string the API key used for requests */ public static function getApiKey() { return self::$apiKey; } /** * @return string the client_id used for Connect requests */ public static function getClientId() { return self::$clientId; } /** * @return Util\LoggerInterface the logger to which the library will * produce messages */ public static function getLogger() { if (null === self::$logger) { return new Util\DefaultLogger(); } return self::$logger; } /** * @param Util\LoggerInterface $logger the logger to which the library * will produce messages */ public static function setLogger($logger) { self::$logger = $logger; } /** * Sets the API key to be used for requests. * * @param string $apiKey */ public static function setApiKey($apiKey) { self::$apiKey = $apiKey; } /** * Sets the client_id to be used for Connect requests. * * @param string $clientId */ public static function setClientId($clientId) { self::$clientId = $clientId; } /** * @return string The API version used for requests. null if we're using the * latest version. */ public static function getApiVersion() { return self::$apiVersion; } /** * @param string $apiVersion the API version to use for requests */ public static function setApiVersion($apiVersion) { self::$apiVersion = $apiVersion; } /** * @return string */ private static function getDefaultCABundlePath() { return \realpath(__DIR__ . '/../data/ca-certificates.crt'); } /** * @return string */ public static function getCABundlePath() { return self::$caBundlePath ?: self::getDefaultCABundlePath(); } /** * @param string $caBundlePath */ public static function setCABundlePath($caBundlePath) { self::$caBundlePath = $caBundlePath; } /** * @return bool */ public static function getVerifySslCerts() { return self::$verifySslCerts; } /** * @param bool $verify */ public static function setVerifySslCerts($verify) { self::$verifySslCerts = $verify; } /** * @return string | null The Stripe account ID for connected account * requests */ public static function getAccountId() { return self::$accountId; } /** * @param string $accountId the Stripe account ID to set for connected * account requests */ public static function setAccountId($accountId) { self::$accountId = $accountId; } /** * @return array | null The application's information */ public static function getAppInfo() { return self::$appInfo; } /** * @param string $appName The application's name * @param null|string $appVersion The application's version * @param null|string $appUrl The application's URL * @param null|string $appPartnerId The application's partner ID */ public static function setAppInfo($appName, $appVersion = null, $appUrl = null, $appPartnerId = null) { self::$appInfo = self::$appInfo ?: []; self::$appInfo['name'] = $appName; self::$appInfo['partner_id'] = $appPartnerId; self::$appInfo['url'] = $appUrl; self::$appInfo['version'] = $appVersion; } /** * @return int Maximum number of request retries */ public static function getMaxNetworkRetries() { return self::$maxNetworkRetries; } /** * @param int $maxNetworkRetries Maximum number of request retries */ public static function setMaxNetworkRetries($maxNetworkRetries) { self::$maxNetworkRetries = $maxNetworkRetries; } /** * @return float Maximum delay between retries, in seconds */ public static function getMaxNetworkRetryDelay() { return self::$maxNetworkRetryDelay; } /** * @return float Maximum delay between retries, in seconds, that will be respected from the Stripe API */ public static function getMaxRetryAfter() { return self::$maxRetryAfter; } /** * @return float Initial delay between retries, in seconds */ public static function getInitialNetworkRetryDelay() { return self::$initialNetworkRetryDelay; } /** * @return bool Whether client telemetry is enabled */ public static function getEnableTelemetry() { return self::$enableTelemetry; } /** * @param bool $enableTelemetry Enables client telemetry. * * Client telemetry enables timing and request metrics to be sent back to Stripe as an HTTP Header * with the current request. This enables Stripe to do latency and metrics analysis without adding extra * overhead (such as extra network calls) on the client. */ public static function setEnableTelemetry($enableTelemetry) { self::$enableTelemetry = $enableTelemetry; } }
Save