PHP Class Cartalyst\Stripe\Stripe

Afficher le fichier Open project: cartalyst/stripe

Protected Properties

Свойство Type Description
$amountConverter string The amount converter class and method name.
$config Cartalyst\Stripe\ConfigInterface The Config repository instance.

Méthodes publiques

Méthode Description
__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.

Méthodes protégées

Méthode Description
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.

Method Details

__call() public méthode

Dynamically handle missing methods.
public __call ( string $method, array $parameters ) : Cartalyst\Stripe\Api\ApiInterface
$method string
$parameters array
Résultat Cartalyst\Stripe\Api\ApiInterface

__construct() public méthode

Constructor.
public __construct ( string $apiKey = null, string $apiVersion = null ) : void
$apiKey string
$apiVersion string
Résultat void

getAmountConverter() public static méthode

Returns the amount converter class and method name.
public static getAmountConverter ( ) : string
Résultat string

getApiInstance() protected méthode

Returns the Api class instance for the given method.
protected getApiInstance ( string $method ) : Cartalyst\Stripe\Api\ApiInterface
$method string
Résultat Cartalyst\Stripe\Api\ApiInterface

getApiKey() public méthode

Returns the Stripe API key.
public getApiKey ( ) : string
Résultat string

getApiVersion() public méthode

Returns the Stripe API version.
public getApiVersion ( ) : string
Résultat string

getConfig() public méthode

Returns the Config repository instance.
public getConfig ( ) : Cartalyst\Stripe\ConfigInterface
Résultat Cartalyst\Stripe\ConfigInterface

getVersion() public static méthode

Returns the current package version.
public static getVersion ( ) : string
Résultat string

idempotent() public méthode

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

isIteratorRequest() protected méthode

Determines if the request is an iterator request.
protected isIteratorRequest ( $method ) : boolean
Résultat boolean

make() public static méthode

Create a new Stripe API instance.
public static make ( string $apiKey = null, string $apiVersion = null ) : Stripe
$apiKey string
$apiVersion string
Résultat Stripe

setAmountConverter() public static méthode

Sets the amount converter class and method name.
public static setAmountConverter ( $amountConverter ) : void
$amountConverter string
Résultat void

setApiKey() public méthode

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

setApiVersion() public méthode

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

setConfig() public méthode

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

Property Details

$amountConverter protected_oe static_oe property

The amount converter class and method name.
protected static string $amountConverter
Résultat string

$config protected_oe property

The Config repository instance.
protected ConfigInterface,Cartalyst\Stripe $config
Résultat Cartalyst\Stripe\ConfigInterface