PHP Class Cartalyst\Stripe\Api\Charges

Inheritance: extends Api
Show file Open project: cartalyst/stripe

Public Methods

Method Description
all ( array $parameters = [] ) : array Lists all charges.
capture ( string $chargeId, integer $amount = null, array $parameters = [] ) : array Captures an existing charge.
create ( array $parameters = [] ) : array Creates a new charge.
find ( string $chargeId ) : array Retrieves an existing charge.
update ( string $chargeId, array $parameters = [] ) : array Updates an existing charge.

Method Details

all() public method

Lists all charges.
public all ( array $parameters = [] ) : array
$parameters array
return array

capture() public method

Captures an existing charge.
public capture ( string $chargeId, integer $amount = null, array $parameters = [] ) : array
$chargeId string
$amount integer
$parameters array
return array

create() public method

Creates a new charge.
public create ( array $parameters = [] ) : array
$parameters array
return array

find() public method

Retrieves an existing charge.
public find ( string $chargeId ) : array
$chargeId string
return array

update() public method

Updates an existing charge.
public update ( string $chargeId, array $parameters = [] ) : array
$chargeId string
$parameters array
return array