Skip to content

Commit 1d57a2b

Browse files
committed
Add README.pod which is generated from Dist::Zilla.
1 parent 36a402b commit 1d57a2b

File tree

1 file changed

+215
-0
lines changed

1 file changed

+215
-0
lines changed

README.pod

Lines changed: 215 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,215 @@
1+
=pod
2+
3+
=head1 NAME
4+
5+
Net::Stripe - API client for Stripe.com
6+
7+
=head1 VERSION
8+
9+
version 0.10
10+
11+
=head1 SYNOPSIS
12+
13+
my $stripe = Net::Stripe->new(api_key => $API_KEY);
14+
my $card_token = 'a token';
15+
my $charge = $stripe->post_charge( # Net::Stripe::Charge
16+
amount => 12500,
17+
currency => 'usd',
18+
card => $card_token,
19+
description => 'YAPC Registration',
20+
);
21+
print "Charge was not paid!\n" unless $charge->paid;
22+
my $card = $charge->card; # Net::Stripe::Card
23+
24+
# look up a charge by id
25+
my $same_charge = $stripe->get_charge($charge->id);
26+
27+
# ... and the api mirrors https://stripe.com/docs/api
28+
# Charges: post_charge() get_charge() refund_charge() get_charges()
29+
# Customer: post_customer()
30+
31+
=head1 DESCRIPTION
32+
33+
This module is a wrapper around the Stripe.com HTTP API. Methods are
34+
generally named after the HTTP method and the object name.
35+
36+
This method returns Moose objects for responses from the API.
37+
38+
=head1 METHODS
39+
40+
=head2 new PARAMHASH
41+
42+
This creates a new stripe api object. The following parameters are accepted:
43+
44+
=item api_key
45+
46+
This is required. You get this from your Stripe Account settings.
47+
48+
=item debug
49+
50+
You can set this to true to see extra debug info.
51+
52+
=item debug_network
53+
54+
You can set this to true to see the actual network requests.
55+
56+
=head1 Charge Methods
57+
58+
=head2 post_charge( PARAMHASH | OBJECT )
59+
60+
=head2 get_charge( CHARGE_ID )
61+
62+
=head2 refund_charge( CHARGE_ID )
63+
64+
=head2 get_charges( PARAMHASH )
65+
66+
=head1 Customer Methods
67+
68+
=head2 post_customer( PARAMHASH | OBJECT )
69+
70+
=head2 get_customer( CUSTOMER_ID )
71+
72+
=head2 delete_customer( CUSTOMER_ID )
73+
74+
=head2 post_customer_subscription( CUSTOMER_ID, PARAMHASH )
75+
76+
=head2 get_customers( PARAMHASH )
77+
78+
=head1 Card Methods
79+
80+
=head2 post_card( PARAMHASH )
81+
82+
=head2 get_card( customer_id => CUSTOMER_ID, card_id => CARD_ID )
83+
84+
=head2 get_cards( customer_id => CUSTOMER_ID)
85+
86+
=head2 update_card( customer_id => CUSTOMER_ID, card_id => CARD_ID)
87+
88+
=head2 delete_card( customer_id => CUSTOMER_ID, card_id => CARD_ID )
89+
90+
=head1 Subscription Methods
91+
92+
=head2 post_subscription( PARAMHASH )
93+
94+
=head2 get_subscription( customer_id => CUSTOMER_ID )
95+
96+
=head2 delete_subscription( customer_id => CUSTOMER_ID )
97+
98+
=head1 Token Methods
99+
100+
=head2 post_token( PARAMHASH )
101+
102+
=head2 get_token( TOKEN_ID )
103+
104+
=head1 Plan Methods
105+
106+
=head2 post_plan( PARAMHASH )
107+
108+
=head2 get_plan( PLAN_ID )
109+
110+
=head2 delete_plan( PLAN_ID )
111+
112+
=head2 get_plans( PARAMHASH )
113+
114+
=head1 Coupon Methods
115+
116+
=head2 post_coupon( PARAMHASH )
117+
118+
=head2 get_coupon( COUPON_ID )
119+
120+
=head2 delete_coupon( COUPON_ID )
121+
122+
=head2 get_coupons( PARAMHASH )
123+
124+
=head1 Invoice Methods
125+
126+
=head2 post_invoice( OBJECT )
127+
128+
=head2 get_invoice( INVOICE_ID )
129+
130+
=head2 get_upcominginvoice( COUPON_ID )
131+
132+
=head2 get_invoices( PARAMHASH )
133+
134+
=head1 Invoice Item Methods
135+
136+
=head2 post_invoiceitem( PARAMHASH | OBJECT )
137+
138+
=head2 get_invoiceitem( INVOICEITEM_ID )
139+
140+
=head2 delete_invoiceitem( INVOICEITEM_ID )
141+
142+
=head2 get_invoiceitems( PARAMHASH )
143+
144+
=head1 METHODS
145+
146+
=head2 API Object
147+
148+
=head1 SEE ALSO
149+
150+
L<https://stripe.com>, L<https://stripe.com/docs/api>
151+
152+
=head1 CONTRIBUTORS
153+
154+
=head1 AUTHOR
155+
156+
Luke Closs
157+
158+
=head1 CONTRIBUTORS
159+
160+
=over 4
161+
162+
=item *
163+
164+
Andrew Solomon <[email protected]>
165+
166+
=item *
167+
168+
Brian Collins <[email protected]>
169+
170+
=item *
171+
172+
Devin M. Certas <[email protected]>
173+
174+
=item *
175+
176+
Dimitar Petrov <[email protected]>
177+
178+
=item *
179+
180+
Dylan Reinhold <[email protected]>
181+
182+
=item *
183+
184+
Jonathan "Duke" Leto <[email protected]>
185+
186+
=item *
187+
188+
Luke Closs <[email protected]>
189+
190+
=item *
191+
192+
Olaf Alders <[email protected]>
193+
194+
=item *
195+
196+
Rusty Conover <[email protected]>
197+
198+
=item *
199+
200+
Sachin Sebastian <[email protected]>
201+
202+
=item *
203+
204+
Tom Eliaz <[email protected]>
205+
206+
=back
207+
208+
=head1 COPYRIGHT AND LICENSE
209+
210+
This software is copyright (c) 2011 by Copyright 2011, Prime Radiant, Inc..
211+
212+
This is free software; you can redistribute it and/or modify it under
213+
the same terms as the Perl 5 programming language system itself.
214+
215+
=cut

0 commit comments

Comments
 (0)