PHP Class Cartalyst\Stripe\Stripe

Datei anzeigen Open project: cartalyst/stripe

Protected Properties

Property Type Description
$amountConverter string The amount converter class and method name.
$config Cartalyst\Stripe\ConfigInterface The Config repository instance.

Public Methods

Method 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.

Protected Methods

Method 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 method

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

__construct() public method

Constructor.
public __construct ( string $apiKey = null, string $apiVersion = null ) : void
$apiKey string
$apiVersion string
return void

getAmountConverter() public static method

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

getApiInstance() protected method

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

getApiKey() public method

Returns the Stripe API key.
public getApiKey ( ) : string
return string

getApiVersion() public method

Returns the Stripe API version.
public getApiVersion ( ) : string
return string

getConfig() public method

Returns the Config repository instance.
public getConfig ( ) : Cartalyst\Stripe\ConfigInterface
return Cartalyst\Stripe\ConfigInterface

getVersion() public static method

Returns the current package version.
public static getVersion ( ) : string
return string

idempotent() public method

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

isIteratorRequest() protected method

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

make() public static method

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

setAmountConverter() public static method

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

setApiKey() public method

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

setApiVersion() public method

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

setConfig() public method

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
return string

$config protected_oe property

The Config repository instance.
protected ConfigInterface,Cartalyst\Stripe $config
return Cartalyst\Stripe\ConfigInterface