PHP Class Cartalyst\Stripe\Api\Sources

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

Public Methods

Method Description
all ( string $customerId, array $parameters = [] ) : array Lists all sources from the given customer.
create ( string $customerId, string | array $parameters = [] ) : array Creates a new source on the given customer.
delete ( string $customerId, string $sourceId ) : array Deletes an existing source from the given customer.
find ( string $customerId, string $sourceId ) : array Retrieves an existing source from the given customer.
update ( string $customerId, string $sourceId, array $parameters = [] ) : array Updates an existing source from the given customer.

Method Details

all() public method

Lists all sources from the given customer.
public all ( string $customerId, array $parameters = [] ) : array
$customerId string
$parameters array
return array

create() public method

Creates a new source on the given customer.
public create ( string $customerId, string | array $parameters = [] ) : array
$customerId string
$parameters string | array
return array

delete() public method

Deletes an existing source from the given customer.
public delete ( string $customerId, string $sourceId ) : array
$customerId string
$sourceId string
return array

find() public method

Retrieves an existing source from the given customer.
public find ( string $customerId, string $sourceId ) : array
$customerId string
$sourceId string
return array

update() public method

Updates an existing source from the given customer.
public update ( string $customerId, string $sourceId, array $parameters = [] ) : array
$customerId string
$sourceId string
$parameters array
return array