WebService::Stripe - Stripe API bindings
version 0.0100
my $stripe = WebService::Stripe->new( api_key => 'secret', version => '2014-11-05', # optional ); my $customer = $stripe->get_customer('cus_57eDUiS93cycyH');
get_customer($id)
Returns the customer for the given id.
create_customer($data)
Creates a customer. The $data hashref is optional. Returns the customer.
$data
Example:
$customer = $stripe->create_customer({ email => 'bob@foo.com' });
update_customer($id, $data)
Updates a customer. Returns the updated customer.
$customer = $stripe->update_customer($id, { description => 'foo' });
get_customers(query => $query)
Returns a list of customers. The query param is optional.
next($collection)
Returns the next page of results for the given collection.
my $customers = $s->get_customers; ... while ($customers = $s->next($customers)) { ... }
create_card($data, customer_id => 'cus_123') create_card($data, customer => $customer)
create_charge($data)
create_token($data)
Naveed Massjouni <naveed@vt.edu>
This software is copyright (c) 2014 by Tilt, Inc..
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install WebService::Stripe, copy and paste the appropriate command in to your terminal.
cpanm
cpanm WebService::Stripe
CPAN shell
perl -MCPAN -e shell install WebService::Stripe
For more information on module installation, please visit the detailed CPAN module installation guide.