PHP 클래스 Cartalyst\Stripe\Stripe

파일 보기 프로젝트 열기: cartalyst/stripe

보호된 프로퍼티들

프로퍼티 타입 설명
$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