Property | Type | Description | |
---|---|---|---|
$amountConverter | string | The amount converter class and method name. | |
$config | Cartalyst\Stripe\ConfigInterface | The Config repository instance. |
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 ) : |
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. |
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. |
public static getAmountConverter ( ) : string | ||
return | string |
protected getApiInstance ( string $method ) : Cartalyst\Stripe\Api\ApiInterface | ||
$method | string | |
return | Cartalyst\Stripe\Api\ApiInterface |
public getApiVersion ( ) : string | ||
return | string |
public getConfig ( ) : Cartalyst\Stripe\ConfigInterface | ||
return | Cartalyst\Stripe\ConfigInterface |
public static getVersion ( ) : string | ||
return | string |
public idempotent ( string $idempotencyKey ) | ||
$idempotencyKey | string |
protected isIteratorRequest ( $method ) : boolean | ||
return | boolean |
public static setAmountConverter ( $amountConverter ) : void | ||
$amountConverter | string | |
return | void |
public setApiVersion ( string $apiVersion ) | ||
$apiVersion | string |
public setConfig ( Cartalyst\Stripe\ConfigInterface $config ) | ||
$config | Cartalyst\Stripe\ConfigInterface |
protected static string $amountConverter | ||
return | string |