public function create($customerId, $parameters = [])
    {
        if (is_array($parameters) && isset($parameters['source'])) {
            $parameters['source']['object'] = 'bank_account';
        } elseif (is_string($parameters)) {
            $parameters = ['source' => $parameters];
        }

        return $this->_post("customers/{$customerId}/sources", $parameters);
    }
public function create($customerId, $parameters = [])
    {
        if (is_array($parameters) && isset($parameters['source'])) {
            $parameters['source']['object'] = 'bank_account';
        } elseif (is_string($parameters)) {
            $parameters = ['source' => $parameters];
        }

        return $this->_post("customers/{$customerId}/sources", $parameters);
    }
public function create ( $ customerId , $ parameters = [ ] ) { if ( is_array ( $ parameters ) && isset ( $ parameters [ 'source' ] ) ) { $ parameters [ 'source' ] [ 'object' ] = 'bank_account' ; } elseif ( is_string ( $ parameters ) ) { $ parameters = [ 'source' => $ parameters ] ; } return $ this -> _post ( "customers/{$customerId}/sources" , $ parameters ) ; }
Creates a new source on the given customer.

@param  string  $customerId
@param  string|array  $parameters
@return array
Creates a new source on the given customer .