PHP Класс Cartalyst\Stripe\Stripe

Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$amountConverter string The amount converter class and method name.
$config Cartalyst\Stripe\ConfigInterface The Config repository instance.

Открытые методы

Метод Описание
__call ( string $method, array $parameters ) : Cartalyst\Stripe\Api\ApiInterface Dynamically handle missing methods.
__construct ( string $apiKey = null, string $apiVersion = null ) : void Constructor.
getAmountConverter ( ) : string Returns the amount converter class and method name.
getApiKey ( ) : string Returns the Stripe API key.
getApiVersion ( ) : string Returns the Stripe API version.
getConfig ( ) : Cartalyst\Stripe\ConfigInterface Returns the Config repository instance.
getVersion ( ) : string Returns the current package version.
idempotent ( string $idempotencyKey ) Sets the idempotency key.
make ( string $apiKey = null, string $apiVersion = null ) : Stripe Create a new Stripe API instance.
setAmountConverter ( $amountConverter ) : void Sets the amount converter class and method name.
setApiKey ( string $apiKey ) Sets the Stripe API key.
setApiVersion ( string $apiVersion ) Sets the Stripe API version.
setConfig ( Cartalyst\Stripe\ConfigInterface $config ) Sets the Config repository instance.

Защищенные методы

Метод Описание
getApiInstance ( string $method ) : Cartalyst\Stripe\Api\ApiInterface Returns the Api class instance for the given method.
isIteratorRequest ( $method ) : boolean Determines if the request is an iterator request.

Описание методов

__call() публичный метод

Dynamically handle missing methods.
public __call ( string $method, array $parameters ) : Cartalyst\Stripe\Api\ApiInterface
$method string
$parameters array
Результат Cartalyst\Stripe\Api\ApiInterface

__construct() публичный метод

Constructor.
public __construct ( string $apiKey = null, string $apiVersion = null ) : void
$apiKey string
$apiVersion string
Результат void

getAmountConverter() публичный статический метод

Returns the amount converter class and method name.
public static getAmountConverter ( ) : string
Результат string

getApiInstance() защищенный метод

Returns the Api class instance for the given method.
protected getApiInstance ( string $method ) : Cartalyst\Stripe\Api\ApiInterface
$method string
Результат Cartalyst\Stripe\Api\ApiInterface

getApiKey() публичный метод

Returns the Stripe API key.
public getApiKey ( ) : string
Результат string

getApiVersion() публичный метод

Returns the Stripe API version.
public getApiVersion ( ) : string
Результат string

getConfig() публичный метод

Returns the Config repository instance.
public getConfig ( ) : Cartalyst\Stripe\ConfigInterface
Результат Cartalyst\Stripe\ConfigInterface

getVersion() публичный статический метод

Returns the current package version.
public static getVersion ( ) : string
Результат string

idempotent() публичный метод

Sets the idempotency key.
public idempotent ( string $idempotencyKey )
$idempotencyKey string

isIteratorRequest() защищенный метод

Determines if the request is an iterator request.
protected isIteratorRequest ( $method ) : boolean
Результат boolean

make() публичный статический метод

Create a new Stripe API instance.
public static make ( string $apiKey = null, string $apiVersion = null ) : Stripe
$apiKey string
$apiVersion string
Результат Stripe

setAmountConverter() публичный статический метод

Sets the amount converter class and method name.
public static setAmountConverter ( $amountConverter ) : void
$amountConverter string
Результат void

setApiKey() публичный метод

Sets the Stripe API key.
public setApiKey ( string $apiKey )
$apiKey string

setApiVersion() публичный метод

Sets the Stripe API version.
public setApiVersion ( string $apiVersion )
$apiVersion string

setConfig() публичный метод

Sets the Config repository instance.
public setConfig ( Cartalyst\Stripe\ConfigInterface $config )
$config Cartalyst\Stripe\ConfigInterface

Описание свойств

$amountConverter защищенное статическое свойство

The amount converter class and method name.
protected static string $amountConverter
Результат string

$config защищенное свойство

The Config repository instance.
protected ConfigInterface,Cartalyst\Stripe $config
Результат Cartalyst\Stripe\ConfigInterface